@extends('admin.layout.app') @section('body')
| Laborer | Total Debit | Total Credit | Balance |
|---|---|---|---|
| {{ optional($laborers->firstWhere('id', $lid))->name ?? '#' }} | {{ number_format($s['debit'], 2) }} | {{ number_format($s['credit'], 2) }} | {{ number_format($s['balance'], 2) }} |
| Date | Laborer | Type | Description | Debit | Credit | Running Balance |
|---|---|---|---|---|---|---|
| {{ \Carbon\Carbon::parse($r->entry_date)->format('Y-m-d') }} | {{ optional($laborers->firstWhere('id', $r->laborer_id))->name }} | @if ($r->entry_type === 'Timesheet') Timesheet @elseif ($r->entry_type === 'Payment') Payment @else Expense @endif | {{ $r->description }} | {{ $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. | ||||||