@extends('frontend.layout.master') @section('site_title') {{ $job_details->title ?? __('Job Details') }} @endsection @if(isset($job_details->meta_title) && !empty($job_details->meta_title)) @section('meta_title', $job_details->meta_title) @endif @if(isset($job_details->meta_description) && !empty($job_details->meta_description)) @section('meta_description', $job_details->meta_description) @endif @section('style') @endsection @section('content')

{{ $job_details->title }}

{{ $job_details->created_at->toFormattedDateString() ?? '' }} - {{ ucfirst(__($job_details->level)) ?? '' }}

@if($job_details->type == 'hourly')

{{ float_amount_with_currency_symbol($job_details->hourly_rate) }} {{ ucfirst($job_details->type) }}

@else

{{ float_amount_with_currency_symbol($job_details->budget) }} {{ ucfirst($job_details->type) }}

@endif
{!! $job_details->description !!}
@foreach ($job_details->job_skills as $skill) {{ $skill->skill ?? '' }} @endforeach
@if (Auth::guard('web')->check()) @if ($job_details->attachment) @if(cloudStorageExist() && in_array(Storage::getDefaultDriver(), ['s3', 'cloudFlareR2', 'wasabi'])) {{ __('Download Attachment') }} @else @if(!empty($job_details->attachment) && file_exists(base_path('../assets/uploads/jobs/' . $job_details->attachment))) {{ __('Download Attachment') }} @endif @endif @endif @endif
  • {{ $job_details->job_creator?->user_country?->country }}
  • {{ __('Proposal:') }} {{ $job_details->job_proposals?->count() }}
  • @if(moduleExists('HourlyJob'))
  • @if($job_details->job_creator?->user_wallet?->balance >= ($job_details->hourly_rate * $job_details->estimated_hours) ) {{ __('Verified') }} @else {{ __('Not Verified') }} @endif
  • @endif
  • {{ ucfirst(__($job_details->duration)) ?? '' }}
  • @if($job_details->type == 'hourly')
  • {{ __('Estimated Hours:') }} {{ $job_details->estimated_hours ?? '' }}
  • @endif
@if (Auth::guard('web')->check() && Auth::guard('web')->user()->user_type == 2 && Session::get('user_role') != 'client' && auth()->user()->id != $job_details->user_id) @php $proposal_count = \App\Models\JobProposal::where('job_id', $job_details->id) ->where('freelancer_id', auth()->user()->id) ->count(); @endphp @if ($proposal_count < 1)

{{ __('Submit Proposal') }}

@csrf
@if(moduleExists('HourlyJob')) @if($job_details->type == 'hourly')
{{ get_static_option('site_global_currency') ?? '' }}
@else
{{ get_static_option('site_global_currency') }}
@endif @else
{{ get_static_option('site_global_currency') }}
@endif
@endif @endif {{--client as a freelancer--}} @if (Auth::guard('web')->check() && Auth::guard('web')->user()->user_type == 1 && Session::get('user_role') == 'freelancer') @php $proposal_count = \App\Models\JobProposal::where('job_id', $job_details->id) ->where('freelancer_id', auth()->user()->id) ->count(); @endphp @if ($proposal_count < 1)

{{ __('Submit Proposal') }}

@csrf
@if(moduleExists('HourlyJob')) @if($job_details->type == 'hourly')
{{ get_static_option('site_global_currency') ?? '' }}
@else
{{ get_static_option('site_global_currency') }}
@endif @else
{{ get_static_option('site_global_currency') }}
@endif
@endif @endif
{{-- Client Info --}}
@if ($job_details->job_creator?->image) @if(cloudStorageExist() && in_array(Storage::getDefaultDriver(), ['s3', 'cloudFlareR2', 'wasabi'])) {{ __('profile img') }} @else {{ $job_details->job_creator?->fullname }} @endif @else {{ __('AuthorImg') }} @endif
{{ $job_details?->job_creator?->fullname }}
{{ $job_details?->job_creator?->user_state?->state }} , {{ $job_details?->job_creator?->user_country?->country }} @if($job_details->job_creator?->user_verified_status == 1) @endif
{{ __('Member since') }}
{{ $job_details->job_creator?->created_at->toFormattedDateString() ?? '' }}
{{ __('Total Job') }}
{{ $user->user_jobs?->count() }}
@php $total_job = App\Models\JobPost::where('user_id', $job_details->user_id)->count(); $total_order = App\Models\Order::where('user_id', $job_details->user_id) ->where('status', 3) ->count(); $hiring_rate = ''; if($hiring_rate > 0){ $hiring_rate = ($total_order * 100) / $total_job; } @endphp @if ($hiring_rate >= 1)
{{ __('Hire rate') }}
{{ round($hiring_rate) ?? 0 }}%
@endif @if ($job_details->last_seen != null)
{{ __('Last seen') }}
{{ \Carbon\Carbon::parse($job_details->last_seen)?->diffForHumans() }}
@endif
@if (Auth::guard('web')->check() && Auth::guard('web')->user()->id == $job_details->user_id) {{-- // activity--}} @if ($job_details?->job_proposals->count() >= 1)

{{ __('Activities') }}

    @php $activity_count = 0; @endphp @foreach ($job_details?->job_proposals as $proposal) @if ($proposal->is_interview_take == 1) @php $activity_count++; @endphp
  • {{ __('Interviewed') }} {{ $proposal?->freelancer?->fullname }}

    {{ $proposal->updated_at?->toFormattedDateString() }}

  • @endif @if ($proposal?->is_interview_take == 0 && $proposal?->is_short_listed == 1) @php $activity_count++; @endphp
  • {{ __('Shortlisted') }} {{ $proposal?->freelancer?->fullname }}

    {{ $proposal->updated_at?->toFormattedDateString() }}

  • @endif @endforeach @if($activity_count === 0)
    {{ __('No Activities') }}
    @endif
@endif {{-- // proposal --}} @if ($job_details->job_proposals->count() >= 1)

{{ __('All Proposals') }}

@foreach ($job_details->job_proposals as $proposal) @if($proposal?->freelancer)
@if ($proposal->freelancer?->image) {{ $proposal->freelancer?->fullname }} @else {{ __('AuthorImg') }} @endif

{{ $proposal->freelancer?->fullname ?? '' }}

{{ $proposal->freelancer?->user_introduction?->title ?? '' }} ยท {{ $proposal->freelancer?->user_state?->state ?? '' }}, {{ $proposal->freelancer?->user_country?->country ?? '' }}

{!! freelancer_rating($proposal->freelancer_id) !!}

{{ $proposal->created_at->diffForHumans() }}

{{ __('Offered') }} {{ float_amount_with_currency_symbol($proposal->amount) }}
{{ __('Est. delivery duration') }} {{ $proposal->duration }}
@endif
@endforeach
@endif @endif
@endsection @section('script') @include('frontend.pages.job-details.job-details-js') @endsection