@extends('layouts.app') @section('title', 'Order #' . $order->id) @section('content')

Order #{{ $order->id }}

Edit Back
Customer: @if($order->customer) {{ $order->customer->name }}{{ $order->customer->shop_name ? ' (' . $order->customer->shop_name . ')' : '' }} @else {{ $order->customer_name ?: 'Walk-in' }} @endif
Date: {{ $order->date->format('d M Y') }}
Type: {{ $order->customer_id ? 'B2B' : 'Walk-in' }}
@if($order->notes)
Notes: {{ $order->notes }}
@endif
@foreach($order->items as $item) @endforeach
CategoryWeightBagsPrice/BagSubtotal
{{ $item->product->category->name ?? '-' }} {{ $item->product->weight->label ?? '-' }} {{ (int)$item->quantity }} Rs. {{ number_format($item->price, 2) }} Rs. {{ number_format($item->subtotal, 2) }}
Order Total:Rs. {{ number_format($order->total, 2) }}
Received at Order:Rs. {{ number_format($order->paid, 2) }}
@if($order->customer)
{{ $order->customer->name }}'s Current Balance: @if($order->customer->balance > 0) Rs. {{ number_format($order->customer->balance, 2) }} @else Clear (No dues) @endif
Receive Payment View Customer
@endif @endsection