@extends('admin.layout.app') @section('body')
| Company | Total Debit | Total Credit | Balance |
|---|---|---|---|
| {{ optional($companies->firstWhere('id', $cid))->name ?? '#' }} | {{ number_format($s['debit'], 2) }} | {{ number_format($s['credit'], 2) }} | {{ number_format($s['balance'], 2) }} |
| Date | Company | Type | Debit | Credit | Running Balance |
|---|---|---|---|---|---|
| {{ $r->date ? \Carbon\Carbon::parse($r->date)->format('Y-m-d') : '—' }} | {{ optional($companies->firstWhere('id', $r->company))->name }} | @if ($r->type === 'dealing') Dealing @else Payment @endif | {{ $r->debit ? number_format($r->debit, 2) : '' }} | {{ $r->credit ? number_format($r->credit, 2) : '' }} | {{ number_format($r->balance, 2) }} |
| No data for the selected filters. | |||||