@extends('layouts.app') @section('title', 'QMS-001 Compliance Evidence') @section('content')

QMS-001 Compliance Evidence

Back
{{-- Stats --}}
@foreach([ ['Total Records', $stats['total'], 'primary', 'fa-list'], ['Closed', $stats['closed'], 'success', 'fa-check-circle'], ['With CAPA', $stats['with_capa'], 'warning', 'fa-tasks'], ['With Evidence', $stats['with_evidence'], 'info', 'fa-paperclip'], ] as [$label, $count, $color, $icon])
{{ $label }}
{{ $count }}
@endforeach
{{-- Filters --}}
Filters
Reset
{{-- Table --}}
@forelse($deviations as $d) @empty @endforelse
Number Kind Department Status Assessment Closure Actions
{{ $d->deviation_number }} {{ $d->record_kind->label() }} {{ $d->department?->department_name }} {{ $d->status->label() }} @if($d->assessment) Recorded @else @endif @if($d->closure) {{ $d->closure->closure_date?->format('M j, Y') }} @else @endif
No records found.
{{ $deviations->withQueryString()->links() }}
@endsection