@if(session()->has('success'))
Congratulations! {{ session()->get('success') }}
@endif
@php $q = 1; @endphp
Reports for Completed Jobs This Month
| S/N | Client | Vehicle Details | Service | Expected Date and Time | Payment Status | Assigned to | @php $bookings = DB::table('temp_bookings')->where('payment',1)->get(); @endphp @foreach($bookings as $booking)
|---|---|---|---|---|---|---|
| {{ $q++ }} | {{ $booking->name }} | {{ $booking->vehicle_make }} with Reg. Number {{ $booking->vehicle_reg_nos }} | {{ $booking->service }} | {{ $booking->expected_date }} | @php $service = DB::table('services')->where('service',$booking->service)->first(); @endphp@if($booking->payment == 1) Paid £{{ $service->price }} @else Not Paid @endif @php $staff = DB::table('users')->where('id',$booking->assigned_staff)->first(); @endphp | @if($staff) {{ $staff->fullname }} @else Details of Staff Assigned not Available. Contact Administrator. @endif |