@extends('admin.layout') @section('content')
{{ __('Non-Verified Users') }}
{{ __('Users who requested OTP but never completed verification') }}
@if ($verifiedLeads->count() === 0)

{{ __('No non-verified users found') }}

@else
@foreach($verifiedLeads as $key => $lead) @php $uInitials = !empty($lead->name) ? strtoupper(substr($lead->name, 0, 2)) : 'NV'; $avatarClasses = ['a-purple', 'a-orange', 'a-green', 'a-blue']; $avatarClass = $avatarClasses[$key % 4]; $flag = '🇮🇳'; if ($lead->country_code == '+966') { $flag = '🇸🇦'; } elseif ($lead->country_code == '+1') { $flag = '🇺🇸'; } elseif ($lead->country_code == '+44') { $flag = '🇬🇧'; } elseif ($lead->country_code == '+971') { $flag = '🇦🇪'; } @endphp @endforeach
# {{ __('Name') }} {{ __('Phone Number') }} {{ __('Country Code') }} {{ __('Email') }} {{ __('Plan Status') }} {{ __('OTP Sent At') }} {{ __('Action') }}
{{ $lead->id }}
{{ $uInitials }} {{ $lead->name ?: '-' }}
{{ $lead->phone }} {{ $flag }} {{ $lead->country_code ?: '+91' }} {{ $lead->email ?: '-' }} @if($lead->purchased || strtolower($lead->status) === 'purchased') {{ __('Purchased') }} @else {{ __('Not Purchased') }} @endif {{ $lead->otp_sent_at ? \Carbon\Carbon::parse($lead->otp_sent_at, 'UTC')->setTimezone(config('app.timezone', 'Asia/Kolkata'))->format('d M Y, h:i A') : '-' }}
@endif
@if(isset($verifiedLeads) && $verifiedLeads->total() > 0) @endif
@endsection