@extends('layouts.admin') @section('title', 'Invoice '.$order->order_number) @section('page_title', $order->order_number) @section('content')

{{ $order->user->company_name ?: $order->user->name }} · Delivery {{ $order->delivery_date->format('d M Y') }} · {{ ucfirst($order->status) }}

@foreach($order->items as $item) @endforeach
ItemQtyRate
{{ $item->product_name }} {{ $item->quantity }} {{ $item->unit }} {{ $item->rate ? '₹'.number_format($item->rate, 2) : 'Not priced' }}
@if($missing)

Missing selling price: {{ implode(', ', $missing) }}. Open the price sheet.

@endif @if($order->invoice)

Invoice {{ $order->invoice->invoice_number }} · ₹{{ number_format($order->invoice->total, 2) }} · Due ₹{{ number_format($order->invoice->due(), 2) }}

@csrf
@else
@csrf
@endif
@endsection