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

{{ __('Job Details') }}

{{ $job->title }}

{{-- ── Main column ── --}}
{{-- Job overview --}}
@if($job->status === 0) {{ __('Pending') }} @elseif($job->status === 1) {{ __('Approved') }} @else {{ __('Rejected') }} @endif

{{ $job->title }}

@if($job->job_history?->edit_count) {{ __('Edits') }}: {{ $job->job_history->edit_count }} @endif
{!! $job->description !!}
{{-- Creator card --}}
{{ __('Posted By') }}
@php $hues = [120, 260, 280, 220, 30, 180, 300, 60, 200, 340]; $hue = $hues[$user->id % count($hues)]; $initials = strtoupper(substr($user->first_name, 0, 1) . substr($user->last_name, 0, 1)); @endphp @if($user->image) @if(cloudStorageExist() && in_array(Storage::getDefaultDriver(), ['s3', 'cloudFlareR2', 'wasabi'])) {{ $user->first_name }} @else {{ $user->first_name }} @endif @else {{ $initials }} @endif

{{ $user->first_name }} {{ $user->last_name }}

{{ $user->user_introduction?->title }} @if($user->user_state?->state || $user->user_country?->country) · {{ $user->user_state?->state }}{{ ($user->user_state?->state && $user->user_country?->country) ? ', ' : '' }}{{ $user->user_country?->country }} @endif

{{ $complete_jobs_count->count() }} {{ __('Jobs Completed') }}
{{-- ── Sidebar ── --}}
{{-- Meta info --}}
{{ __('Job Info') }}
{{ __('Type') }} {{ __(ucfirst($job->type)) }}
{{ $job->type === 'hourly' ? __('Hourly Rate') : __('Budget') }} {{ amount_with_currency_symbol($job->type === 'hourly' ? ($job->hourly_rate ?? '') : ($job->budget ?? '')) }}
@if($job->level)
{{ __('Experience') }} {{ ucfirst($job->level) }}
@endif
{{ __('Category') }} {{ $job->job_category?->category ?? '—' }}
@if($job->last_seen)
{{ __('Last Seen') }} {{ \Carbon\Carbon::parse($job->last_seen)->diffForHumans() }}
@endif @if($job->attachment)
{{ __('Attachment') }} @if(cloudStorageExist() && in_array(Storage::getDefaultDriver(), ['s3', 'cloudFlareR2', 'wasabi'])) @else @endif {{ __('Download') }}
@endif
{{-- Status action --}}
{{ __('Status') }}
@if($job->status === 0) {{ __('Pending') }} @elseif($job->status === 1) {{ __('Active') }} @else {{ __('Inactive') }} @endif
@can('job-status-change')
@csrf
@endcan

{{ __('Active: job is visible to all users on the site.') }}

{{ __('Inactive: job is hidden from the site.') }}

@endsection @section('script') @endsection