@extends('layouts.master') @section('title') @lang('translation.Departments') @endsection @section('css') @endsection @section('content') @component('components.breadcrumb') @slot('li_1') Admin @endslot @slot('title') Departments Management @endslot @endcomponent
Departments Management
@if(session('success'))
{{ session('success') }}
@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
@endsection @section('script') @endsection