@extends('frontend.layouts.user.master') @section('title', 'Dashboard') @section('content')
|
|
Order No | Date & TIme | Payment | Status | Discount | Amount | |
|---|---|---|---|---|---|---|---|
|
|
{{ $order->order_number }} | {{ $order->created_at->format('d M Y, h:i A') }} | {{ $order->payment_method == 'Stripe' ? 'Payment before Delivery' : 'Payment after Delivery' }} | @php // $orderstatus = 'pending','approved','decline','packing','performa_invoice','invoice_review','delivered','cancelled','completed','shipping','invoiced','shipped' $status = $order->status; $color = ''; if ($status == 'pending') { $color = 'warning'; } elseif ($status == 'approved') { $color = 'primary'; } elseif ($status == 'decline') { $color = 'danger'; } elseif ($status == 'packing') { $color = 'info'; } elseif ($status == 'packed') { $color = 'info'; } elseif ($status == 'performa_invoice') { $color = 'success'; } elseif ($status == 'invoice_review') { $color = 'secondary'; } elseif ($status == 'delivered') { $color = 'success'; } elseif ($status == 'cancelled') { $color = 'danger'; } elseif ($status == 'completed') { $color = 'success'; } elseif ($status == 'shipping') { $color = 'info'; } elseif ($status == 'invoiced') { $color = 'success'; } elseif ($status == 'shipped') { $color = 'success'; } else { $color = 'dark'; } @endphp {{ $order->status }} | £{{ $order->discount }} | £{{ $order->total_amount }} |