@extends('layouts.admin') @section('title', 'Fraud & Order Verification') @include('admin.phase3._styles') @section('content')
Blocked Customers
{{ number_format($stats['blocked_customers'] ?? 0) }}
High Risk (≥70)
{{ number_format($stats['high_risk'] ?? 0) }}
OTPs Today
{{ number_format($stats['otps_today'] ?? 0) }}
Verified (7d)
{{ number_format($stats['otp_verified_7d'] ?? 0) }}
Flagged Customers Recent OTPs
@if(($tab ?? 'flagged') === 'flagged')
@forelse($flaggedCustomers as $c) @empty @endforelse
Customer Phone / Email Tenant Risk Score Status
{{ $c->name ?? '—' }} {{ $c->phone ?? $c->email ?? '—' }} {{ $c->tenant->business_name ?? $c->tenant->name ?? '—' }} @php $rc = ($c->risk_score ?? 0) >= 70 ? 'danger' : (($c->risk_score ?? 0) >= 40 ? 'warning' : 'muted'); @endphp {{ $c->risk_score ?? 0 }} {{ $c->is_blocked ? 'Blocked' : 'Flagged' }}
No flagged customers.
@include('partials.table-pagination', ['paginator' => $flaggedCustomers, 'label' => 'customers'])
@else
@forelse($recentOtps as $otp) @empty @endforelse
Order Tenant Phone Verified Created
{{ $otp->order->order_number ?? $otp->order_id }} {{ $otp->order->tenant->business_name ?? '—' }} {{ $otp->phone ?? '—' }} {{ $otp->verified_at ? 'Verified' : 'Pending' }} {{ $otp->created_at?->diffForHumans() }}
No OTPs recorded.
@include('partials.table-pagination', ['paginator' => $recentOtps, 'label' => 'OTPs'])
@endif @endsection