@extends('layouts.app') @section('title', 'Receipt') @section('content') @php $settings = \App\Models\BusinessSetting::current(); @endphp
{{ $settings->business_name }}
@if ($settings->address)

{{ $settings->address }}

@endif @if ($settings->pan_vat_number)

PAN/VAT: {{ $settings->pan_vat_number }}

@endif

TAX INVOICE

@if ($order->invoice_number)

Invoice No: {{ $order->invoice_number }}
FY: {{ $order->fiscal_year }}

@endif @if ($order->print_count > 0)

*** Copy of Original - {{ $order->print_count }} ***

@endif

Order #{{ $order->order_number }}
{{ $order->created_at->format('d M Y, h:i A') }}


@foreach ($order->items as $item)
{{ $item->quantity }} × {{ $item->displayName() }} {{ number_format($item->lineTotal(), 2) }}
@endforeach
Subtotal{{ number_format($order->subtotal,2) }}
VAT ({{ rtrim(rtrim(number_format($settings->vat_rate,2),'0'),'.') }}%){{ number_format($order->tax,2) }}
@if ($order->service_charge > 0)
Service Charge ({{ rtrim(rtrim(number_format($settings->service_charge_percent,2),'0'),'.') }}%){{ number_format($order->service_charge,2) }}
@endif @if ($order->discount > 0)
Discount-{{ number_format($order->discount,2) }}
@endif
Total{{ number_format($order->total,2) }}
@foreach ($order->payments as $pay)
Paid ({{ $pay->methodLabel() }}){{ number_format($pay->amount,2) }}
@if($pay->change_given > 0)
Change{{ number_format($pay->change_given,2) }}
@endif @endforeach @if ($settings->receipt_footer_message)

{{ $settings->receipt_footer_message }}

@endif

Served by {{ $order->user->name }}

@csrf
@csrf
@if (!$order->voided_at) @can('payments.take') @endcan @else
Voided {{ $order->voided_at->format('d M Y, h:i A') }}{{ $order->void_reason ? ' — '.$order->void_reason : '' }}
@endif New Order @php $shellGameSettings = \App\Models\ShellGameSetting::current(); @endphp @if ($shellGameSettings->is_enabled) 🎁 Play & Win @endif
@endsection @section('scripts') @endsection