Departments
@include('components.controls',['data' => $departments])
@include('components.loading')
@if (count($departments)) @foreach ($departments as $department) @endforeach
# Code Name HOD Description
{{ ++$offset }} {{ $department->code }} {{ $department->name }} @if ($hod = $department->hod->first()) {{ "$hod->forenames $hod->surname" }} @endif {{ $department->description }}
   
@else

No department yet

@endif
@include('departments.add') @include('departments.edit') @include('departments.assign-hod')