@extends('dashboard.layouts.master') @section('title', 'Review Student Verification | Admin Panel') @push('after-styles') @endpush @section('content')
{{-- Page Title --}}

Student Verification Review

Dashboard / Student Verification / #{{ $verification->id }}
{{-- ── LEFT COLUMN ──────────────────────────────────────────────────── --}}
{{-- Student Profile Card --}}

Student Profile

{{-- Avatar + name --}}
@if($verification->profile_image) Profile Photo @else
{{ strtoupper(substr($verification->name ?? 'S', 0, 1)) }}
@endif
{{ $verification->name ?? '-' }}
{{ $verification->phone ?? '-' }}
Primary Email
{{ $verification->email ?? '-' }}
@if($verification->student_email)
Student Email (.edu)
{{ $verification->student_email }}
@endif
Date of Birth
{{ $verification->dob ? \Carbon\Carbon::parse($verification->dob)->format('d M Y') : ($verification->date_of_birth ? \Carbon\Carbon::parse($verification->date_of_birth)->format('d M Y') : '-') }}
Gender
@php $genderMap = [ 'male' => 'Male', 'female' => 'Female', 'other' => 'Other', 'prefer_not_to_say' => 'Prefer not to say', 1 => 'Male', 2 => 'Female', ]; @endphp {{ $genderMap[$verification->gender] ?? '-' }}
Country
{{ $verification->country_name ?? '-' }}
Submission Date
{{ \Carbon\Carbon::parse($verification->created_at)->format('d M Y, H:i') }}
Current Status
@php $statusClass = [1=>'badge-pending', 2=>'badge-approved', 3=>'badge-rejected', 4=>'badge-hold']; $statusLabels = [1=>'Pending', 2=>'Approved', 3=>'Rejected', 4=>'On Hold']; @endphp {{ $statusLabels[$verification->verification_status] ?? 'Unknown' }}
@if($verification->expiry_date)
ID Expiry Date
{{ \Carbon\Carbon::parse($verification->expiry_date)->format('d M Y') }}
@endif
{{-- Action Center Card --}}

Action Center

@csrf
Verification auto-expires on this date.
@if(\Helper::checkPermission('student_verification','approve') || \Helper::checkPermission('student_verification','reject') || \Helper::checkPermission('student_verification','update')) @endif
{{-- Rewards History Card --}}

Rewards History

@forelse($rewards_history as $reward) @empty @endforelse
Business Points
{{ $reward->business_name }} {{ number_format($reward->business_total_points, 2) }}
No rewards found
{{-- /col-md-4 --}} {{-- Points Details Modal --}} {{-- ── RIGHT COLUMN ─────────────────────────────────────────────────── --}}

Student ID Document

@if($verification->student_id_document) @php $docPath = $verification->student_id_document; // Files saved via Storage::disk('public') → accessible at storage/ // Old seeder files stored under assets/ → use asset() directly if (str_starts_with($docPath, 'assets/') || str_starts_with($docPath, 'http')) { $docUrl = asset($docPath); } else { $docUrl = asset('storage/' . $docPath); } $ext = strtolower(pathinfo($docPath, PATHINFO_EXTENSION)); $isPdf = ($ext === 'pdf'); @endphp
@if($isPdf) {{-- PDF: render inline with iframe --}} @else {{-- Image: render with zoom-on-click --}} Student ID Document @endif
Open in New Tab Download {{ basename($docPath) }}
@else

No student ID document uploaded for this request.

@endif
{{-- /card-premium --}}
{{-- /col-md-8 --}}
{{-- /row --}}
{{-- Image zoom modal (only shown for non-PDF documents) --}} @endsection @push('after-scripts') @endpush