@extends('layouts.app') @section('content')
Voucher | Date | Remarks | Site | Other Account | Debit | Credit | Cl. Balance |
---|---|---|---|---|---|---|---|
{{ $row->Voucher ?? '' }} | {{ \Carbon\Carbon::parse($row->Voucher_Date)->format('d-m-Y') }} | {{ $row->Remarks }} | {{ $row->Cheque_No }} | {{ $row->Other_Account ?? 'N/A' }} | {{ $amount > 0 ? number_format($amount, 0) : '' }} | {{ $amount < 0 ? number_format(abs($amount), 0) : '' }} | {{ $balance < 0 ? '(' . number_format(abs($balance), 0) . ')' : number_format($balance, 0) }} |
Totals | {{ number_format($totalDebit, 0) }} | {{ number_format($totalCredit, 0) }} | {{ $balance < 0 ? '(' . number_format(abs($balance), 0) . ')' : number_format($balance, 0) }} |