School Information Manager

{{-- Alerts --}} @if (session('success')) @endif @if (session('error')) @endif {{-- Add Single Entry (Collapsible) --}}
Add School Information

Add events, admission info, timings, fees, and other details for the chatbot.

@csrf
@error('category')
{{ $message }}
@enderror
@error('title')
{{ $message }}
@enderror
@error('content')
{{ $message }}
@enderror
Comma-separated keywords help the chatbot find this answer.
@error('keywords')
{{ $message }}
@enderror
{{-- CSV Bulk Import --}}
Bulk Import (CSV)

Upload a CSV file to import multiple records at once.

CSV Format (required columns):
category title content keywords start_date end_date
  • Categories: event, admission, timing, fee, general, contact, holiday, facility, exam
  • start_date and end_date are optional (format: YYYY-MM-DD)
@csrf
@if (session('import_errors') && count(session('import_errors')))
Row Errors ({{ count(session('import_errors')) }})
    @foreach (session('import_errors') as $err)
  • {{ $err }}
  • @endforeach
@endif
{{-- Current Records --}}
Current Information {{ $infos->count() }}
@if ($infos->isEmpty())

No information added yet. Add entries above so the chatbot can answer visitor questions.

@else
@php $categoryColors = [ 'event' => 'primary', 'admission' => 'success', 'timing' => 'info', 'fee' => 'warning', 'contact' => 'secondary', 'holiday' => 'danger', 'facility' => 'dark', 'exam' => 'primary', 'general' => 'secondary', ]; $categoryIcons = [ 'event' => 'calendar-event', 'admission' => 'pencil-square', 'timing' => 'clock', 'fee' => 'currency-rupee', 'contact' => 'telephone', 'holiday' => 'calendar-heart', 'facility' => 'building', 'exam' => 'journal-text', 'general' => 'info-circle', ]; @endphp @foreach ($infos as $info) @endforeach
Category Title Content Keywords Status Actions
{{ ucfirst($info->category) }} {{ $info->title }} {{ Str::limit($info->content, 80) }} @foreach (array_slice(explode(',', $info->keywords), 0, 3) as $kw) {{ trim($kw) }} @endforeach @if (count(explode(',', $info->keywords)) > 3) +{{ count(explode(',', $info->keywords)) - 3 }} @endif @if ($info->active) Active @else Inactive @endif
@csrf @method('PATCH')
@csrf @method('DELETE')
@endif
{{-- Edit Modal --}} @push('scripts') @endpush