@extends('layouts.app') @php $money = fn ($value) => 'Rs ' . number_format((float) $value, 2); $balance = max(0, (float) $order->grand_total - (float) $order->paid_total); $receiptClass = $printerSetting->paper_size === '58mm' ? 'receipt-58' : ($printerSetting->paper_size === 'a4' ? 'receipt-a4' : ''); @endphp @section('content')

{{ strtoupper($order->invoice_type) }} {{ $order->order_number }}

{{ $order->branch?->name }} - {{ $order->ordered_at->format('d M Y h:i A') }} - {{ ucfirst($order->status) }}

Printer settings New bill

Items

@foreach ($order->items as $item) @endforeach
Product Qty Discount Tax Total
{{ $item->product?->name }}
{{ $item->variant_name ?: 'Standard' }} {{ $item->weight ? '- '.$item->weight.' kg' : '' }}
@if ($item->notes)
{{ $item->notes }}
@endif
{{ $item->quantity }} {{ $money($item->discount_amount) }} {{ $money($item->tax_amount) }} {{ $money($item->line_total) }}
@if ($printerSetting->auto_print) @endif @endsection