@if (isset($settings['icon']) && is_file('storage/settings/' . $settings['icon']))
@endif
{{ $settings['website_name'] ?? '' }}
{{ $settings['address'] ?? '' }}
{{ $settings['number_1'] ?? '' }}, {{ $settings['number_2'] ?? '' }}
@if (isset($settings['icon']) && is_file('storage/settings/' . $settings['icon']))
@endif
Service Receipt
Patient No:
{{ $item?->appointment?->Patient?->patient_id ?? $item->pat?->patient_id }}
Patient Name:
{{ $item?->pat?->full_name }}
date:
{{ \Carbon\Carbon::parse($item->date)->format('d M, Y') }}
Que:
{{ $item->service_number }}
Invoice No:
{{ $item->service_name }}
| # | Service | Quantity | Amount | Sub Total |
|---|---|---|---|---|
| {{ $counter++ }} | {{ $rw?->srv_type?->name }} | {{ $rw?->quantity }} | {{ $rw?->rate }} | {{ $rw?->rate * $rw?->quantity}} | @php $total += (float) $rw?->rate * $rw?->quantity; @endphp
| Total | {{ $total }} | |||
@php
$firstPayment = $item?->Pmt?->first(); // Get the first payment from the collection
@endphp
@php
$total = 0;
@endphp
@if($item->Pmt->isNotEmpty())
@foreach($item->Pmt as $payment)
@php
$total+= $payment->payment;
@endphp
@endforeach
@else
Discount :
{{ $firstPayment?->curr?->symbol }} {{ number_format($firstPayment?->discount, 2) }}
Promotion :
{{ $firstPayment?->curr?->symbol }} {{ number_format($item?->promotion, 2) }}
No payments available.
@endif
Total Paid :
{{ number_format($total, 2) }}