Order Date: {{ \Carbon\Carbon::parse($order->created_at)->format('d M Y') }}
@php($can_pay_now_total = $customerDiscount ? ($order->grand_total - $customerDiscount->discount_price) : $order->grand_total) Payment Amount: Tk {{ number_format($can_pay_now_total) }}

Order# {{ $order->order_id }} - @if($order->order_status == 'Can pay now') @php($remainingTimeForPayment = paymentExpiration($order->order_status_time, $order->payment_expire)) @if($remainingTimeForPayment) {{-- previous code block --}} {!! Form::open(['method' => 'POST', 'url' => route('canPayNow'), 'style' => 'display: inline-block;']) !!} {!! Form::hidden('order_id', $order->order_id) !!} {!! Form::hidden('cp_total', $can_pay_now_total) !!} {!! Form::submit('Pay Now',['class' => 'btn btn-primary']) !!} {!! Form::close() !!} @else {{ 'Recheck' }} @endif @elseif($order->order_status == 'Canceled by customer') {{ 'Canceled by me' }} @elseif($order->order_status == 'Cancel (By customer)') {{ 'Canceled' }} @elseif($order->order_status == 'Cancel (No response)') {{ 'Canceled' }} @elseif($order->order_status == 'Cancel (Duplicate Order)') {{ 'Canceled' }} @elseif($order->order_status == 'Cancel') {{ 'Canceled' }} @else {{ $order->order_status }} @endif @if(isset($order->order_status) && ($order->order_status == 'Pending' || $order->order_status == 'pending') && ($order->order_status != 'Processing' || $order->order_status != 'Delivered'))