@extends('layouts.app') @section('content')
| Date | Particulars | Receipt (Dr) | Payment (Cr) | Balance |
|---|---|---|---|---|
| {{ \Carbon\Carbon::parse($fromDate)->format('d-M-Y') }} | Opening Balance | - | - | {{ number_format($openingBalance, 2) }} |
| {{ $entry->date->format('d-M-Y') }} | @if($entry->transactionable) @php $ref = $entry->transactionable; @endphp @if($ref instanceof \App\Models\Purchase) Purchase: {{ $ref->bill_no }} @elseif($ref instanceof \App\Models\Sale) Sale: {{ $ref->bill_no }} @elseif($ref instanceof \App\Models\Voucher) {{ $ref->type }}: {{ $ref->voucher_no }} @else {{ class_basename($ref) }} @endif @else Transaction @endif | {{ $entry->debit > 0 ? number_format($entry->debit, 2) : '-' }} | {{ $entry->credit > 0 ? number_format($entry->credit, 2) : '-' }} | {{ number_format($balance, 2) }} |
| No transactions found | ||||
| Total: | {{ number_format($entries->sum('debit'), 2) }} | {{ number_format($entries->sum('credit'), 2) }} | {{ number_format($closingBalance, 2) }} | |