{{-- Copyright (c) 2024 Duncan McQuat All rights reserved. --}} PDCI Booking - Home @vite(['resources/css/teacher.css']) @if (session('error'))
{{ session('error') }}
@endif @if ($errors->any())
@endif {{-- Docs --}} @if ($user->hasPerm('booking_admin')) Admin @endif

Welcome {{$user->getFirstname()}} {{$user->getLastname()}}

Upcoming Bookings

@foreach ($groups as $group) Book {{$group->name}} @endforeach Book all
{{count($upcomingBookings)}} bookings @php use Carbon\Carbon; $today = Carbon::now()->startOfDay(); @endphp @foreach ($upcomingBookings as $booking)
@if(Carbon::createMidnightDate($booking->date)->diffInDays($today) > 1) {{Carbon::createMidnightDate($booking->date)->diffForHumans()}} @elseif (Carbon::createMidnightDate($booking->date)->diffInDays($today) == 1) Tomorrow @else Today @endif
{{Carbon::create($booking->date)->format('M d Y')}} | {{$periods[$booking->block - 1]}}
@csrf @method('DELETE')
Item: {{$booking->item->name}}
Comment: {{$booking->comment}}
@if ($booking->room_num) Room: {{$booking->room_num}} @endif
@endforeach
{{-- Version: {{config('app.version')}} | Privacy Policy --}} Version: {{config('app.version')}} | Developed by Duncan McQuat for ICS4U