@extends('admin.layouts.master') @php use \App\Enums\UserStatus as uStatus; use \App\Enums\UserRoles as uRole; $base_currency = base_currency(); @endphp @section('content')

{{ __('User') }} / {{ __($user->name) }}

  • {{ __('User ID:') }} {{ the_uid($user->id) }}
  • {{ __('Email:') }} {{ $user->is_verified ? __('Verified') : __('Pending') }}
  • {{ __('Account Status:') }} {{ __(ucfirst($user->status)) }}
  • @if(!blank($user->user_groups))
  • {{ __('Group Name:') }} @foreach($user->user_groups as $userGroup) {{ __(ucfirst($userGroup->label)) }} @endforeach
  • @endif
{{-- nk-block-head --}}
@include('admin.user.'.$type)
{!! user_avatar($user, 'lg') !!}
  • @if(auth()->user()->id !== $user->id)
  • @if($user->status!=uStatus::LOCKED)
  • @endif @if($user->status!=uStatus::ACTIVE)
  • @endif @if($user->status!=uStatus::SUSPEND)
  • @endif @else
  • @endif
@if($user->role==uRole::USER)
{{ __("Main Account") }}
{{ money($user->balance(AccType('main')), '') }} {{ $base_currency }} {{ __("Available Balance") }}
{{ money($user->balance('locked_amount'), '') }} {{ __("Locked Amount") }}
{{ __("Invested Account") }}
{{ money($user->balance(AccType('invest')), '') }} {{ $base_currency }} {{ __("Investment Wallet") }}
{{ money($user->balance('active_invest'), '') }} {{ __("Active Investment") }}
@endif
{{ __('Additional') }}
{{ __('User ID:') }} {{ the_uid($user->id) }}
{{ __('Last Login:') }} {!! ($user->last_login) ? show_date($user->last_login) : ''.__('Not yet').'' !!}
{{ __('Email Status:') }} @if($user->is_verified) {{ __('Verified') }} @if($user->meta('email_verified_by')) @endif @else {{ __('Pending') }} @endif
@if (in_array(data_get($user, 'kyc_status'), ['verified', 'pending', 'reject', 'resubmit']))
{{ __('KYC Status:') }} @if (data_get($user, 'kyc_verified')) {{ __('Verified') }} @elseif (data_get($user, 'kyc_rejected')) {{ __('Rejected') }} @else {{ __('Pending') }} @endif
@endif
{{ __('Register At:') }} {{ show_date($user->created_at, true) }}
{{-- card-aside --}}
{{-- nk-block --}}
@endsection @push('modal') {{-- Send Email Modal --}} @endpush @push('scripts') @endpush