@extends('layouts.master') @section('title') @lang('translation.Departments') @endsection @section('content') @component('components.breadcrumb') @slot('li_1') Admin @endslot @slot('title') Departments Management @endslot @endcomponent
Departments Management
Add New Department Smart View @if(request('onlyTrashed')) View Active View All @elseif(request('withTrashed')) View Active View Deleted @else View Deleted View All @endif
@if(session('success'))
{{ session('success') }}
@endif
@if(request()->has('search')) @endif
@forelse($departments as $department) @empty @endforelse
# Department Name Description Branch Status Actions
{{ $loop->iteration + ($departments->currentPage() - 1) * $departments->perPage() }} {{ $department->name }} {{ Str::limit($department->description, 50) }} @if($department->branch) {{ $department->branch->name }} @else N/A @endif {{ $department->active ? 'Active' : 'Inactive' }} @if(method_exists($department, 'trashed') && $department->trashed()) Deleted @endif
@if($department->trashed())
@csrf @method('PUT')
@csrf @method('DELETE')
@else
@csrf @method('DELETE')
@endif

No departments found

Try adjusting your search or filter to find what you're looking for.

Add New Department
Showing {{ $departments->firstItem() }} to {{ $departments->lastItem() }} of {{ $departments->total() }} entries
{{ $departments->withQueryString()->onEachSide(1)->links() }}
@endsection @section('script') @endsection @section('script-bottom') @endsection