@extends('layouts.app') @section('title', 'Department Templates') @section('page-title', 'Department Templates') @section('page-subtitle', 'Starter packs for new company setup') @section('breadcrumbs') @include('layouts.components.breadcrumbs', ['items' => [['label' => 'Admin', 'url' => '/admin/dashboard'], ['label' => 'Dept Templates']]]) @endsection @section('page-actions') Add Template @endsection @section('content')
@forelse($templates as $t) @empty @endforelse
NameDescriptionDepartmentsStatusActions
{{ $t->name }} {{ $t->description ?? '—' }}
@foreach($t->departments as $d) {{ $d }} @endforeach
@if($t->is_active)Active @elseInactive@endif
@csrf @method('DELETE')
@include('layouts.components.empty-state', ['icon' => 'box', 'title' => 'No templates', 'message' => 'Create department starter packs for new companies.', 'actionUrl' => route('admin.department-templates.create'), 'actionLabel' => 'Add Template'])
@if($templates->hasPages())
@include('layouts.components.pagination', ['paginator' => $templates])
@endif
@endsection