@extends('layouts.app') @section('title', 'CAPA Register') @section('content')

CAPA Register

New CAPA
{{-- Stats --}}
@foreach([ ['Total', $stats['total'], 'primary'], ['Open', $stats['open'], 'info'], ['Overdue', $stats['overdue'], 'warning'], ['Critical', $stats['critical'],'danger'], ['Closed', $stats['closed'], 'success'], ['Pending', $stats['pending'], 'secondary'], ] as [$label, $val, $color])
{{ $label }}
{{ $val }}
@endforeach
{{-- Filters --}}
{{-- Table --}}
@forelse($capas as $c) @empty @endforelse
CAPA # Title Type Priority Status Owner Target
{{ $c->capa_number }} {{ Str::limit($c->title, 60) }} {{ $c->capa_type }} {{ $c->priority }} {{ str_replace('_', ' ', $c->status) }} {{ $c->owner?->name ?? '—' }} {{ $c->target_completion_date?->format('M j, Y') ?? '—' }} @if($c->isOverdue()) Overdue @endif
No CAPAs found.
{{ $capas->withQueryString()->links() }}
@endsection