@extends('layouts.app') @section('content')
| Code | Account Name | Opening | Debit | Credit | Closing |
|---|---|---|---|---|---|
| {{ $account->code }} | {{ $account->name }} | @if($account->opening >= 0) {{ number_format($account->opening, 2) }} Dr @else {{ number_format(abs($account->opening), 2) }} Cr @endif | {{ number_format($account->period_debit, 2) }} | {{ number_format($account->period_credit, 2) }} | @if($account->closing >= 0) {{ number_format($account->closing, 2) }} Dr @else {{ number_format(abs($account->closing), 2) }} Cr @endif |
| No accounts found in the specified code range | |||||
| Total: | {{ number_format($accounts->sum('opening'), 2) }} | {{ number_format($accounts->sum('period_debit'), 2) }} | {{ number_format($accounts->sum('period_credit'), 2) }} | {{ number_format($accounts->sum('closing'), 2) }} | |