<h2>{{ $tenant->name }}</h2>

@if (session('success'))
    <div>{{ session('success') }}</div>
@endif

<h4>{{ __('lang.queue') }}: {{ $waitingList->count() }}</h4>

<form method="POST" action="{{ route('queue.queue.join', $tenant->uuid) }}">
    @csrf
    <input type="text" name="name" placeholder="{{ __('customers.name') }}" required />
    <button type="submit">{{ __('queue.join_queue') }}</button>
</form>

<h5>{{ __('queue.current_queue') }}:</h5>
<ul>
@foreach ($waitingList as $entry)
    <li>{{ $entry->customer->name ?? __('queue.unknown') }}</li>
@endforeach
</ul>


