@extends('docs.master', ['title' => 'General Ledger']) @section('content')

{{settings()->get('company_name')}}

Sub Account Ledger

(For Office Use Only)




@if(isset($model[0]->subledger_title)) @endif; {{-- --}}
Subledger Title: {{$model[0]->subledger_title}}
Start Date:

{{date('d-m-Y',strtotime($model[0]->start_date))}}

End Date:

{{date('d-m-Y',strtotime($model[0]->end_date))}}


{{$i=1,$opening_balance = 0,$balance = 0}} @foreach($model as $item) @php $balance = $opening_balance + $item->debit - $item->credit; @endphp @php $opening_balance = $balance; @endphp @endforeach {{-- --}}
# V Date Voucher# Account Title Remarks InsNo Opening Balance Debit Credit Balance
{{$i++}} {{date('d-m-Y',strtotime($item->voucher_date))}} {{$item->voucher_number}} {{$item->account_title}} {{$item->detail_remarks}} {{$item->chq_no}} {{(number_format($opening_balance,2))}} {{(number_format($item->debit,2))}} {{number_format($item->credit,2)}} {{number_format($balance,2)}}
@endsection