@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'); $base_currency = base_currency(); @endphp @section('title', $pageTitle) @section('content')

{{ $pageTitle }}

{!! __('Total :number :type account.', ['number' => ''.$users->total() .'', 'type' => ''.(($isAdmin) ? 'admin' : '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($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