{{-- Copyright (c) 2024 Duncan McQuat All rights reserved. --}} PDCI Booking - Calendar Booking @vite(['resources/css/teacher.css'])
Loading
Home
Available | Booked | Your Booking
@if (session('error'))
{{ session('error') }}
@endif @if ($errors->any())
@endif
Report item issue
@php $defaultParams = ['week' => 0, 'group' => 'all']; use Illuminate\Support\Carbon; // Function to generate a query string from an array of parameters function buildQueryString($params) { $query = http_build_query($params); return $query ? '?' . $query : ''; } $currentParams = request()->query(); $params = array_merge($defaultParams, $currentParams); $linkUrlBack = buildQueryString(['week' => $params['week'] - 1, 'group' => $params['group']]); $linkUrlForward = buildQueryString([ 'week' => $params['week'] + 1, 'group' => $params['group'], ]); $linkCurrentWeek = buildQueryString(['week' => 0, 'group' => $params['group']]); @endphp @for ($i = 0; $i <= 5; $i++) @for ($j = 0; $j <= 4; $j++) @endfor @endfor
Back {{ date('M d Y', strtotime($dateRange[0])) }} - {{ date('M d Y', strtotime($dateRange[4])) }} Forward
Time Floor Items Monday
{{ Carbon::parse($dateRange[0])->toFormattedDateString() }}
Tuesday
{{ Carbon::parse($dateRange[1])->toFormattedDateString() }}
Wednesday
{{ Carbon::parse($dateRange[2])->toFormattedDateString() }}
Thursday
{{ Carbon::parse($dateRange[3])->toFormattedDateString() }}
Friday
{{ Carbon::parse($dateRange[4])->toFormattedDateString() }}
{{ $periods[$i] }}
    @foreach ($itemNames as $name)
  • {{$name[3]}}
  • @endforeach
    @foreach ($itemNames as $name)
  • 0) style="background-color:lightyellow;" @endif> {{ $name[0] }} @if (count($name[1]) > 0) @endif
  • @endforeach
    @foreach ($tableData[$i][$j] as $item) @if ($item[0])
  • ✓ (Per {{ $item[6] }})
  • @elseif ($item[2])
  • Your Booking (Per {{ $item[6] }})
  • @else
  • {{ $item[3] }} (Per {{ $item[6] }})
  • @endif @endforeach
© 2024-{{ date('Y') }} Duncan McQuat
Version: {{ config('app.version') }} @vite(['resources/js/teacher/table.ts'])