@extends('layouts.base') @section('title', 'Tempahan') @section('content')

Senarai Tempahan

@foreach ($currentBookings as $index => $booking) @php // Define the statuses that should show the Jejak Tempahan button $statusesWithJejakTempahan = [ 'Lulus', 'Sebut Harga', 'Tolak', 'Menunggu Sebut Harga', 'Sebut Harga Baru', 'Belum Bayar', 'Pembayaran Berjaya', 'Pembayarn Tidak Selesai', 'Pembayaran Gagal', 'Kerja Dalam Proses', 'Selesai', ]; @endphp @endforeach
No. Servis Tarikh Status Catatan Tindakan
{{ $index + 1 }} {{ $booking->subService->name ?? 'N/A' }} {{ $booking->created_at ? $booking->created_at->format('d/m/Y') : '-' }} @if($booking->status == 'Hantar') {{ $booking->status }} @elseif($booking->status == 'Gagal') {{$booking->status}} @else Lulus @endif {{ $booking->reject_reason ?? '-' }} @if ($booking->status == "Hantar") @elseif ($booking->status == "Gagal") @else @endif
@foreach ($historyBookings as $index => $booking) @endforeach
No. Servis Tarikh Status Catatan Tindakan
{{ $index + 1 }} {{ $booking->subService->name ?? 'N/A' }} {{ $booking->created_at ? $booking->created_at->format('d/m/Y') : '-' }} {{ $booking->status }} {{ $booking->remark ?? '-' }}
{{-- Display current and history booking --}} {{-- Display the delete modal --}} @endsection