Convert Order To Invoice
@csrf
@error('client_num') {{ $message }} @enderror
@error('gst') {{ $message }} @enderror

Product Details:
@if (Auth::user()->user_flg !== 'C') @endif @foreach ($order->ordersItem as $index => $item) @php $product = $products->firstWhere('id', $item->product_id); $available_qty = $product ? $product->qty : 0; @endphp @if (Auth::user()->user_flg !== 'C') @endif @endforeach
# ProductAvl. QtyQty Unit Price Tax Amount Action
{{ $index + 1 }}
Address
@error('discount_type') {{ $message }} @enderror
discount)) ? 'readonly' : '' }}> @error('discount') {{ $message }} @enderror
Sub Total: {{ $order->sub_total }} ₹
Tax: 0.00 ₹
Discount: 0.00 ₹
Total: {{ $order->total_amount }} ₹

Payment Details:
@error('upi') {{ $message }} @enderror
@error('cash') {{ $message }} @enderror
@error('online') {{ $message }} @enderror
@if ($errors->has('payment_total'))
{{ $errors->first('payment_total') }}
@endif
@if ($branch->loyalty_config == 'A')
@endif