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

Section Management

Manage all Sections

@if(session('success')) @endif @if(session('error')) @endif @if($errors->any()) @endif
Office: {{ $officeModel->name ?? 'Main Office' }} @if($officeModel->officeType) {{ $officeModel->officeType->name ?? '' }} @endif @if($officeModel->code) Code: {{ $officeModel->code }} @endif
{{ $officeModel->formatted_address ?? 'No address provided' }} @if($officeModel->phone_number) {{ $officeModel->phone_number }} @endif @if($officeModel->email) {{ $officeModel->email }} @endif @if($officeModel->short_code) Short Code: {{ $officeModel->short_code }} @endif Total Sections: {{ $sections->total() ?? 0 }}
{{ $officeModel->is_active ? 'Active' : 'Inactive' }}
Add New Section
@csrf
Please enter a section name (minimum 2 characters).
@error('name')
{{ $message }}
@enderror
@error('is_active')
{{ $message }}
@enderror
@forelse($sections as $index => $section) @empty @endforelse
# Section Name Status Actions
{{ $sections->firstItem() + $index }}
{{ $section->name ?? 'N/A' }}
{{ ($section->is_active ?? false) ? 'Active' : 'Inactive' }}
No sections found for this office

Click "Create Section" to add a new section

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