@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
POS Receipt
Patient Name:
{{ $item?->customer?->full_name ?? 'Walking Patient' }}
date:
{{ \Carbon\Carbon::parse($item->pos_date)->format('d M, Y') }}
Invoice No:
{{ $item->id }}
| # | Product | Quantity | Amount | Sub Total |
|---|---|---|---|---|
| {{ $counter++ }} | {{ $rw?->prd?->name }} | {{ $rw?->quantity }} | {{ $rw?->price }} | {{ $rw?->price * $rw?->quantity}} | @php $total += (float) $rw?->price * $rw?->quantity; @endphp
| Total | {{ $total }} | |||
@php
$firstPayment = $item?->Pmt?->first(); // Get the first payment from the collection
@endphp
@php
$total = 0;
@endphp
@if($item->pos_payment)
@foreach($item->pos_payment as $payment)
@php
$total+= $payment?->amount;
@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) }}