@extends('layouts.app') @section('title', 'Departments') @section('header', 'Departments') @section('subheader', 'Manage organisational departments') @section('header-actions')
@can('viewTrashed', App\Models\Department::class) Recycle Bin @endcan @can(\App\Enums\PermissionEnum::DepartmentsCreate->value) New Department @endcan
@endsection @section('content')
Reset
@forelse ($departments as $department) @empty @endforelse
Name Code Employees Status Actions
{{ $department->name }} @if ($department->description)
{{ Str::limit($department->description, 60) }}
@endif
{{ $department->code }} {{ $department->employees_count ?? 0 }} @can('update', $department) @endcan @can('delete', $department) @endcan
No departments found.
{{ $departments->links() }}
@endsection