@extends('backend.layouts.admin') @section('main-content')
Ledger: {{ucfirst($payment_method)}}
@if(request()->query->count()>0)   Reset @endif
Bank
@php($balance = 0) @foreach($records as $row) @php($balance+=$row['total']) @endforeach @php($balance-=$pay_transport_credit) @php($credit_total = 0)
Description Debit Credit Balance
Opening Balance 0 0 0
{{ucfirst($row['name'])}} {{number_format($row['total'])}} 0 {{number_format($balance)}}
Transport Pay 0 {{number_format($pay_transport_credit)}} {{number_format($balance)}}
{{number_format($records->sum('total'))}} {{number_format($pay_entries->sum('credit'))}} {{number_format($balance)}}
@endsection @push('scripts') @endpush