{{-- resources/views/admin/verification/index.blade.php --}} @extends('admin.layouts.app') @section('title', 'Verification Queue') @section('page_title', 'Verification Queue') @section('breadcrumb', 'Review property applications') @section('content') {{-- Filter Bar --}}
Filter: @foreach([ '' => 'All Pending', 'pending_review' => 'Pending Review', 'pending_resubmit'=> 'Resubmitted', 'info_requested' => 'Info Requested', 'approved' => 'Approved', 'rejected' => 'Rejected', ] as $val => $label) {{ $label }} @if($val === '' || $val === 'pending_review') @php $cnt = \App\Models\PropertyApplication::whereIn('status', $val === '' ? ['pending_review','pending_resubmit','info_requested'] : [$val] )->count(); @endphp @if($cnt > 0) {{ $cnt }} @endif @endif @endforeach
{{-- Applications Table --}}
Applications {{ $applications->total() }} total
@if($applications->isEmpty())

All caught up

No applications in this queue

@else
@foreach($applications as $app) @php $property = $app->property; $owner = $property?->users()->where('is_property_owner', true)->first(); $totalDocs = $app->documents->count(); $acceptedDocs = $app->documents->where('review_status', 'accepted')->count(); $pendingDocs = $app->documents->where('review_status', 'pending')->count(); @endphp @endforeach
Property Owner Type Plan Documents Submitted Status
{{ $property?->name ?? '—' }}
{{ $property?->city }}, {{ $property?->country }}
{{ $owner?->name ?? '—' }}
{{ $owner?->email }}
{{ ucfirst(str_replace('_', ' ', $property?->type ?? '')) }} @if($app->selected_plan_slug) {{ $app->selected_plan_slug }} @else @endif @if($totalDocs > 0)
{{ $acceptedDocs }} accepted @if($pendingDocs > 0) · {{ $pendingDocs }} pending @endif
@else No documents @endif
{{ $app->submitted_at?->diffForHumans() ?? '—' }} {{ str_replace('_', ' ', $app->status) }} Review →
{{-- Pagination --}} @if($applications->hasPages())
{{ $applications->links() }}
@endif @endif
@endsection