@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")
{{-- Balance + add money --}}

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

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

{{-- Balance card --}}
{{ __('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, $defCurrency->currency->code, session()->get('currency')['id'], false)) !!} ) {{ __('staticwords.amountinyourcurrency') }}
@endif
{{-- Add money --}}
@csrf
{{-- Notes --}}
  • {{ __('staticwords.moneynonrefundable') }}.
  • {{ __('staticwords.usepoint') }}.
  • {{ __('staticwords.expirepoint') }}.
  • {{ __('staticwords.walletamounote') }} {{ $defCurrency->currency->code }}
{{-- Wallet history --}} @if(isset($wallethistory) && count($wallethistory))

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

@foreach($wallethistory->sortByDesc('id') as $history)
{{ $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
{{ $history->type == 'Credit' ? '+' : '-' }} {!! price_format($history->amount,2) !!}
@endforeach
{!! $wallethistory->links() !!}
@endif
@include('front.partials.change-password-modal') @endsection