@extends('master') @section('title', $category->name . ' Jobs') @section('content')

{{ $category->name }} Jobs

@if($jobs instanceof \Illuminate\Contracts\Pagination\LengthAwarePaginator) Showing {{ $jobs->firstItem() }}-{{ $jobs->lastItem() }} of {{ $jobs->total() }} jobs @else Showing jobs @endif
@php $siteCompany = \App\Models\Company::first(); @endphp @forelse($jobs as $job)

{{ $job->title }}

  • {{ optional($job->company)->name ?? ($siteCompany->name ?? 'Company') }}
  • {{ $job->office_location ?? 'Location' }}
  • {{ $job->created_at?->diffForHumans() }}
  • @if(!empty($job->salary_range))
  • {{ $job->salary_range }}
  • @endif
  • {{ $job->job_type ?? 'Full Time' }}
  • @if(!empty($job->work_location))
  • {{ $job->work_location }}
  • @endif
@empty

No jobs found in {{ $category->name }}.

@endforelse @if($jobs instanceof \Illuminate\Contracts\Pagination\Paginator || $jobs instanceof \Illuminate\Contracts\Pagination\LengthAwarePaginator) @endif
@endsection