@extends("front/layout.master") @php $user = Auth::user(); $sellerac = App\Store::where('user_id','=', $user->id)->first(); require_once(base_path().'/app/Http/Controllers/price.php'); @endphp @section('title',__('staticwords.MyWallet').' | ') @section("body")
• {{ __('staticwords.Hi!') }} {{$user->name}}
@if($user->image !="") @else @endif
{{ $user->email }}

{{ __('staticwords.MemberSince') }}: {{ date('M jS Y',strtotime($user->created_at)) }}


{{ __('staticwords.MyWallet') }}

{{ __('staticwords.CurrentBalance') }} : @if(isset($user->wallet)) {{ sprintf("%.2f",$user->wallet->balance) }} @else 0.00 @endif @if(isset($user->wallet) && $defCurrency->currency->code != session()->get('currency')['id']) ( {{ sprintf("%.2f",currency($user->wallet->balance, $from = $defCurrency->currency->code, $to = session()->get('currency')['id'] , $format = false)) }}) {{ __('staticwords.amountinyourcurrency') }} @endif


@csrf

{{ __('staticwords.moneynonrefundable') }}.

{{ __('staticwords.usepoint') }}.

{{ __('staticwords.expirepoint') }}.

{{ __('staticwords.walletamounote') }} {{ $defCurrency->currency->code }}

@if(isset($wallethistory))

{{ __('staticwords.WalletHistory') }}


@foreach($wallethistory->sortByDesc('id') as $history)
@if($history->type == 'Credit') {{ __('+') }} @else {{ __('-') }} @endif {{ sprintf("%.2f",$history->amount,2) }} @if(isset($user->wallet) && $defCurrency->currency->code != session()->get('currency')['id'])
( {{ sprintf("%.2f",currency($history->amount, $from = $defCurrency->currency->code, $to = session()->get('currency')['id'] , $format = false)) }})
@endif
{{ $history->log }}
@if($history->type == 'Credit') {{ __('staticwords.CreditedON') }}: {{ date('d/m/Y | h:i A',strtotime($history->created_at)) }} | {{ __('Ref ID:') }} {{ $history->txn_id }} | {{ __('Expire ON:') }} {{ date('d/m/Y | h:i A',strtotime($history->expire_at)) }} @else {{ __('staticwords.DebitedON') }}: {{ date('d/m/Y | h:i A',strtotime($history->created_at)) }} | {{ __('Ref ID:') }} {{ $history->txn_id }} @endif

@endforeach @endif @if(isset($wallethistory))
{!! $wallethistory->links() !!}
@endif
@endsection