@extends('layouts.admin') @push('styles') @endpush @section('content')
Refresh

Supplier Ledger

Shalimar Kitchen

Ramarbagh, Kutubpur, Fatullah, Narayanganj
Mobile No:01711-886946, 01711886947

Supplier Name : {{ $supName }}

@php $g_total_debit_amt = 0; $g_total_cedit_amt = 0; @endphp @if (count($supLedgerData) > 0) @foreach ($supLedgerData as $sk => $sv) @php $supplier_id = $sk; $sup = Helper::findData('suppliersetup', ['id' => $supplier_id]); if ($sup) { $supplier_name = $sup->supplier_name; } else { $supplier_name = ''; } @endphp @php $total_debit_amt = 0; $total_cedit_amt = 0; @endphp @foreach ($supLedgerData[$supplier_id] as $k => $v) @php $sl = $v['sl']; $date = $v['date']; $description = $v['description']; $debit_amt = $v['debit_amt']; $credit_amt = $v['credit_amt']; $clBal = $v['clBal']; $total_debit_amt = $total_debit_amt + $debit_amt; $total_cedit_amt = $total_cedit_amt + $credit_amt; $g_total_debit_amt = $g_total_debit_amt + $debit_amt; $g_total_cedit_amt = $g_total_cedit_amt + $credit_amt; @endphp @endforeach @endforeach @endif
SL Date Description Debit Credit Closing Balance
Supplier Name: {{ $supplier_name }}
{{ $sl }} {{ $date }} {{ $description }} {{ $debit_amt }} {{ $credit_amt }} {{ $clBal }}
Total {{ $total_debit_amt }} {{ $total_cedit_amt }}
Grand Total {{ $total_debit_amt }} {{ $total_cedit_amt }}
@endsection @push('scripts') @endpush