@extends('layouts.back-end.app') @section('title',\App\CPU\translate('customer_wallet')) @push('css_or_js') @endpush @section('content')

{{\App\CPU\translate('wallet')}}

@if($customer_status == 1) @endif

{{\App\CPU\translate('filter')}} {{\App\CPU\translate('options')}}

@php $transaction_status=request()->get('transaction_type'); @endphp

{{\App\CPU\translate('summary')}}

@php $credit = $data[0]->total_credit; $debit = $data[0]->total_debit; $balance = $credit - $debit; @endphp
{{\App\CPU\translate('debit')}}
{{\App\CPU\Helpers::currency_converter($debit)}}
{{\App\CPU\translate('credit')}}
{{\App\CPU\Helpers::currency_converter($credit)}}
{{\App\CPU\translate('balance')}}
{{\App\CPU\Helpers::currency_converter($balance)}}

{{\App\CPU\translate('transactions')}} {{$transactions->count()}}

@foreach($transactions as $k=>$wt) @endforeach
{{\App\CPU\translate('sl')}} {{\App\CPU\translate('transaction')}} {{\App\CPU\translate('id')}} {{\App\CPU\translate('Customer')}} {{\App\CPU\translate('credit')}} {{\App\CPU\translate('debit')}} {{\App\CPU\translate('balance')}} {{\App\CPU\translate('transaction_type')}} {{\App\CPU\translate('reference')}} {{\App\CPU\translate('created_at')}}
{{$k+$transactions->firstItem()}} {{$wt->transaction_id}} {{Str::limit($wt->user?$wt->user->f_name.' '.$wt->user->l_name:\App\CPU\translate('not_found'),20,'...')}} {{\App\CPU\Helpers::currency_converter($wt->credit)}} {{\App\CPU\Helpers::currency_converter($wt->debit)}} {{\App\CPU\Helpers::currency_converter($wt->balance)}} {{\App\CPU\translate($wt->transaction_type)}} {{ str_replace('_',' ',$wt->reference) }} {{date('Y/m/d '.config('timeformat'), strtotime($wt->created_at))}}
{!!$transactions->links()!!}
@if(count($transactions)==0)
Image Description

{{ \App\CPU\translate('No_data_to_show')}}

@endif
@endsection @push('script') @endpush @push('script_2') @endpush