- Sale Date :
{{ short_date($sale->sale_date ?? '') }}
- Client :
{{ $sale->client->first_name ?? '' }} {{ $sale->client->last_name ?? '' }}
{{ $sale->client->other_name ?? '' }}
@if (!empty($sale->client->phone))
( {{ $sale->client->phone ?? '' }} )
@endif
- Branch :
{{ $sale->branch->branch_name ?? '' }}
- Payment Status :
@if ($final_total - $amount_paid == 0)
Full Payment
@elseif($final_total > $amount_paid && $amount_paid > 0)
Part Payment
@elseif($amount_paid == 0)
No Payment
@endif
- Total Amount :
{{ $sale->total_amount ?? '' }}
- Discount :
{{ $sale->discount ?? '' }}
- Final Total :
{{ $sale->final_total ?? '' }}
- Amount Paid :
{{ $sale->amount_paid_by_client ?? '' }}
- Balance :
{{ $sale->balance_due_to_client ?? '' }}
- Payment Method :
{{ get_payment_method($sale->payment_method ?? '') }}
@if (is_sale_notes_enabled_on_pos())
- Sale Notes :
{{ $sale->sale_notes ?? '' }}
@endif
- Created By :
{{ get_user_fullname($sale->created_by, $users_array) ?? 'N/A' }}
{{-- products --}}
@php
$products_array = !empty($sale->products)
? json_decode($sale->products)
: null;
@endphp
Products/Items Ordered
@foreach ($products_array as $key => $product)
#{{ $key + 1 }}
Product:
{{ get_product_name($product->product_id) }}
Price:
{{ $product->price }}
Quantity:
{{ $product->quantity }}
Sub Total:
{{ $product->subtotal }}
@endforeach
{{-- additional booking details --}}
@if (is_booking_enabled_on_pos())
Additional Booking Details
Booking Date :
{{ long_date($sale->booking_date ?? '') }}
Booking Time :
{{ $sale->booking_time ?? '' }}
Booking Status :
{!! get_booking_status($sale->booking_status) !!}
{{-- Booking Job Location :
{{ $sale->job_location ?? '' }}
--}}
Booking Details :
{{ $sale->booking_details ?? '' }}
{{-- end additional booking details --}}
@endif
{{-- installments --}}
@php
$installments = \App\Models\PointOfSaleInstallment::where('point_of_sale_id', $sale->id)->get();
@endphp
@if (!empty($installments) && $installments->count() > 0)
Installments
@foreach ($installments as $installment)
@php $installmentIndex = $loop->iteration; @endphp
{{ $installmentIndex }} - Installment Date :
{{ short_date($installment->installment_date ?? '') }}
- UGX : {{ $installment->installment_amount ?? '' }}
@endforeach
@endif