@php $tenant = \App\Support\Facades\Tenancy::get(); $brandStyle = $tenant->brand_primary_color ? ":root { --color-brand-600: {$tenant->brand_primary_color}; } .dark { --color-brand-600: {$tenant->brand_primary_color}; }" : null; $tenantTimezone = $tenant->timezone ?? config('app.timezone'); $local = fn ($carbon) => $carbon?->copy()->setTimezone($tenantTimezone); @endphp
@if ($errors->any())
{{ $errors->first() }}
@endif
@forelse($bookings as $index => $booking) @empty @endforelse
# Facility When Purpose Booked By Status
{{ $index + 1 }} {{ $booking->facility->name ?? '—' }} {{ $local($booking->starts_at)->format('d M Y H:i') }} – {{ $local($booking->ends_at)->format('H:i') }} {{ \Illuminate\Support\Str::limit($booking->purpose, 32) }} {{ $booking->bookedBy->name ?? '—' }} {{ ucfirst($booking->status) }}
@if($booking->status === 'pending')
@csrf
@csrf
@elseif($booking->status === 'approved')
@csrf
@endif
No bookings yet.

Request a time slot on one of the school's shared venues — auditorium, seminar hall, sports facility, labs — without accidentally clashing with someone else's booking.

How it works

  • Pick a facility, a start and end time, and a purpose.
  • If that time slot overlaps an existing Pending or Approved booking for the same facility, it's rejected automatically — you'll need to pick another time.
  • Bookings from Institution Owner, Branch Manager, or Principal are approved instantly.
  • Everyone else's request starts as Pending and needs an admin to Approve or Reject it.
  • A booking can be Cancelled at any point before it happens.

When it's needed

Any time you need to reserve a shared space in advance — an exam in the auditorium, a guest lecture, a science lab session — so two people don't plan around the same room at the same time.

@csrf