@extends('layouts.app') @section('title', 'Biometric Record') @section('content')

{{ $subjectLabel }}

All Records
Subject
@if($subject->photograph_path) @else
@endif
{{ $subject->full_name }}
{{ $subjectType === 'owner' ? 'Vehicle Owner' : 'Driver' }} {{ $subjectType === 'owner' ? $subject->owner_code : $subject->driver_code }}
@if($subject->identification_number)
ID: {{ $subject->identification_number }}
@endif @if($subject->contact_phone)
{{ $subject->contact_phone }}
@endif
@if(auth()->user()->hasPermission('biometrics.enroll')) @include('partials.biometric_widget', ['purpose' => 'enroll', 'subjectType' => $subjectType, 'subjectId' => $subject->getKey(), 'title' => 'Enroll Fingerprint']) @endif @if(auth()->user()->hasPermission('biometrics.verify')) @include('partials.biometric_widget', ['purpose' => 'verify', 'subjectType' => $subjectType, 'subjectId' => $subject->getKey(), 'title' => 'Verify Fingerprint (1:1)']) @endif
Enrolled Templates
@forelse($templates as $template) @empty @endforelse
Finger Format Quality Device Enrolled Status Action
{{ $template->fingerLabel() }} {{ $template->template_format }} {{ $template->quality_score ?? '—' }} {{ $template->device_vendor ?: '—' }}{{ $template->device_model ? ' / '.$template->device_model : '' }} {{ $template->enrolled_at?->format('d M Y H:i') }} {{ ucfirst($template->status) }} @if($template->status === 'active' && auth()->user()->hasPermission('biometrics.delete'))
@csrf
@endif
No fingerprints enrolled.
Biometric Audit Trail
@forelse($audit as $row) @empty @endforelse
WhenActionResultScoreUserIP
{{ $audit[$loop->index]->created_at?->format('d M Y H:i') }} {{ $row->action }} {{ $row->result ?? '—' }} {{ $log = $row->match_score !== null ? number_format((float) $row->match_score, 2) : '—' }} {{ optional(\App\Models\User::find($row->user_id))->name ?? 'System' }} {{ $row->ip_address }}
No audit entries.
Consent
@if($activeConsent)
Active consent on record.
Granted {{ $activeConsent->granted_at?->format('d M Y') }} by {{ $activeConsent->granted_by_name }}.
@if($activeConsent->expires_at)
Expires {{ $activeConsent->expires_at->format('d M Y') }}.
@endif
@if(auth()->user()->hasPermission('biometrics.enroll'))
@csrf
@endif @else
No active consent.
@endif @if(auth()->user()->hasPermission('biometrics.enroll'))
@csrf
@endif
Consent History
    @forelse($consents as $consent)
  • #{{ $consent->id }} · {{ $consent->granted_at?->format('d M Y') }} {{ ucfirst($consent->status) }}
  • @empty
  • No consent history.
  • @endforelse
@if(auth()->user()->hasPermission('biometrics.delete'))
Erasure

Permanently delete all biometric templates and consents for this subject.

@csrf @method('DELETE')
@endif
@endsection