@extends('layouts.app') @section('title', 'Work Permit Type Details') @section('content')
Back

{{ $workPermitType->name }}

{{ $workPermitType->code }}

Edit

Basic Information

Name
{{ $workPermitType->name }}
Code
{{ $workPermitType->code }}
Status
{{ $workPermitType->is_active ? 'Active' : 'Inactive' }}
@if($workPermitType->description)
Description
{{ $workPermitType->description }}
@endif

Validity Settings

Default Validity
{{ $workPermitType->default_validity_hours }} hours
Maximum Validity
{{ $workPermitType->max_validity_hours }} hours
Approval Levels
{{ $workPermitType->approval_levels }}

Safety Requirements

Requires Risk Assessment
Requires JSA
Requires Gas Test
Requires Fire Watch
@if($workPermitType->workPermits->count() > 0)

Associated Permits ({{ $workPermitType->workPermits->count() }})

@foreach($workPermitType->workPermits->take(10) as $permit)

{{ $permit->reference_number }}

{{ $permit->work_title }}

{{ ucfirst($permit->status) }}
@endforeach
@endif
@endsection