@if($preOrders->count() > 0) @foreach($preOrders as $key => $data) @php $invoice = $data->invoice->first(); @endphp
Order : #{{ $invoice->number ?? "" }}
@php $order_status_txt = ''; $orderStatus = $invoice->order_status; if($orderStatus == 4){ $order_status_txt = ""; //To be Packed }else if($orderStatus == 7){ // Box Payment Process $order_status_txt = " Payment In Process"; }else if($orderStatus == 5){ $order_status_txt = ""; //Open Box }else if($orderStatus == 8){ $order_status_txt = " To be Shipped"; }else if($orderStatus == 6){ $order_status_txt = " Shipped"; }else if($orderStatus == 10){ $order_status_txt = "Self-collection"; } @endphp {{ $order_status_txt }} View Order
@endforeach @else
No purchase here!
@endif