@extends('layouts.app') @section('title', 'Work Permits') @php $breadcrumbs = [ ['label' => 'Dashboard', 'url' => route('dashboard'), 'icon' => 'fa-home'], ['label' => 'Work Permits', 'url' => route('work-permits.index'), 'active' => true] ]; @endphp @section('content')
Manage and track work permits
Total
{{ $stats['total'] }}
Pending
{{ $stats['pending'] }}
Active
{{ $stats['active'] }}
Expired
{{ $stats['expired'] }}
| Reference @if(request('sort') == 'reference_number') @else @endif | Work Title @if(request('sort') == 'work_title') @else @endif | Type | Location | Start Date @if(request('sort') == 'work_start_date') @else @endif | Status @if(request('sort') == 'status') @else @endif | Actions | |
|---|---|---|---|---|---|---|---|
|
{{ $permit->reference_number }}
|
{{ $permit->work_title }}
{{ $permit->requestedBy->name ?? 'N/A' }}
|
{{ $permit->workPermitType->name ?? 'N/A' }}
|
{{ $permit->work_location }}
|
{{ $permit->work_start_date->format('M d, Y') }}
{{ $permit->work_start_date->format('H:i') }}
|
{{ ucfirst(str_replace('_', ' ', $permit->status)) }} | ||