PATH:
home
/
lab2454c
/
aficb.com
/
resources
/
views
/
admin
/
career
@extends('admin.layout.adminMasterLayout') @section('title', 'Career List') @section('content') <div class="content-wrapper"> <form action="{{ route('career.index') }}" method="GET"> @include('admin.common.completeOrNotFilter') </form> <div> <a href="{{ route('career.create') }}" class="btn btn-info font-weight-bold mb-3">+ Add New Career</a> </div> <div class="row"> <div class="col-lg-12 grid-margin stretch-card"> <div class="card"> <div class="card-body"> <h4 class="card-title">Career List</h4> <hr> <div class="table-responsive"> <table class="table table-striped"> <thead> <tr> <th>Banner Image</th> <th>Job Title</th> <th>Status</th> <th>Action</th> </tr> </thead> <tbody> @forelse($careers as $career) <tr> <td class="py-1"> <img src="{{ isset($career->banner_image) ? config("app.url").Storage::url($career->banner_image) : asset('adminAssets/images/default-page-banner.png') }}" alt="banner_image"/> </td> <td> {{ $career->name }} </td> <td> <div class="dropdown action-label"> <a class="btn btn-info dropdown-toggle btn-sm" data-toggle="dropdown" aria-expanded="false"> <?=(isset($career->status) && $career->status=='active')?'<i class="fa fa-dot-circle-o text-success"></i> Active':'<i class="fa fa-dot-circle-o text-danger"></i> Inactive';?> <span class="caret"></span> </a> <div class="dropdown-menu"> <form action="{{route('career.destroy', $career->id)}}" method="POST" > @csrf @method('DELETE') <button type="submit" class="dropdown-item status-btn btn-sm" style="cursor: pointer;" @if($career->is_complete) disabled @endif> {!! ($career->status=='active')? "<i class='fa fa-dot-circle-o text-danger'></i> Inactive":"<i class='fa fa-dot-circle-o text-success'></i> Active" !!} </button> </form> </div> </div> </td> <td> <div class="btn-toolbar"> @if (! $career->is_complete) <form method="POST" action="{{ route('career.complete', $career) }}"> @csrf <button type="submit" class="btn btn-success" onclick="return confirm('Are you sure you want to mark as complete?')"> Mark As Hired </button> </form> <a href="{{ route('career.edit', $career) }}" class="btn btn-primary btn-sm ml-3"> <i class="icon-open"></i> Edit </a> @else <a class="btn btn-danger btn-sm ml-3"> <i class="fa fa-check-square-o" aria-hidden="true"></i> Hired </a> @endif </div> </td> </tr> @empty <td colspan="5">No Careers Listed Yet</td> @endforelse </tbody> </table> <div class="mt-5"> {{ $careers->links('pagination::bootstrap-4') }} </div> </div> </div> </div> </div> </div> </div> @endsection
[-] form.blade.php
[edit]
[-] create.blade.php
[edit]
[-] edit.blade.php
[edit]
[+]
..
[-] list.blade.php
[edit]
[+]
jobApplications
[+]
careerContent