@extends('admin.admin_dashboard') @section('customcss') @endsection @section('admin')
{{-- ===================================================== BREADCRUMB ====================================================== --}}
{{-- ===================================================== TOP CARD ====================================================== --}}
Exam Room Setup
Create exam rooms, configure columns and rows, update room layouts and activate or deactivate rooms.
{{-- ===================================================== ROOM TABLE ====================================================== --}}
Existing Rooms
@forelse($rooms as $key => $room) @php $totalSeat = 0; $rowLayout = []; $sortedColumns = $room->columns ->sortBy('column_no') ->values(); foreach ( $sortedColumns as $columnIndex => $column ) { $totalSeat += (int) $column->row_count; /* |-------------------------------------------------------------------------- | A, B, C... |-------------------------------------------------------------------------- */ $number = $columnIndex + 1; $label = ''; while ($number > 0) { $number--; $label = chr( 65 + ($number % 26) ) . $label; $number = intdiv( $number, 26 ); } $rowLayout[] = $label . ': ' . $column->row_count; } @endphp @empty @endforelse
SL Room Name Code Columns Row Layout Total Seats Status Action
{{ $key + 1 }} {{ $room->name }} {{ $room->code }} {{ $sortedColumns->count() }} {{ implode(' | ', $rowLayout) }} {{ $totalSeat }} @if($room->status === 'active') Active @else Inactive @endif
{{-- EDIT --}} {{-- ACTIVE / INACTIVE --}} @if($room->status === 'active') @else @endif
No examination rooms found.
{{-- ######################################################################## CREATE ROOM MODAL ######################################################################### --}} {{-- ######################################################################## UPDATE ROOM MODAL ######################################################################### --}} @endsection @section('customjs') {{-- SweetAlert2 already āĻĨāĻžāĻ•āϞ⧇ āĻāχ CDN remove āĻ•āϰāϤ⧇ āĻĒāĻžāϰāĻŦ⧇āύ --}} @endsection