@extends('layouts.template') @section('template')

Income Account Ledger @if(isset($datas)) :: {{ $current_income_account->expense_head }} @endif

List Income
{!! csrf_field() !!}

@if(isset($datas)) Print/Download as PDF @endif
List Transaction
@php $sum_debit = 0; $sum_credit = 0; @endphp @if(isset($income_account_ledgers)) @php $sum_debit += 0; $sum_credit += $current_income_account->opening_balance; @endphp @endif @if(isset($income_account_ledgers)) @foreach($income_account_ledgers as $key => $data) @php $sum_credit += $data->amount; $sum_debit += 0; @endphp @endforeach @endif @if($sum_credit-$sum_debit > 0) @else @endif
Srl Date Particular Debit Credit
{{ 0 }} -/-/- Openig balance 0.00 {{ number_format($current_income_account->opening_balance,2) }}
{{ ++$key}} {{ $data->date }} {{ $data->description }} 0.00 {{ number_format($data->amount,2) }}
Total {{ number_format($sum_debit,2) }} {{ number_format($sum_credit,2) }}
Balance{{ number_format($sum_credit-$sum_debit,2) }} Cr{{ number_format($sum_debit-$sum_credit,2) }} Dr
@endsection