@extends('technician.layouts.app') @section('title', 'History Details') @section('content') @php($booking = $assignment->serviceBooking) @php($visit = $assignment->serviceVisit)

Completed Job Details

{{ $booking->booking_no }}

Customer & Service

Customer{{ $booking->customer->customer_name ?? '-' }}
Service Schedule{{ \Carbon\Carbon::parse($booking->service_date)->format('d M Y') }}{{ $booking->service_time ? ' ยท ' . \Carbon\Carbon::parse($booking->service_time)->format('h:i A') : '' }}
Service Address{{ $booking->service_address ?? '-' }}
Instructions{{ $assignment->instructions ?: 'No special instructions' }}

Visit History

Job Status{{ $assignment->work_status }}
Check-In{{ $visit?->checked_in_at?->format('d M Y, h:i A') ?? 'Not recorded' }}
Check-Out{{ $visit?->checked_out_at?->format('d M Y, h:i A') ?? 'Not recorded' }}
@if($booking->images->isNotEmpty())

Customer Booking Images

@foreach($booking->images as $image)Customer booking image {{ $loop->iteration }}@endforeach
@endif

Completion Report

Completion Notes{{ $visit?->completion_notes ?: 'No completion notes recorded.' }}
Chemicals Used{{ $visit?->chemicals_used ?: 'Not recorded' }}
@if($visit?->before_photo || $visit?->after_photo)
@if($visit?->before_photo)
Before
Before service photo
@endif @if($visit?->after_photo)
After
After service photo
@endif
@endif
@endsection