@extends('layouts.app') @php use App\Services\AuditService; use App\Support\RoleNames; $fmtDate = function ($value, string $format = 'M j, Y H:i') { if (empty($value)) return '—'; try { return \Illuminate\Support\Carbon::parse($value)->format($format); } catch (\Throwable $e) { return (string) $value; } }; $hasPending = false; $openFindings = $audit->openFindingsCount(); $majorNcCount = $audit->majorNcCount(); @endphp @section('title', $audit->audit_number . ' — ' . $audit->title) @section('content')
{!! nl2br(e($audit->scope)) !!}
@if($audit->objectives){!! nl2br(e($audit->objectives)) !!}
@endif @if($audit->criteria){!! nl2br(e($audit->criteria)) !!}
@endif{!! nl2br(e($audit->execution_summary)) !!}
@endif @if($audit->closing_meeting_notes){!! nl2br(e($audit->closing_meeting_notes)) !!}
@endif @if($audit->audit_report_summary){!! nl2br(e($audit->audit_report_summary)) !!}
@endif @else| # | Type | Title | Status | CAPA | Response Due | Actions |
|---|---|---|---|---|---|---|
{{ $f->finding_number }} |
{{ $f->finding_type->label() }}
{{ $f->severity->label() }} |
{{ $f->title }}
@if($f->clause_reference)
Ref: {{ $f->clause_reference }} @endif |
{{ $f->status->label() }} | @if($f->capa_id) CAPA #{{ $f->capa_id }} @elseif($f->requiresCapa()) Required @else — @endif |
{{ $fmtDate($f->response_due_date, 'M j, Y') }}
@if($f->isOverdueResponse())
Overdue @endif |
@if(! $f->capa_id) @endif |
| Type | ID | Relationship | Impact Notes | Actions |
|---|---|---|---|---|
| {{ $link->linked_type }} | #{{ $link->linked_id }} | {{ $link->relationship }} | {{ Str::limit($link->impact_notes, 120) }} |
| Date | User | Action | Description |
|---|---|---|---|
| {{ $fmtDate($t->changed_at) }} | {{ $t->user?->name ?? 'System' }} | {{ $t->action_type }} |
{{ $t->action_description }} |
| No audit entries. | |||