@extends('layouts.admin')
@section('title', 'Fraud & Order Verification')
@include('admin._shared_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) }}
@if(($tab ?? 'flagged') === 'flagged')
| Customer |
Phone / Email |
Tenant |
Risk Score |
Status |
@forelse($flaggedCustomers as $c)
| {{ $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' }}
|
@empty
| No flagged customers. |
@endforelse
@include('partials.table-pagination', ['paginator' => $flaggedCustomers, 'label' => 'customers'])
@else
| Order |
Tenant |
Phone |
Verified |
Created |
@forelse($recentOtps as $otp)
| {{ $otp->order->order_number ?? $otp->order_id }} |
{{ $otp->order->tenant->business_name ?? '—' }} |
{{ $otp->phone ?? '—' }} |
{{ $otp->verified_at ? 'Verified' : 'Pending' }}
|
{{ $otp->created_at?->diffForHumans() }} |
@empty
| No OTPs recorded. |
@endforelse
@include('partials.table-pagination', ['paginator' => $recentOtps, 'label' => 'OTPs'])
@endif
@endsection