@php use Carbon\Carbon; @endphp @extends("admin.main") @section("content") @if(auth()->guard('admins')->user()->can("edit order"))
| Date | {{ Carbon::parse($order->date)->format("d/m/Y H:i:s") }} | Payment Method | {{ $order->payment->name ?? 'VN Pay' }} |
| Order # | {{ $order->order_num }} (ID: {{$order->id}}) | Amount | @money($order->amount) đ |
| Client |
{{ $order->customer->firstname . ' ' . $order->customer->lastname }}
{{ $order->customer->address }} |
Invoice # | {{ $order->invoice_id !== 0 ? $order->invoice_id : "No Invoice" }} |
| Status | {!! App\Http\Helpers\Helper::OrderStatus($order->status) !!} | IP Address | {{ $order->client_ip }} |
| Order Placed By | @if($order->user) {{ $order->user->username }} (#ID: {{ $order->user->id }}) {{ $order->user->email }} @endif | Promotion Code | @if($order->discount) {{ $order->discount->code }} @endif |
| Item | Description | Billing Cycle | Amount | Status | Payment Status |
|---|---|---|---|---|---|
| @if($item->type && in_array($item->Type->id,[3,4])) {{ $item->type->name }} @else {{ $item->type->name }} @endif | {{ $item->description }} | {{ Helper::billing_cycle($item->billing) }} | @money($item->amount) đ | @if($item->status) {!! $item->status->getStatus() !!} @endif | @if($order->invoice_id !== 0) {!! $order->invoice->getStatus() !!} @else No Invoice Due @endif |