@extends('layouts.master') @section('title','Department') @section('main-content')
@include('admin.section.flash_message')
@canany(['edit_department','delete_department']) @endcanany @forelse($departments as $key => $value) @canany(['edit_department','delete_department']) @endcanany @empty @endforelse
# Name Department Head Total Employees Address Phone Branch Name StatusAction
{{(($departments->currentPage()- 1 ) * (\App\Models\Department::RECORDS_PER_PAGE) + (++$key))}} {{ucfirst($value->dept_name)}} {{isset($value->departmentHead) ? $value->departmentHead->name :'N/A'}} {{$value->employees_count}} {{$value->address}} {{$value->phone}} {{$value->branch->name}}
    @can('edit_department')
  • @endcan @can('delete_department')
  • @endcan

No records found!

{{$departments->appends($_GET)->links()}}
@endsection @section('scripts') @endsection