@extends('layouts.app') @push('style') @endpush @section('content')

Job Details

Job Information

Job Name: {{ $job->name ?? 'N/A' }}

User: {{ $job->user?->name ?? 'N/A' }}

Budget: ${{ number_format($job->budget ?? 0, 2) }}

Created At: {{ $job->created_at ? \Carbon\Carbon::parse($job->created_at)->format('d M Y') : 'N/A' }}

Provider: {{ $job->provider?->name ?? 'Not Assigned' }}

Status: @switch($job->status ?? -1) @case(0) Pending @break @case(1) Done @break @case(2) Waiting for Confirmation @break @case(3) Job Started @break @default Unknown Status @endswitch

Payment Status: @switch($job->is_paid ?? -1) @case(0) Not Paid @break @case(1) Paid @break @default Unknown Status @endswitch

User Estimate Time: {{ $job->estimate_time . ' Hours' ?? 'N/A' }}

User Estimate Duration: {{ $job->estimate_start_date ? \Carbon\Carbon::parse($job->estimate_start_date)->format('d M Y') : 'N/A' }} -To- {{ $job->estimate_end_date ? \Carbon\Carbon::parse($job->estimate_end_date)->format('d M Y') : 'N/A' }}

Job Type: {{ $job->type ?? 'N/A' }}

Frequency: {{ $job->frequency ?? 'N/A' }}

Job Description: {{ $job->description ?? 'N/A' }}

Job Images

Pre Job Completion Images
After Job Completion Images
@foreach ($job->jobImagesPre as $index => $image) @endforeach @foreach ($job->jobImagesPost as $index => $image) @endforeach {{--

Provider Job Estimations

@if ($job->jobEstimations->isNotEmpty())
    @foreach ($job->jobEstimations as $estimation)
  • Estimate Time: {{ $estimation->estimate_time ?? 'N/A' }}, Start Date: {{ $estimation->estimate_start_date ?? 'N/A' }}, End Date: {{ $estimation->estimate_end_date ?? 'N/A' }}, Frequency: {{ $estimation->frequency == 1 ? 'Recurring' : 'One-time' }}
  • @endforeach
@else

No estimations available.

@endif
--}}

Job Services and Sub-Services

Job Services
@if ($job->jobServices->isNotEmpty())
    @foreach ($job->jobServices as $service)
  • {{ $service->service->name ?? 'N/A' }}
  • @endforeach
@else

No services available.

@endif
Job Sub-Services
@if ($job->jobSubServices->isNotEmpty())
    @foreach ($job->jobSubServices as $subService)
  • {{ $subService->jobSubService->name ?? 'N/A' }}
  • @endforeach
@else

No sub-services available.

@endif

Job Bids

@if ($job->jobBids->isNotEmpty())
@foreach ($job->jobBids as $bid) @endforeach
Provider Amount Accepted Created At
{{ $bid->user?->name ?? 'N/A' }} ${{ number_format($bid->amount ?? 0, 2) }} {{ $bid->is_accepted ? 'Yes' : 'No' }} {{ $bid->created_at ? \Carbon\Carbon::parse($bid->created_at)->format('d M Y') : 'N/A' }}
@else

No bids available.

@endif

Job Price Change Logs

@if ($job->jobBidLogs->isNotEmpty())
@foreach ($job->jobBidLogs as $log) @endforeach
Bidder Amount Change Created At
{{ $log->user?->name ?? 'N/A' }} ${{ number_format($log->amount ?? 0, 2) }} {{ $log->is_increased_decreased == 1 ? 'Increased' : 'Decreased' }} {{ $log->created_at ? \Carbon\Carbon::parse($log->created_at)->format('d M Y') : 'N/A' }}
@else

No bid logs available.

@endif

Addresses

@if ($job->userLawn) @php $userAddress = $job->userLawn?->address; // Get user address $providerAddress = $job->providerAddress(); // Get provider address @endphp
Job Address
@if (isset($userAddress) && $userAddress)
  • Title: {{ $userAddress->title ?? 'N/A' }}
    Address: {{ $userAddress->full_address ?? 'N/A' }}
@else

No job address available.

@endif
Provider Address
@if (isset($providerAddress) && $providerAddress)
  • Title: {{ $providerAddress->title ?? 'N/A' }}
    Address: {{ $providerAddress->full_address ?? 'N/A' }}
@else

No provider address available.

@endif
@else

No user lawn associated with this job.

@endif
@endsection @push('script') @endpush