@extends('layouts.app') @section('title', 'GCLA Log Details') @section('content')
Back

{{ $gcaLog->reference_number }}

{{ ucfirst(str_replace('_', ' ', $gcaLog->gcla_type)) }} - {{ $gcaLog->location }}

Edit @if($gcaLog->action_assigned_to && !$gcaLog->action_completed)
@csrf
@endif

GCLA Information

GCLA Type
{{ ucfirst(str_replace('_', ' ', $gcaLog->gcla_type)) }}
Check Date & Time
{{ $gcaLog->check_date->format('M d, Y H:i') }}
Location
{{ $gcaLog->location }}
Compliance Status
{{ ucfirst(str_replace('_', ' ', $gcaLog->compliance_status)) }}
@if($gcaLog->workPermit) @endif
Description
{{ $gcaLog->description }}
@if($gcaLog->corrective_actions || $gcaLog->action_assigned_to)

Corrective Actions

@if($gcaLog->corrective_actions)
Actions
{{ $gcaLog->corrective_actions }}
@endif @if($gcaLog->actionAssignedTo)
Assigned To
{{ $gcaLog->actionAssignedTo->name }}
@endif @if($gcaLog->action_due_date)
Due Date
{{ $gcaLog->action_due_date->format('M d, Y') }} @if($gcaLog->action_due_date < now() && !$gcaLog->action_completed) (Overdue) @endif
@endif
Status
{{ $gcaLog->action_completed ? 'Completed' : 'Pending' }} @if($gcaLog->action_completed_at) on {{ $gcaLog->action_completed_at->format('M d, Y') }} @endif
@endif @if($gcaLog->verified_by)

Verification

Verified By
{{ $gcaLog->verifiedBy->name }}
Verified At
{{ $gcaLog->verified_at->format('M d, Y H:i') }}
@if($gcaLog->verification_notes)
Verification Notes
{{ $gcaLog->verification_notes }}
@endif
@endif

Quick Actions

@if(!$gcaLog->verified_by) @endif
@push('scripts') @endpush @endsection