@extends('layouts.master') @section('title', __('index.department')) @section('main-content')
@include('admin.section.flash_message')
{{ __('index.department_lists') }}
@if(!isset(auth()->user()->branch_id))
@endif
{{ __('index.reset') }}
{{ __('index.department_lists') }}
@canany(['edit_department','delete_department']) @endcanany @forelse($departments as $key => $value) @canany(['edit_department','delete_department']) @endcanany @empty @endforelse
# {{ __('index.name') }} {{ __('index.department_head') }} {{ __('index.total_employees') }} {{ __('index.address') }} {{ __('index.phone') }} {{ __('index.branch_name') }} {{ __('index.status') }}{{ __('index.action') }}
{{ (($departments->currentPage() - 1 ) * (\App\Models\Department::RECORDS_PER_PAGE) + (++$key)) }} {{ ucfirst($value->dept_name) }} {{ isset($value->departmentHead) ? $value->departmentHead->name : __('index.not_available') }} {{ $value->employees_count }} {{ $value->address }} {{ $value->phone }} {{ $value->branch->name }}
    @can('edit_department')
  • @endcan @can('delete_department')
  • @endcan

{{ __('index.no_records_found') }}

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