@extends('layouts.app') @section('title', 'Permit to Work Dashboard') @section('content')

Permit to Work Dashboard

Manage work permits and GCLA compliance

Total Permits

{{ $stats['total_permits'] }}

Pending Approval

{{ $stats['pending_approval'] }}

Active Permits

{{ $stats['active_permits'] }}

Expired Permits

{{ $stats['expired_permits'] }}

Closed Permits

{{ $stats['closed_permits'] }}

Permit Types

{{ $stats['total_types'] }}

GCLA Logs

{{ $stats['gca_logs'] }}

Non-Compliant GCLA

{{ $stats['non_compliant_gca'] }}

Monthly Permits

Permit Type Distribution

Pending Approvals

View All
@forelse($pendingApprovals ?? [] as $approval)

{{ $approval->workPermit->work_title }}

Level {{ $approval->approval_level }} - {{ $approval->approver->name }}

Pending
@empty

No pending approvals

@endforelse
@if(isset($expiringSoon) && $expiringSoon->count() > 0)

Permits Expiring Soon (24 hours)

@endif
@push('scripts') @endpush @endsection