@extends('layouts.admin.master') @section('title', 'Table-Reservation') @section('content')
Table-Reservation
@php $totalTableCount = 0; $availableTableCount = 0; $reservationTableCount = 0; $occupiedTableCount = 0; @endphp @if (count($tables) != 0) @foreach ($tables as $table) @php $totalTableCount++; $occupied = false; $reserved = false; foreach ($occupiedTables as $occupiedTable) { if ($table['table_id'] == $occupiedTable['table_id']) { $occupied = true; $occupiedTableCount++; break; } } foreach ($reservationTables as $reservationTable) { if ($table['table_id'] == $reservationTable['table_id']) { $reserved = true; $reservationTableCount++; break; } } $disabled = $occupied ? 'disabled' : ''; $backgroundColor = $occupied ? 'red' : ($reserved ? 'orange' : 'white'); $textColor = $occupied ? 'white' : ($reserved ? 'white' : 'black'); @endphp @endforeach @php $availableTableCount = $totalTableCount - ($occupiedTableCount + $reservationTableCount); @endphp @endif
@if (count($floors) != 0) @foreach ($floors as $floor) @if ($floor['floor_id'] == 1) @else @endif @endforeach @endif

Reservation Info


@csrf
@error('reservation_date')
{{ $message }}
@enderror
@error('reservation_time')
{{ $message }}
@enderror

@error('name')
{{ $message }}
@enderror
@error('phone_number')
{{ $message }}
@enderror
@error('number_of_person')
{{ $message }}
@enderror

@csrf
@endsection