@extends('admin.layout.master') @section('body')

Profile

@if( file_exists($user->image)) Profile Pic @else Profile Pic @endif
User Name : {{ $user->username }}
Name : {{ $user->name }}
Balance : {{number_format(floatval($user->balance), $basic->decimal, '.', '')}} {{$basic->currency}}

Last Login : {{ Carbon\Carbon::parse($user->login_time)->diffForHumans() }}


@if($last_login != null) Last Login From
{{ $last_login->user_ip }} - {{ $last_login->location }}
Using {{ $last_login->details }}
@endif
@php $trans = \App\Deposit::whereUser_id($user->id)->count(); $transAmount = \App\Deposit::whereUser_id($user->id)->sum('amount'); $deposit = \App\Deposit::whereUser_id($user->id)->whereStatus(1)->count(); $depositAmount = \App\Deposit::whereUser_id($user->id)->whereStatus(1)->sum('amount'); $withDraw = \App\WithdrawLog::whereUser_id($user->id)->count(); $withDrawAmount = \App\WithdrawLog::whereUser_id($user->id)->whereStatus(1)->sum('amount'); @endphp @php $userWallet = $user->wallets()->get();@endphp @if(count($userWallet)>0) @endif()

Update Profile

{{ csrf_field() }} {{method_field('put')}}
@if ($errors->has('name')) {{ $errors->first('name') }} @endif
@if ($errors->has('phone')) {{ $errors->first('phone') }} @endif
@if ($errors->has('email')) {{ $errors->first('email') }} @endif
status == "1" ? 'checked' : '' }}>
email_verify == "1" ? 'checked' : '' }}>
phone_verify == "1" ? 'checked' : '' }}>

@endsection