@extends('layouts.app') @section('content')
@php $verifiedStepCount = collect($steps)->where('success', true)->count(); $totalStepCount = count($steps); $allStepsVerified = $totalStepCount > 0 && $verifiedStepCount === $totalStepCount; @endphp

{{ $app_user->user_name ?: '-' }}

{{ $app_user->user_email ?: '-' }}
{{ $verifiedStepCount }}/{{ $totalStepCount }} Steps Verified
Identification
{{ $app_user->id_type ?: 'ID Type' }}
{{ $app_user->user_id ?: '-' }}
@foreach ($steps as $step => $data)
{{ $data['title'] }}
@if ($step == 2)
Name
{{ $app_user->user_name ?: '-' }}
{{ $app_user->id_type ?: 'User ID' }}
{{ $app_user->user_id ?: '-' }}
@endif
@forelse($data['files'] as $file)
{{ $file->filename }} @if ($file->description) {{ $file->description }} @endif
@empty
No files found.
@endforelse
@if (!$loop->last)

@endif @endforeach
@if ($allStepsVerified)
All steps have already been approved for this submission.
@else
Review all steps above, then finalize this eKYC submission.
Cancel
@endif
@endsection @section('styles') @endsection @section('scripts') @endsection