@extends('backend.partials.master') @section('title') {{ ___('label.hotel_allocation') }} @endsection @section('maincontent')
{{ ___('label.allocated') }}

{{ $allocated }}

{{ ___('label.pending_allocation') }}

{{ $pending }}

{{ ___('label.hajj_pilgrims') }}

{{ $pilgrims->count() }}

{{-- Makkah and Madinah are separate stays with separate hotels, so both are set here rather than a single "hotel" field. The forms live outside the table and the inputs point at them with form="…": a
between and is invalid markup and gets hoisted out of the table by the browser. --}} @forelse($pilgrims as $p) @php $fid = 'hotel-alloc-' . $p->id; @endphp {{ $p->pilgrim_no }} {{ $p->name }} {{ $p->group_name ?: '—' }} @if(hasPermission('hajj_update')) {{-- Rooms in the Hotel module are types, not numbered doors, so the selected hotels' types are offered as suggestions on a field the office can still type an actual room number into. --}} @else {{ $p->makkah_hotel ?: '—' }} {{ $p->madinah_hotel ?: '—' }} {{ $p->room_no ?: '—' }} — @endif @empty {{ ___('alert.no_data_available') }} @endforelse @if(hasPermission('hajj_update')) @foreach($pilgrims as $p) @csrf @method('PUT')
@endforeach @endif
@endsection @push('scripts') @endpush