@php $imagePath = 'images/placeholder.png'; @endphp
@csrf
{{--
    --}} @php $buttonflag = false; @endphp @foreach ($seats as $key => $seat) @php if($seat->is_empty == 1){ $buttonflag = true; } @endphp {{-- @if($seat->is_empty) @endif --}} @if($seat->is_empty) {{-- --}} @for ($i = 0; $i < 6; $i++) @endfor @endif @if ($seat->hall_id) @endif @endforeach
    SL Room No Seat No Seat
    Booked ?
    Hall Id Student
    Name
    Department Admission
    Session
    Academic
    Program
    Registration No Mobile No
    {{ $key + 1 }}
    {{ $seat->room_no }}
    {{ $seat->seat_no }}
    @if (!$seat->is_empty)
    @else @endif
    {{ $seat->hall_id }}
    {{ $seat->student_name }}
    {{ $seat->dept_name }}
    {{ $seat->admission_session }}
    {{ $seat->year }}
    {{ $seat->registration_no }}
    {{ $seat->mobile_no }}
    @if($buttonflag)
    @endif {{-- @php if($buttonflag){ echo "
    "; } @endphp --}} @foreach ($seats as $seat) @endforeach {{--
--}} {{-- --}}