@extends('layouts.front-end.app') @section('title', translate('my_Wallet')) @push('css_or_js') @endpush @section('content')
@include('web-views.partials._profile-aside')
{{ translate('wallet') }}
@php($addFundsToWallet = getWebConfig(name: 'add_funds_to_wallet'))
@if(!$addFundsToWallet || count($addFundBonusList) <= 0)

{{ translate('wallet') }}

{{ translate('amount') }}

{{ webCurrencyConverter(amount: $totalWalletBalance ?? 0) }} @if ($addFundsToWallet) @endif

@if ($addFundsToWallet)
@endif
@else

{{ translate('wallet') }}

{{ translate('amount') }}

@if ($addFundsToWallet)
@endif

{{ webCurrencyConverter(amount: $totalWalletBalance ?? 0) }} @if ($addFundsToWallet) @endif

@if($addFundsToWallet) @endif
@endif
{{ translate('Transaction_History') }}
@foreach($walletTransactionList as $key=>$item) @if ($item['admin_bonus'] > 0)
+ {{ webCurrencyConverter(amount: $item['admin_bonus']) }}
{{ ucwords(str_replace('_', ' ', translate('admin_bonus'))) }}
{{ date('d M, Y H:i A', strtotime($item['created_at'])) }}
@if($item['debit'] != 0)

{{ translate('debit') }}

@else

{{ translate('credit') }}

@endif
@endif
@if($item['debit'] != 0) @else @endif {{ $item['debit'] != 0 ? ' - '.webCurrencyConverter(amount: $item['debit']): ' + '.webCurrencyConverter(amount: $item['credit']) }}
@if ($item['transaction_type'] == 'add_fund_by_admin') {{ translate('add_fund_by_admin') }} {{ $item['reference'] =='earned_by_referral' ? '('.translate($item['reference']).')' : '' }} @elseif($item['transaction_type'] == 'order_place') {{ translate('order_place') }} @elseif($item['transaction_type'] == 'loyalty_point') {{ translate('converted_from_loyalty_point') }} @elseif($item['transaction_type'] == 'add_fund') {{ translate('added_via_payment_method') }} @else {{str_replace('_',' ',translate($item['transaction_type']))}} @endif
{{date('d M, Y H:i A',strtotime($item['created_at']))}}
@if($item['debit'] != 0)

{{ translate('debit') }}

@else

{{ translate('credit') }}

@endif
@endforeach
@if($walletTransactionList->count()==0)
{{ translate('you_do_not_have_any') }}
{{ request('type') != 'all' ? ucwords(translate(request('type'))) : '' }} {{ translate('transaction_yet') }}
@endif
@endsection @push('script') @endpush