@extends('school.layouts.app') @section('content')

Section Mapping

@if(session('success'))
{{ session('success') }}
@endif

Add New Section

@csrf
{{-- Find the section and replace it with this --}} {{-- Find the section and replace it with this --}} @foreach($sections as $section) @endforeach
Sr. No. Class Section Name Code Action
{{ $loop->iteration }} {{ $section->schoolClass->name }} @if($section->is_deleted) {{ $section->name }} @else {{ $section->name }} @endif {{ $section->code ?? 'N/A' }} @if(!$section->is_deleted)
@csrf @method('DELETE')
@else
@csrf @method('PATCH')
@endif
@endsection