@extends('admin.layout') @section('content')
{{-- Tab Navigation --}} {{-- ============================================================= --}} {{-- TAB 1 : Registered Customers --}} {{-- ============================================================= --}} @if(request()->input('active_tab') !== 'verified')
{{ __('Registered Users') }} @if(isset($users) && method_exists($users, 'total')) {{ $users->total() }} {{ __('Clients Total') }} @endif
@if (count($users) == 0)

{{ __('NO USER FOUND') }}

@else
@foreach ($users as $key => $user) @php $uInitials = strtoupper(substr($user->username, 0, 2)); $avatarClasses = ['a-purple', 'a-orange', 'a-green', 'a-blue']; $avatarClass = $avatarClasses[$key % 4]; $userPkg = \App\Http\Helpers\UserPermissionHelper::currPackageOrPending($user->id); @endphp @includeIf('admin.register_user.template-modal') @includeIf('admin.register_user.template-image-modal') @endforeach
{{ __('Shop Name') }} {{ __('Username') }} {{ __('Email') }} {{ __('Package Plan') }} {{ __('Preview Template') }} {{ __('WhatsApp') }} {{ __('Account') }} {{ __('Action') }}
{{ !empty($user->shop_name) ? $user->shop_name : '-' }}
{{ $uInitials }} {{ $user->username }}
{{ $user->email }} @if (!empty($userPkg)) @if (!empty($userPkg->is_expired)) {{ $userPkg->title }} ({{ __('Expired') }}) @else {{ $userPkg->title }} @endif @else {{ __('Free Plan') }} @endif @php $uMemb = \App\Http\Helpers\UserPermissionHelper::currMembOrPending($user->id); @endphp @if(!empty($uMemb) && !empty($uMemb->payment_method) && $uMemb->payment_method !== '-')
{{ $uMemb->payment_method }} @if(!empty($uMemb->receipt)) Proof @endif
@endif
@if ($user->preview_template == 1) @endif
@csrf
@csrf
@endif
@endif {{-- ============================================================= --}} {{-- TAB 2 : Verified Users --}} {{-- ============================================================= --}} @if(request()->input('active_tab') === 'verified')
{{ __('Verified Users') }} {{ __('Users who requested OTP during registration') }}
@php $tableReady = true; try { \App\Models\VerifiedPhoneLead::first(); } catch(\Exception $e) { $tableReady = false; } @endphp @if(!$tableReady)
{{ __('The verified_phone_leads table does not exist yet.') }}
@elseif($verifiedLeads->total() === 0)

{{ __('No verified phone leads found') }}

@else
@foreach($verifiedLeads as $lead) @endforeach
# {{ __('Name') }} {{ __('Phone Number') }} {{ __('Country Code') }} {{ __('Plan Status') }} {{ __('OTP Sent At') }} {{ __('Action') }}
{{ $lead->id }} {{ $lead->name ?: '-' }} {{ $lead->phone }} {{ $lead->country_code ?: '-' }} @if($lead->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
@endif
@endsection @section('scripts') @endsection