@extends('layouts.master') @section('page_title', 'Manage Subjects') @section('content')
Manage Subjects
{!! Qs::getPanelOptions() !!}
@csrf
@foreach($my_classes as $c)
@endforeach
Tick every class that learns this subject; it is created for all of them at once. Assign the teacher later from the teacher's profile (Manage Users).
@foreach($my_classes as $c)
@foreach($subjects->where('my_class.id', $c->id) as $s) @endforeach
S/N Name Short Name Class Teacher Action
{{ $loop->iteration }} {{ $s->name }} {{ $s->slug }} {{ $s->my_class->name }} {{ optional($s->teacher)->name ?: 'Not assigned' }}
@endforeach
{{--subject List Ends--}} @endsection @section('scripts') @endsection