@extends('layouts.app') @section('admin_title', 'Admin Staffs') @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 Staff Choose a department to view and manage staff members. @if($adminCtx) Department -- Select Department -- @foreach($collegeDepts as $d) {{ $d->dept }} @endforeach @else University Select University @foreach($universities as $univ) {{ $univ->uname }} @endforeach College Select College Department Select Department @endif View Staff @if(!$adminCtx) @endif @endsection
Choose a department to view and manage staff members.