@extends('admin.layout') @section('content')
| ID | Listing | Renter | Lender | Dates | Total | Status | |
|---|---|---|---|---|---|---|---|
| #{{ $booking->id }} | {{ $booking->listing->title }} | {{ $booking->renter->name }} | {{ $booking->lender->name }} | {{ $booking->start_date->format('d M') }} - {{ $booking->end_date->format('d M Y') }} | £{{ $booking->total }} | View | @php $badgeClass = match($booking->status) { 'completed' => 'badge-green', 'active' => 'badge-blue', 'disputed' => 'badge-red', 'cancelled' => 'badge-grey', default => 'badge-orange', }; @endphp {{ ucfirst($booking->status) }} |