@extends('layouts.admin') @section('title', 'Departments Management') @section('content')

Departments

Create Department
@if($departments->count() > 0)
@foreach($departments as $department) @endforeach
Name Code Description Status Advertisements Actions
{{ $department->name }} {{ $department->code }} {{ Str::limit($department->description, 50) }} {{ $department->status ? 'Active' : 'Inactive' }} {{ $department->advertisements_count ?? 0 }}
{{ $departments->links() }} @else

No Departments Found

You haven't created any departments yet.

Create Your First Department
@endif
@endsection @section('scripts') @endsection