@php $brandStyle = $tenant->brand_primary_color ? ":root { --color-brand-600: {$tenant->brand_primary_color}; } .dark { --color-brand-600: {$tenant->brand_primary_color}; }" : null; $isMadrasa = $tenant->institution_type === 'madrasa'; @endphp
@if($errors->any())
    @foreach($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
All @foreach($classes as $class) {{ $class->name }} @endforeach
@php $selectedClass = request()->filled('school_class_id') ? $classes->firstWhere('id', request()->integer('school_class_id')) : null; @endphp @if($selectedClass && $selectedClass->streams->isNotEmpty())
Stream: All @foreach($selectedClass->streams as $stream) {{ $stream->name }} @endforeach
@endif
@if($tenant->institution_type === 'university') @endif @if($isMadrasa) @endif @forelse($subjects as $subject) @php $classNames = $subject->courseOfferings ->pluck('section.schoolClass.name') ->filter() ->unique() ->sort() ->values(); @endphp @if($tenant->institution_type === 'university') @endif @if($isMadrasa) @endif @empty @endforelse
SL Order Name Code Department Classes Stream TextbookCredit HoursTrackElective
{{ $loop->iteration }}
@if($subject->image_path) {{ $subject->name }} @else {{ strtoupper(mb_substr($subject->name, 0, 1)) }} @endif
{{ $subject->sort_order }} {{ $subject->name }} {{ $subject->code }} {{ $subject->departments->pluck('name')->implode(', ') ?: '—' }} @if($classNames->isEmpty()) Not offered yet @else {{ $classNames->implode(', ') }} @endif @if($subject->stream) {{ $subject->stream->name }} @else Shared @endif @if($subject->textbook_url) Read online @else — @endif {{ $subject->credit_hours ?? '—' }}{{ $subject->track ? ucfirst($subject->track) : '—' }} @if($subject->is_elective) Elective @else Core @endif @php $offeredClassIds = $subject->courseOfferings->pluck('section.school_class_id')->filter()->unique()->values(); $currentClassId = $offeredClassIds->contains((int) request('school_class_id')) ? (int) request('school_class_id') : $offeredClassIds->first(); @endphp
No subjects yet.
@csrf

Controls the display order in the subject list.

Leave blank to auto-generate from the department and selected class, e.g. PRI-03-06.

@foreach($departments as $department) @endforeach

Leave all unchecked to make this subject visible to every class. A subject shared across multiple departments (e.g. High School and College) should have all of them checked.

Creates a course offering for every section in this class, for its academic session, if one doesn't already exist. You can adjust this later from Course Offerings.

Leave as "Shared" for subjects every stream takes (e.g. Bangla, English). Pick a stream to offer this subject only to that stream's sections (e.g. Physics for Science).

A link where students can read or download the textbook online (e.g. Google Drive, publisher site).

@if($tenant->institution_type === 'university')
@endif @if($isMadrasa)
@endif