@extends('backend.layouts.app') @section('title') {{ __('job_list') }} @endsection @section('content') @php $userr = auth()->user(); @endphp

{{ __('job_list') }}

{{ __('pending_edited_jobs') }} {{ $edited_jobs }} {{ __('create') }} {{-- {{ __('bulk_import') }} --}} @if (request('title') || request('job_category') || request('job_type') || request('experience') || request('sort_by') || request('filter_by'))  {{ __('clear') }} @endif
{{-- Filter --}}
@include('backend.layouts.partials.message')
@if (userCan('job.update') || userCan('job.delete')) @endif @if ($jobs->count() > 0) @foreach ($jobs as $job) @if (userCan('job.update')) @endif @endforeach @else @endif
{{ __('job') }} {{ __('category') }}/{{ __('role') }} {{ __('salary') }} {{ __('deadline') }} {{ __('status') }}{{ __('action') }}
@if ($job->company) image @else @endif

{{ $job->title }}

{{ $job->company && $job->company->user ? $job->company->user->name : $job->company_name }} · {{ $job->job_type->name ?? '' }} @if ($job->is_remote) · {{ __('remote') }} @endif

{{ $job->category->name }}

{{ $job->role->name }}

@if ($job->salary_mode == 'range')

{{ getFormattedNumber($job->min_salary) }} - {{ getFormattedNumber($job->max_salary) }} {{ currentCurrencyCode() }}

@else

{{ $job->custom_salary }}

@endif

{{ $job->salary_type->name }}

@php $dateTime = new DateTime(); $formattedDateTime = $dateTime->format('Y-m-d'); @endphp @if ($job->deadline <= $formattedDateTime) {{ date('j F, Y', strtotime($job->deadline)) }}

{{ __('deadline_expired') }}

@else {{ date('j F, Y', strtotime($job->deadline)) }} @endif
@if ($job->status == 'pending')
@csrf @method('PUT') status == 'pending' ? 'checked' : '' }}>
@endif @if ($job->status == 'active' || $job->status == 'pending')
@csrf @method('PUT') status == 'active' ? 'checked' : '' }}>
@endif @if ($job->status == 'active' || $job->status == 'expired')
@csrf @method('PUT') status == 'expired' ? 'checked' : '' }}>
@endif
{{ __('view_details') }} {{ __('clone') }} @if (userCan('job.update')) @endif @if (userCan('job.delete'))
@method('DELETE') @csrf
@endif
{{ __('no_data_found') }}
@if ($jobs->total() > $jobs->perPage())
{{ $jobs->links() }}
@endif
@endsection @section('script') @endsection @section('style') @endsection