@php $net_credit = 0; $net_debit = 0; $net_balance = 0; @endphp @foreach ($items as $key => $item) @php $net_credit += $item->totalcredit(); $net_debit += $item->totaldebit(); $net_balance += $item->account_balance(); @endphp @endforeach
@lang('SL') @lang('Account Method') @lang('Account Name') @lang('Account Number') @lang('Bank Name') @lang('Opening Balance') @lang('Total Credit') @lang('Total Debit') @lang('Balance') @lang('Status') @lang('Created By') @lang('Created Date') @lang('Modify By') @lang('Modify Date') @lang('Actions')
{{ ($items->currentpage() - 1) * $items->perpage() + $key + 1 }} {{ $item->method }} {{ $item->account_name }} {{ $item->account_number }} {{ $item->bank_name }} {{ numberFormat($item->opening_balance) }} {{ numberFormat($item->totalcredit()) }} {{ numberFormat($item->totaldebit()) }} {{ numberFormat($item->account_balance()) }} {{ $item->status }} {{ $item->created_user }} {{ $item->created_date }} {{ $item->updated_user }} {{ $item->updated_date }}
Total {{ numberFormat(calculateSubtotal($items, 'opening_balance')) }} {{ numberFormat($net_credit) }} {{ numberFormat($net_debit) }} {{ numberFormat($net_balance) }}
@if ($items instanceof \Illuminate\Pagination\LengthAwarePaginator) {{ $items->links('layouts.paginate') }} @endif