@extends('technician.layouts.app') @section('title', 'Job History') @section('content')

Job History

Jobs you have attended and completed.

@if($jobs->isEmpty())

No completed job history found.

@else
@foreach($jobs as $assignment) @php($booking = $assignment->serviceBooking) @endforeach
BookingCustomerService DateService AddressCompleted AtStatusAction
{{ $booking->booking_no }} {{ $booking->customer->customer_name ?? 'Customer unavailable' }} {{ \Carbon\Carbon::parse($booking->service_date)->format('d M Y') }} {{ $booking->service_address ?? 'Address not provided' }} {{ $assignment->serviceVisit?->checked_out_at?->format('d M Y, h:i A') ?? $assignment->updated_at->format('d M Y, h:i A') }} {{ $assignment->work_status }} View
@endif @endsection