@extends('backend.layout.master-tailwind') @section('title', __('Job Details')) @section('admin_styles') @endsection @section('content')

{{ __('Job Details') }}

{{ __('Review and manage job post') }}

{{-- Job Description --}}
@php $statusMap = [ 0 => ['class' => 'warn', 'label' => __('Pending')], 1 => ['class' => 'success', 'label' => __('Approved')], 2 => ['class' => 'danger', 'label' => __('Rejected')], ]; $st = $statusMap[$job->status] ?? ['class' => '', 'label' => __('Unknown')]; @endphp {{ $st['label'] }} @if ($job->is_fake == 1) {{ __('Fake') }} @endif
{{ __('No of Edit:') }} {{ $job->job_history?->edit_count ?? 0 }}

{{ $job->title }}

{!! $job->description !!}
{{-- Employer Profile --}}
@if ($user->image) @else @php $hues = [0, 36, 72, 108, 144, 180, 216, 252, 288, 324]; $hue = $hues[$user->id % 10] ?? 0; @endphp
{{ strtoupper(substr($user->first_name, 0, 1)) }}
@endif
{{ $user->first_name }} {{ $user->last_name }}
@if ($user->user_introduction?->title) {{ $user->user_introduction?->title }} · @endif @if ($user->user_state?->state) {{ $user->user_state?->state }}, @endif @if ($user->user_country?->country) {{ $user->user_country?->country }} @endif
{{ $complete_jobs_count->count() }} {{ __('Jobs Completed') }}
{{-- Action Box --}}
{{ __('Job Status') }}
{{ __('Change visibility of this job post') }}
@csrf
{{-- Notice Callouts --}}
{{ __('Notice:') }} {{ __('Active means the job will show for the website users. Inactive means the job will not show.') }}
{{-- Job Info Sidebar --}}
{{ __('Type:') }} {{ __(ucfirst($job->type)) }} {{ __('Budget:') }} {{ amount_with_currency_symbol($job->budget ?? '') }}
@if ($job->last_seen != null)
{{ __('Last Seen') }} {{ \Carbon\Carbon::parse($job->last_seen)?->diffForHumans() }}
@endif @if ($job->attachment)
{{ __('Attachment') }} @php $attUrl = cloudStorageExist() && in_array(Storage::getDefaultDriver(), ['s3', 'cloudFlareR2', 'wasabi']) ? render_frontend_cloud_image_if_module_exists( 'jobs/' . $job->attachment, load_from: $job->load_from, ) : asset('assets/uploads/jobs/' . $job->attachment); @endphp {{ __('Download') }}
@endif @if ($job->level)
{{ __('Experience Level') }} {{ ucfirst($job->level) }}
@endif
{{ __('Category') }} {{ $job->job_category?->category ?? '' }}
@if ($job->country_restriction_type && $job->country_restriction_type != 'none')
{{ __('Restriction') }} @if ($job->country_restriction_type == 'include') {{ __('Only Allowed') }} @elseif($job->country_restriction_type == 'exclude') {{ __('Excluded') }} @endif
@endif @if (!empty($allowed_countries) && count($allowed_countries) > 0)
{{ __('Allowed Countries') }}
@foreach ($allowed_countries as $country) {{ $country }} @endforeach
@endif @if (!empty($excluded_countries) && count($excluded_countries) > 0)
{{ __('Excluded Countries') }}
@foreach ($excluded_countries as $country) {{ $country }} @endforeach
@endif
@endsection @section('script') @endsection