@extends('layouts.master') @section('title') @lang('translation.Department_Details') @endsection @section('content') @component('components.breadcrumb') @slot('li_1') Admin @endslot @slot('title') Department Details @endslot @endcomponent
Department Details
@if(session('success'))
{{ session('success') }}
@endif
{{ substr($department->name, 0, 1) }}

{{ $department->name }}

{{ $department->active ? 'Active' : 'Inactive' }} @if($department->trashed()) Deleted @endif
Branch Information

{{ $department->branch->name }}

{{ $department->branch->location }}

Description

{{ $department->description ?? 'No description provided' }}

Timestamps

Created: {{ $department->created_at->format('M d, Y') }}

Last Updated: {{ $department->updated_at->format('M d, Y') }}

@if($department->trashed())

Deleted: {{ $department->deleted_at->format('M d, Y') }}

@endif
Statistics

Employees: {{ $department->employees_count ?? 0 }}

Quick Actions
@if($department->trashed())
@csrf @method('PUT')
@csrf @method('DELETE')
@else View Employees Edit Department
@csrf @method('DELETE')
@endif
@if(!$department->trashed())
Status Toggle
@csrf
active ? 'checked' : '' }} onchange="this.form.submit()">
@endif
@endsection @section('script') @endsection @section('script-bottom') @endsection