@extends('provider.layout') @section('title', 'HS Bookings') @section('content')

Home Service Bookings

Manage all your home service appointments and assignments.

@if($hsBookings && (count($hsBookings) > 0 || request()->has('staff_id')))
Home Services
@if(request()->has('staff_id') && request('staff_id') != '') @endif
@foreach($hsBookings as $booking) @endforeach
Ref Customer Service Scheduled Staff Amount Payment Status Action
#{{ $booking->booking_ref }} {{ $booking->user->name ?? $booking->customer_name }} {{ $booking->service->title ?? '—' }} {{ $booking->scheduled_date?->format('d M Y') }} {{ $booking->scheduled_time ? date('h:i A', strtotime($booking->scheduled_time)) : '' }} @if($booking->assignedToUser)
{{ $booking->assignedToUser->name }}
Assigned
@else
Unassigned
@endif
{!! \App\Helpers\CurrencyHelper::formatForProvider($booking->amount, auth()->user()) !!} @if($booking->payment)
{{ ucfirst($booking->payment->payment_status) }}
{{ ucfirst($booking->payment->payment_method) }}
@else Unpaid @endif
{{ ucfirst(str_replace('_',' ',$booking->status)) }} @if($booking->status === 'pending')
@csrf
@elseif($booking->status === 'confirmed')
@csrf
@elseif($booking->status === 'in_progress')
@csrf
@else @endif
{{ $hsBookings->appends(request()->query())->links() }}
@else

No bookings yet

Bookings from customers will appear here.

@endif @endsection