@extends('layouts.app') @section('admin_title', 'Admin Batches') @section('content') @php $adminCtx = \App\Helpers\AdminContext::get(); $collegeDepts = $adminCtx ? \App\Helpers\AdminContext::departments() : collect(); @endphp @if(session('error')) {{ session('error') }} @endif @csrf Select Department for Batches Choose a department to view and manage its sections/batches. @if($adminCtx) Department -- Select Department -- @foreach($collegeDepts as $dept) {{ $dept->dept }} @endforeach @else University Select University @foreach($universities as $university) {{ $university->uname }} @endforeach College Select College Department Select Department @endif View Batches @if(!$adminCtx) @endif @endsection
Choose a department to view and manage its sections/batches.