@extends('layouts.app') @section('title', 'Orders') @section('content')
| # | Customer | Date | Items | Total | Received | Actions |
|---|---|---|---|---|---|---|
| {{ $order->id }} |
@if($order->customer)
{{ $order->customer->name }}
@if($order->customer->balance > 0)
Balance: Rs. {{ number_format($order->customer->balance, 2) }} @endif @else {{ $order->customer_name ?: 'Walk-in' }} @endif |
{{ $order->date->format('d M Y') }} | @foreach($order->items as $item) {{ $item->product->category->name ?? '' }} {{ $item->product->weight->label ?? '' }} x{{ (int)$item->quantity }}{{ !$loop->last ? ', ' : '' }} @endforeach | Rs. {{ number_format($order->total, 2) }} | Rs. {{ number_format($order->paid, 2) }} | View Edit |
| No orders for this period | ||||||