@extends('backend.app') @section('title', 'Company Bookings - ' . $company->name) @section('content')

{{ $company->name }} - Bookings

@include('backend.partials.breadcrumb', ['items' => [ ['url' => route('dashboard'), 'title' => 'Dashboard', 'icon' => 'fas fa-home'], ['url' => route('companies.analytics'), 'title' => 'Company Analytics', 'icon' => 'fas fa-chart-line'], ['title' => 'Bookings', 'icon' => 'fas fa-calendar-check'] ]])

All Bookings

@forelse($bookings as $booking) @empty @endforelse
Booking ID Customer Employee Service Date & Time Amount Status Actions
#{{ $booking->id }} @if($booking->user) {{ $booking->user->name }}
{{ $booking->user->email }} @else N/A @endif
{{ $booking->employee?->name ?? 'N/A' }} {{ $booking->service?->name ?? 'N/A' }}
{{ $booking->booking_date?->format('M d, Y') ?? 'N/A' }}
{{ $booking->booking_time ?? 'N/A' }}
{{ config('app.currency_symbol', 'SAR ') }}{{ number_format((float)($booking->total_amount ?? 0), 2) }} @php $statusColors = [ 'pending' => 'warning', 'confirmed' => 'info', 'completed' => 'success', 'cancelled' => 'danger', ]; $color = $statusColors[$booking->status] ?? 'secondary'; @endphp {{ ucfirst($booking->status) }}

No bookings found for this company.

@if($bookings->hasPages())
{{ $bookings->links() }}
@endif
@endsection