@foreach($orders as $order) @foreach($order->order_details as $order_detail) @php $attribute = ''; @endphp {{$i++}} {{$order->order_id}}
{{ucfirst(strtolower($order->shipping_name))}}
{{ucfirst(strtolower($order->shipping_phone))}} {{ $order_detail->product->title }}
@if($order_detail->attributes) @foreach(json_decode($order_detail->attributes) as $key=>$value) @php $attribute .= $value; @endphp @endforeach @endif @if($order->order_status != 'cancel') @endif {{$order->currency_sign. $order_detail->price}} {{$order_detail->qty}} {{$order->currency_sign. $order_detail->price*$order_detail->qty}} @if($order->shipping_cost != null) paid @else pending @endif @endforeach @endforeach