@extends('frontend.layout.dashboard-master') @section('page-meta-data') {!! render_page_meta_data_for_job($job_details) !!} @endsection @section('content') @php $jd = $job_details; $creator = $user; // job creator (client) // Creator image if ($creator->image) { if (cloudStorageExist() && in_array(\Illuminate\Support\Facades\Storage::getDefaultDriver(), ['s3','cloudFlareR2','wasabi'])) { $creatorImg = render_frontend_cloud_image_if_module_exists('profile/'.$creator->image, load_from: $creator->load_from ?? ''); } else { $creatorImg = asset('assets/uploads/profile/'.$creator->image); } } else { $creatorImg = asset('assets/static/img/author/author.jpg'); } $isOnline = \Illuminate\Support\Facades\Cache::has('user_is_online_'.$creator->id); $totalJobs = $creator->user_jobs?->count() ?? 0; $proposalCount = $jd->job_proposals?->count() ?? 0; $isFixed = $jd->type !== 'hourly'; // Related jobs $related_jobs = \App\Models\JobPost::where('category', $jd->category) ->where('id', '!=', $jd->id) ->where('status', 1) ->with(['job_creator','job_category','job_skills']) ->whereHas('job_creator') ->take(4)->get(); // Attachment URL $attachUrl = ''; if ($jd->attachment && Auth::guard('web')->check()) { $localPath = base_path('../assets/uploads/jobs/'.$jd->attachment); if (file_exists($localPath)) { $attachUrl = asset('assets/uploads/jobs/'.$jd->attachment); } } @endphp {{-- Back link --}}
{{ __('Posted') }} {{ $jd->created_at->diffForHumans() }} · {{ $proposalCount }} {{ __('proposals') }}
{{ __('Budget') }}
{{ $jd->display_price }} @if(!$isFixed) /hr @endif
@if(!$isFixed && $jd->estimated_hours)~{{ $jd->estimated_hours }} {{ __('hrs') }}
@endif{{ __('Level') }}
{{ ucfirst($jd->level ?? 'N/A') }}
{{ __('Location') }}
{{ $creator->user_country?->country ?? __('Anywhere') }}
{{ __('Posted') }}
{{ $jd->created_at->format('M d, Y') }}
{{ __('Proposals') }}
{{ $proposalCount }}
{{ __('Job Type') }}
{{ $isFixed ? __('Fixed Price') : __('Hourly Rate') }}
{{ $creator->user_type == 1 ? __('Client') : __('Freelancer') }} @if($creator->user_country?->country) · {{ $creator->user_country->country }} @endif
@if($creator->user_introduction?->description){{ Str::limit($creator->user_introduction->description, 200) }}
@endif{{ Str::limit(strip_tags($rj->description), 100) }}
{{ __('Only freelancers can apply to jobs.') }}
{{ __('This is your job posting') }}
{{ __('You have already applied for this job') }}
{{ __('Your proposal will be sent directly to the client') }}
@else {{-- Restricted --}}{{ $isCountryRestricted ? $countryRestrictionMessage : $restrictionMessage }}
@if($requiresProfileUpdate) {{ __('Update Profile') }} @endif{{ __('Login as a freelancer to apply') }}
@endif{{ $creator->user_country->country }}
@endif