@php
$html_string='';
foreach($orders as $order) {
$badge_status_class= ($order['order_status']=='completed')?'badge-success':(($order['order_status']=='pending')?'badge-warning':(($order['order_status']=='cancelled')?'badge-danger':''));
$html_string.='
| '.$order['order_id'].' |
'.$order['name'].' |
'.$order['phone'].' |
'.$order['location_name'].' |
'.ucfirst($order['order_status']).' |
'.$order['app_order_created_time'].' |
$'.$order['total_amount'].' | ';
$html_string.='';
$html_string.=' |
';
}
echo $html_string;
@endphp