@extends('layouts.rti-layout') @section('title', 'KSRTC- RTI - Seat Management') @section('content')

Seat Management

Manage all Seats for {{ $sectionModel->name ?? 'Section' }}

@if(session('success')) @endif @if(session('error')) @endif @if($errors->any()) @endif
@if($seats->count() > 0) @foreach($seats as $index => $seat) @endforeach @endif
# Seat Name Seat Code System Role Status Actions
{{ $seats->firstItem() + $index }}
{{ $seat->name ?? 'N/A' }}
{{ $seat->seat_code ?? 'N/A' }} {{ $seat->role->name ?? 'N/A' }} {{ ($seat->is_active ?? false) ? 'Active' : 'Inactive' }}
@if($seats->count() === 0)
No seats found for this section

Click "Create Seat" to add a new seat

@endif @if($seats->total() > 0)
Showing {{ $seats->firstItem() ?? 0 }} to {{ $seats->lastItem() ?? 0 }} of {{ $seats->total() }} seats
{{ $seats->links() }}
@endif
@endsection @push('styles') @endpush @push('scripts') @endpush