@extends('layouts.app') @section('title', 'CAPA Details') @section('content')
Back to Incident

CAPA: {{ $capa->reference_number }}

{!! $capa->getStatusBadge() !!} {!! $capa->getPriorityBadge() !!} @if($capa->status !== 'closed') Edit @endif

CAPA Details

Action Type

{{ ucfirst($capa->action_type) }} Action

Title

{{ $capa->title }}

Description

{{ $capa->description }}

@if($capa->root_cause_addressed)

Root Cause Addressed

{{ $capa->root_cause_addressed }}

@endif

Assignment & Timeline

Assigned To

{{ $capa->assignedTo->name ?? 'Unassigned' }}

@if($capa->department)

Department

{{ $capa->department->name }}

@endif

Due Date

{{ $capa->due_date->format('M j, Y') }} @if($capa->isOverdue()) Overdue @elseif($capa->getDaysRemaining() !== null) ({{ $capa->getDaysRemaining() }} days remaining) @endif

@if($capa->started_at)

Started On

{{ $capa->started_at->format('M j, Y') }}

@endif
@if($capa->required_resources || $capa->estimated_cost)

Resources & Budget

@if($capa->required_resources)

Required Resources

{{ $capa->required_resources }}

@endif @if($capa->estimated_cost)

Estimated Cost

${{ number_format($capa->estimated_cost, 2) }}

@endif
@endif @if($capa->implementation_plan || $capa->progress_notes)

Implementation

@if($capa->implementation_plan)

Implementation Plan

{{ $capa->implementation_plan }}

@endif @if($capa->progress_notes)

Progress Notes

{{ $capa->progress_notes }}

@endif @if($capa->challenges_encountered)

Challenges Encountered

{{ $capa->challenges_encountered }}

@endif
@endif @if($capa->isVerified() || $capa->status === 'under_review')

Verification

@if($capa->verified_by)

Verified By

{{ $capa->verifiedBy->name }}

{{ $capa->verified_at->format('M j, Y g:i A') }}

@endif @if($capa->verification_notes)

Verification Notes

{{ $capa->verification_notes }}

@endif @if($capa->effectiveness)

Effectiveness

{{ ucfirst(str_replace('_', ' ', $capa->effectiveness)) }}
@endif
@endif
@if($capa->status === 'pending')
@csrf
@endif @if($capa->status === 'in_progress')
@csrf
@endif @if($capa->status === 'under_review') @endif @if($capa->isVerified() && !$capa->isClosed())
@csrf
@endif
@endsection