Audit Portal

Post-disbursement audits, compliance, and findings management

Total Audits

{{ $totalAudits }}

In Progress

{{ $inProgress }}

Findings

{{ $findings }}

Compliance

{{ $avgCompliance }}%

This Month

{{ $thisMonth }}

@foreach (['audits' => 'Audit Records', 'activity' => 'Activity Log'] as $key => $label) {{ $label }} @endforeach
@if ($tab === 'activity')

Complete Activity Log

Every stage transition across every application — immutable, timestamped, attributed (PRD Section 17)

@foreach ($activityLog as $entry)

{{ $entry->loanApplication?->application_number }} → {{ $entry->to_stage }}

{{ $entry->actor?->name ?? 'System' }} ({{ $entry->actor_role ?? '—' }}) · {{ $entry->created_at->format('M j, Y g:ia') }} · IP {{ $entry->ip_address ?? '—' }}

@if ($entry->notes)

{{ $entry->notes }}

@endif
@endforeach
{{ $activityLog->links() }}
@else

Audit Records

@if ($audits->isEmpty())

No audits recorded yet.

@else @foreach ($audits as $audit) @php $sevBadge = match($audit->finding_severity) { 'high' => 'bg-red-100 text-red-700', 'medium' => 'bg-orange-100 text-orange-700', 'low' => 'bg-yellow-100 text-yellow-700', default => 'bg-green-100 text-green-700', }; @endphp @endforeach
Audit Type Application Auditor Status Severity Compliance Score
{{ $audit->audit_type }} {{ $audit->loanApplication?->application_number ?? '—' }} {{ $audit->auditor?->name ?? '—' }} {{ ucfirst(str_replace('_',' ', $audit->status)) }} {{ ucfirst($audit->finding_severity ?? 'none') }} {{ $audit->compliance_score ?? '—' }}%
{{ $audits->links() }}
@endif
@endif