@php $store = $layby->store; $company = setting('company_name', 'Primewear'); $website = setting('website', 'www.primewear.co.za'); $address = setting('company_address') ?: trim(($store->address ?? '').(($store->city ?? '') ? ', '.$store->city : '')); $address = $address ?: '23 Main Reef Road, Crown Mines, Johannesburg, 2025'; $phone = setting('company_phone') ?: ($store->phone ?: '+27 744 887 987'); $vat = setting('vat_number') ?: ($store->vat_number ?: '4820291234'); $reg = setting('company_registration', '2023/123456/07'); $instagram = setting('social_instagram', '@primewear.za'); $facebook = setting('social_facebook', 'Primewear.za'); $tiktok = setting('social_tiktok', '@primewear.za'); $webHandle = setting('social_web', 'Primewear.za'); $logo = file_exists(public_path('images/primewear-logo.jpg')) ? url('/images/primewear-logo.jpg') : url('/images/primewear-logo.png'); $qr = \App\Support\ReceiptQr::ensureFile($website); $itemCount = $layby->items->count(); $totalQty = (int) $layby->items->sum('qty'); $isOut = ($payment->direction ?? 'in') === 'out'; $rm = fn ($amount) => \App\Support\Money::slip($amount); @endphp

Lay-by payment recorded

{{ $layby->number }} · {{ money($payment->amount) }} · Balance {{ money($layby->balance) }}

Back to lay-by New lay-by
@if(session('success'))
{{ session('success') }}
@endif
P R I M E W E A R
{{ $address }}
{{ $phone }}
VAT No: {{ $vat }}
Registration No: {{ $reg }}

{{ $isOut ? 'LAY-BY REFUND' : 'LAY-BY PAYMENT' }}
LAY-BY: {{ $layby->number }}
DATE: {{ $payment->created_at->format('d/m/Y, h:i A') }}
CUSTOMER: {{ $layby->customer->name }}
@if($layby->customer->phone)
PHONE: {{ $layby->customer->phone }}
@endif

@foreach($layby->items as $item)
{{ $item->description }}
@if($item->variant?->sku)
SKU: {{ $item->variant->sku }}
@endif
{{ $rm($item->unit_price) }} × {{ $item->qty }} {{ $rm($item->line_total) }}
@endforeach
LAY-BY TOTAL{{ $rm($layby->total) }}
PAID TO DATE{{ $rm($layby->paid) }}

{{ $isOut ? 'REFUND' : 'THIS PAYMENT' }} {{ $rm($payment->amount) }}

Payment: {{ ucfirst($payment->method) }} {{ $rm($payment->amount) }}
@if($payment->reference)
Reference{{ $payment->reference }}
@endif
BALANCE {{ $rm($layby->balance) }}

No. of Items: {{ $itemCount }} | Total Quantity: {{ $totalQty }}
@if($layby->due_date)
Due date: {{ $layby->due_date->format('d/m/Y') }}
@endif
Thank you
for shopping with {{ $company }}.
QR
Scan to visit our website
{{ $webHandle }} | {{ $instagram }} | {{ $facebook }} | {{ $tiktok }}
All prices are inclusive of taxes.