@extends('admin.layouts.master') @php use \App\Enums\UserStatus as uStatus; use \App\Enums\UserRoles as uRole; $isAdmin = (request('state') == 'teams' || is_route('admin.users.administrator')) ? true : false; $byTypes = (!request('state')) ? false : ucfirst(request('state')); $pageTitle = ($isAdmin) ? __('Administrator Users') : (($byTypes) ? __(':Type Users', ['type' => $byTypes]) : __('Users List')); $getRole = request()->get('role'); $getStatus = request()->get('status'); $getRegMethod = request()->get('regMethod'); $getHasBalance = request()->get('hasBalance'); $getEmailVerified = request()->get('emailVerified'); $getReferralJoin = request()->get('referralJoin'); $base_currency = base_currency(); @endphp @section('title', __($pageTitle)) @section('content')

{{ $pageTitle }}

{!! __('Total :number :type account.', ['number' => ''.$users->total() .'', 'type' => ''.(($isAdmin) ? __(ucfirst('admin')) : __(ucfirst('user'))).'']) !!}

{{-- nk-block-head --}}
@if(filled($users))
{{ __('User') }}
@if(!$isAdmin)
{{ __("Account Balance") }}
@endif
{{ __('Verified') }}
{{ __('Last Login') }}
{{ __('Status') }}
 
{{-- User list item --}} @foreach($users as $user)
@if(!$isAdmin)
{{ money($user->balance(AccType('main')), $base_currency) }}
@endif
  • {{ __('Email') }}
  • @if (in_array(data_get($user, 'kyc_status'), ['verified', 'pending', 'reject', 'resubmit']))
  • @if (data_get($user, 'kyc_verified') || data_get($user, 'kyc_rejected')) @else @endif {{ __('KYC') }}
  • @endif
@if($user->status !== uStatus::INACTIVE) {!! !blank($user->last_login) ? $user->last_login->format('j F Y') : ''.__('Not yet').'' !!} @else {{ __('Not verified yet') }} @endif
{{ __(ucfirst($user->status)) }}
@endforeach {{-- User List item-end --}}
{{-- Pagination --}}
{{ $users->appends(request()->all())->links('admin.user.pagination') }}
@else

{{ __("No User Found") }}

{{ __("We have not found any :status user, you can add new user.", ['status' => $byTypes]) }}

{{ __("Add User") }}

@endif
{{-- nk-block --}}
@endsection @push('modal') {{-- User Add Modal --}} {{-- Send Email Modal --}} @endpush @push('scripts') @endpush