@php $db_settings = \App\Models\Setting::get(); $settings = []; foreach ($db_settings as $row) { $settings[$row->name] = $row->value; } @endphp
{{ $settings['address'] ?? '' }}
Phone: {{ $settings['number_1'] ?? '' }}{{ isset($settings['number_2']) ? ', ' . $settings['number_2'] : '' }}
| Total System Payments | {{ number_format($totals['total_system_payments'] ?? 0, 2) }} $ | Total Actual Cash | {{ number_format($totals['total_actual'] ?? 0, 2) }} $ |
|---|
| # | Doctor | Total Amount Cards | Total Amount Images |
|---|---|---|---|
| {{ $key + 1 }} | {{ $doc->name }} | {{ number_format($doc->total_amount, 2) }} | {{ number_format($doc->total_image_requests, 2) }} |
| # | Payment Method | Opening | Payments | Expenses | Expected | Actual | Difference |
|---|---|---|---|---|---|---|---|
| {{ $key + 1 }} | {{ $row->method->name ?? '' }} | {{ number_format($row->opening, 2) }} | {{ number_format($row->payments, 2) }} | {{ number_format($row->expenses, 2) }} | {{ number_format($row->expected, 2) }} | {{ number_format($row->actual, 2) }} | {{ number_format($row->difference, 2) }} |
| TOTAL | {{ number_format($openingTotal, 2) }} | {{ number_format($paymentsTotal, 2) }} | {{ number_format($expensesTotal, 2) }} | {{ number_format($expectedTotal, 2) }} | {{ number_format($actualTotal, 2) }} | {{ number_format($differenceTotal, 2) }} | |