@extends('Component.layout') @php $isEdit = isset($class); $title = $isEdit ? 'Edit Class: ' . $class->name : 'Create New Class'; @endphp @section('title', $title . ' - Iqra Super Admin Portal') @section('breadcrumb', 'Academic Setup / Classes / ' . ($isEdit ? 'Edit' : 'New')) @section('content')

{{ $title }}

Configure the class details, assign a teacher, and add sections

@if($errors->any())
@endif
@csrf @if($isEdit) @method('PUT') @endif

Add sections and assign a specific teacher to each section.

@if($isEdit && $class->sections->count() > 0) @foreach($class->sections as $section)
@endforeach @else
@endif
Cancel
@endsection