@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")
@include('user.sidebar')

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

{{ __('staticwords.CurrentBalance') }} : @if(isset($user->wallet)) {{ price_format($user->wallet->balance) }} @else 0.00 @endif @if(isset($user->wallet) && $defCurrency->currency->code != session()->get('currency')['id']) ( {{ price_format(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 {{ price_format($history->amount,2) }} @if(isset($user->wallet) && $defCurrency->currency->code != session()->get('currency')['id'])
( {{ price_format(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