@extends('layouts.admin.app') @section('title',translate('messages.customer_wallet_report')) @push('css_or_js') @endpush @section('content')
{{translate('messages.filter_options')}}
@php $transaction_status=request()->get('transaction_type'); @endphp
@php $credit = $data[0]->total_credit; $debit = $data[0]->total_debit; $balance = $credit - $debit; @endphp

{{translate('messages.debit')}}

{{\App\CentralLogics\Helpers::format_currency($debit)}} dashboard

{{translate('messages.credit')}}

{{\App\CentralLogics\Helpers::format_currency($credit)}} dashboard

{{translate('messages.balance')}}

{{\App\CentralLogics\Helpers::format_currency($balance)}} dashboard

{{translate('messages.transactions')}}

@foreach($transactions as $k=>$wt) @endforeach
{{ translate('messages.sl') }} {{translate('messages.transaction_id')}} {{translate('messages.customer')}} {{translate('messages.credit')}} {{translate('messages.debit')}} {{translate('messages.balance')}} {{translate('messages.transaction_type')}} {{translate('messages.reference')}} {{translate('messages.created_at')}}
{{$k+$transactions->firstItem()}} {{$wt->transaction_id}} {{Str::limit($wt->user?$wt->user->f_name.' '.$wt->user->l_name:translate('messages.not_found'),20,'...')}} {{\App\CentralLogics\Helpers::format_currency($wt->credit)}} {{\App\CentralLogics\Helpers::format_currency($wt->debit)}} {{\App\CentralLogics\Helpers::format_currency($wt->balance)}} {{ translate('messages.'.$wt->transaction_type)}} {{ isset($wt->reference) ? ucfirst(str_replace('_', ' ',$wt->reference)) : translate('messages.N/A')}} {{\App\CentralLogics\Helpers::time_date_format($wt->created_at)}}
@if(count($transactions) == 0)
public
{{translate('no_data_found')}}
@endif
{!! $transactions->links() !!}
@endsection @push('script') @endpush @push('script_2') @endpush