@extends('layouts.app') @section('title', 'POS Invoice') @section('content')

Your Store Name

123 Main Street, City

Phone: 0123-456-789

Invoice #: {{ $sale->id }}

Date: {{ \Carbon\Carbon::parse($sale->sale_datetime)->format('d M Y, h:i A') }}


@foreach ($sale->items as $item) @endforeach
Item Qty Price Total
{{ $item->product->name }} {{ $item->quantity }} {{ number_format($item->unit_price, 2) }} {{ number_format($item->quantity * $item->unit_price, 2) }}

@php $subtotal = $sale->items->sum(fn($i) => $i->unit_price * $i->quantity); $tax = $subtotal * 0.05; $total = $subtotal + $tax; @endphp

Subtotal: {{ number_format($subtotal, 2) }} TK

Tax (5%): {{ number_format($tax, 2) }} TK

Total: {{ number_format($total, 2) }} TK

Payment: {{ $sale->payment_method }}


Barcode

Thank you for shopping with us!

Keep this receipt for returns within 7 days.

All prices include VAT where applicable.

@endsection @push('scripts') @endpush