@extends('layouts.adminapp') @section('content')
{{__('lng.SiNo')}} | {{__('lng.AccountLedger')}} | {{__('lng.OpeningBalance')}} | {{__('lng.Debit')}} | {{__('lng.Credit')}} | {{__('lng.Closing')}} |
---|---|---|---|---|---|
{{++$si}} | {{\App\Models\AccountLedger::find($LedgerPosting->ledger_id)->title}} | {{\App\Models\AccountLedger::find($LedgerPosting->ledger_id)->openingbalance}} | {{$LedgerPosting->DEBIT}} | {{$LedgerPosting->CREDIT}} | @php $Closing= $LedgerPosting->DEBIT-$LedgerPosting->CREDIT; @endphp@if ($Closing<0) {{$Final=$Closing*-1}}CR @else {{$Closing}}DR @endif |