@extends('admin.layouts.app') @section('title', 'Department List') @section('content')

Departments

@if (isset($departments) && count($departments) > 0) @foreach ($departments as $department) @php $fixedDeptsIDS = [6, 7, 8, 9, 10]; @endphp @endforeach @endif
Name Created at Actions
{{ $department->name }} {{ dateInList($department->created_at) }} @if (!in_array($department->id, $fixedDeptsIDS))
@can('edit-department') @endcan @can('delete-department') @endcan
@else Fixed @endif
@endsection