@extends('admin.layouts.dashboard') @section('title', 'Admin Booking') @section('content')
{{-- Header --}}

Admin Booking

+ Add Booking
{{-- Alerts --}} @if(session('success')) @endif
@if(request()->filled('search') || request()->filled('date_from') || request()->filled('date_to')) Clear @endif
{{-- Table --}}
@forelse($jobs as $job) @empty @endforelse
Sr No Customer Phone Item(s) / Service(s) Job Detail Job Date Status Actions
{{ ($jobs->currentPage() - 1) * $jobs->perPage() + $loop->iteration }} {{ $job->customer_name }} {{ $job->phone }} {{ $job->serviceNamesLabel() ?: '—' }} {{ Str::limit($job->job_detail, 50) ?: '—' }} {{ $job->job_date->format('d M Y') }} {{ \App\Models\JobDetail::jobStatuses()[$job->job_status] ?? $job->job_status }}
Edit Invoice
@csrf @method('DELETE')
@if(request()->filled('search') || request()->filled('date_from') || request()->filled('date_to')) No bookings match your search or date filter. @else No bookings found. @endif
{{-- Pagination --}}
{{ $jobs->onEachSide(1)->links() }}
@endsection