@extends('layouts.app') @section('title', 'Departments') @section('content')

Departments

@can('departments.create') Add Department @endcan
Clear
@forelse($departments as $department) @empty @endforelse
Name Company Location Head of Department Status Actions
{{ $department->name }}
{{ $department->code }}
{{ $department->company->name }}
{{ $department->location }}
@if($department->headOfDepartment)
{{ $department->headOfDepartment->name }}
@else Not assigned @endif
@if($department->is_active) Active @else Inactive @endif
@can('departments.view') @endcan @can('departments.edit') @endcan
No departments found.
@if($departments->hasPages())
{{ $departments->links() }}
@endif
@endsection