@if (count($orders) == 0)
{{ __('NO ORDER FOUND') . '!' }}
@else
{{ __('Order Number') }} |
{{ __('Date') }} |
{{ __('Payment Status') }} |
{{ __('Order Status') }} |
{{ __('Action') }} |
@foreach ($orders as $item)
#{{ $item->order_number }} |
{{ \Carbon\Carbon::parse($item->created_at)->format('d-m-Y') }} |
@php
if ($item->payment_status == 'pending') {
$payment_bg = 'bg-warning';
} elseif ($item->payment_status == 'completed') {
$payment_bg = 'bg-success';
} elseif ($item->payment_status == 'rejected') {
$payment_bg = 'bg-danger';
}
if ($item->order_status == 'pending') {
$order_bg = 'bg-warning';
} elseif ($item->order_status == 'processing') {
$order_bg = 'bg-info';
} elseif ($item->order_status == 'completed') {
$order_bg = 'bg-success';
} elseif ($item->order_status == 'rejected') {
$order_bg = 'bg-danger';
}
//order status
@endphp
{{ __($item->payment_status) }} |
{{ __($item->order_status) }} |
{{ __('Details') }}
|
@endforeach
@endif