@extends('docs.master', ['title' => 'Trial Balance']) @section('content')
| # | Account Code | Account Title | Account Type | {{--Balance B/F | --}}Recipts | Payments | {{--Balance | --}}
|---|---|---|---|---|---|---|---|
| {{$i++}} | {{$item->accountcode}} | {{$item->accounttitle}} | {{$item->accounttypename}} | {{--@if ($item->debit_befor - $item->credit_befor >0) {{(number_format($item->debit_befor-$item->credit_befor,2))}} Dr @else {{(number_format($item->credit_befor-$item->debit_befor,2))}} Cr @endif | --}}@if ($item->debit >0) {{(number_format($item->debit,2))}} @else - @endif | @if ($item->credit >0) {{(number_format(abs($item->credit),2))}} @else - @endif | {{--@if ($item->debit_befor - $item->credit_befor + $item->debit -$item->credit >0) {{(number_format($item->debit_befor - $item->credit_befor + $item->debit -$item->credit,2))}} Dr @else {{(number_format(($item->debit_befor - $item->credit_befor + $item->debit -$item->credit)*-1,2))}} Cr @endif | --}}
| Total | {{number_format($model->sum('debit'),2)}} | {{number_format(abs($model->sum('credit')),2)}} | {{----}} | ||||
| # | Voucher # | Date | Account Code | Account Title | Narration | Amount |
|---|---|---|---|---|---|---|
| {{$i++}} | {{$item->voucher_number}} | {{$item->voucher_date}} | {{$item->accountcode}} | {{$item->accounttitle}} | {{$item->detail_remarks}} | @if ($item->credit >0) {{(number_format($item->credit,2))}} @else - @endif |
| Total | {{number_format($model->cash_receipts->sum('credit'),2)}} | |||||
| # | Voucher # | Date | Account Code | Account Title | Narration | Amount |
|---|---|---|---|---|---|---|
| {{$i++}} | {{$item->voucher_number}} | {{$item->voucher_date}} | {{$item->accountcode}} | {{$item->accounttitle}} | {{$item->detail_remarks}} | @if ($item->credit >0) {{(number_format($item->credit,2))}} @else - @endif |
| Total | {{number_format($model->bank_receipts->sum('credit'),2)}} | |||||
| # | Voucher # | Date | Account Code | Account Title | Narration | Amount |
|---|---|---|---|---|---|---|
| {{$i++}} | {{$item->voucher_number}} | {{$item->voucher_date}} | {{$item->accountcode}} | {{$item->accounttitle}} | {{$item->detail_remarks}} | @if ($item->debit >0) {{(number_format($item->debit,2))}} @else - @endif |
| Total | {{number_format($model->cash_payments->sum('debit'),2)}} | |||||
| # | Voucher # | Date | Account Code | Account Title | Narration | Amount |
|---|---|---|---|---|---|---|
| {{$i++}} | {{$item->voucher_number}} | {{$item->voucher_date}} | {{$item->accountcode}} | {{$item->accounttitle}} | {{$item->detail_remarks}} | @if ($item->debit >0) {{(number_format($item->debit,2))}} @else - @endif |
| Total | {{number_format($model->bank_payments->sum('debit'),2)}} | |||||