@extends('admin.layout') @section('title', 'Orders') @section('content')
| # | Customer | Phone | Items | Amount | Promised | Stage | |
|---|---|---|---|---|---|---|---|
| Stage {{ $o->stage->sort_order }} · {{ $o->stage->name }} — {{ $stageCounts[$o->stage_id] ?? 0 }} order{{ ($stageCounts[$o->stage_id] ?? 0) === 1 ? '' : 's' }} | |||||||
| {{ $o->order_no }}@if($o->is_important) ★★★ @endif |
{{ $o->customer_name }} @if(isset($tierByPhone[$o->phone])){{ $tierByPhone[$o->phone]['name'] }}@endif | {{ $o->phone }} | {{ $o->items }} | @if($o->amount !== null) ৳{{ number_format($o->amount - ($o->discount ?? 0)) }} @if($o->discount)(−৳{{ number_format($o->discount) }})@endif @else — @endif | {{ $o->due_date->format('d M') }} @if($o->delivered_at)Delivered {{ $o->delivered_at->format('d M') }} @elseif($days < 0)Late {{ abs($days) }}d @elseif($days === 0)Due today @elseif($days === 1)Due tomorrow @elseif($days === 2)Due in 2 days@endif | Edit Track ↗ | |
| No orders here. | |||||||