@extends('docs.master', ['title' => 'Trial Balance']) @section('content')
| # | Account Code | Account Title | Account Type | Debit | Credit |
|---|---|---|---|---|---|
| {{$i++}} | {{$item->accountcode}} | {{$item->accounttitle}} | {{$item->accounttypename}} | @if ($item->debit >0) {{(number_format($item->debit,2))}} @else - @endif | @if ($item->credit <0) {{(number_format(abs($item->credit),2))}} @else - @endif |
| Total | {{number_format($model->sum('debit'),2)}} | {{number_format(abs($model->sum('credit')),2)}} | |||