@extends('layouts.admin') @section('title', 'Bookings') @section('page-title', 'Bookings') @section('content')

Bookings

{{ $bookings->total() }} total bookings

@php $pending = $bookings->where('status','pending')->count(); $confirmed = $bookings->where('status','confirmed')->count(); $completed = $bookings->where('status','completed')->count(); $cancelled = $bookings->where('status','cancelled')->count(); @endphp
{{ $pending }}
Pending
{{ $confirmed }}
Confirmed
{{ $completed }}
Completed
{{ $cancelled }}
Cancelled
@forelse($bookings as $booking) @empty @endforelse
ID Student Counselor Date & Time Type Fee Payment Status Actions
#{{ $booking->id }}
{{ substr($booking->user->name??'U',0,1) }}
{{ $booking->user->name ?? 'N/A' }}
{{ $booking->counselor->user->name ?? 'N/A' }}
{{ optional($booking->booking_date)->format('d M Y') }}
{{ $booking->booking_time }}
{{ ucfirst($booking->meeting_type ?? 'online') }} PKR {{ number_format($booking->fee) }} {{ ucfirst($booking->payment_status ?? 'unpaid') }} {{ ucfirst($booking->status) }}
@csrf @method('PUT')
No bookings found
@if($bookings->hasPages())
{{ $bookings->links() }}
@endif @endsection