@php use App\Libraries\FileSystem; use App\Models\Admin\Settings; @endphp @foreach($listing->items() as $k => $row)
@if(isset($row['orderItem'][0])) {{isset($row->orderItem[0]) && $row->orderItem[0] ? $row['orderItem'][0]['title'] : ''}} @endif
{{isset($row->orderItem) && isset($row->orderItem[0]) && $row->orderItem[0] ? Str::limit($row['orderItem'][0]['title'], 85) : ''}}
@if(isset($row->status) && $row->status == 0)

Declined

@elseif(isset($row->status) && $row->status == 1)

Shipping Soon

@elseif(isset($row->status) && $row->status == 2)

Shipped

@elseif(isset($row->status) && $row->status == 3)

Out of Delivery

@elseif(isset($row->status) && $row->status == 4)

Delivered

@endif
@if(isset($row->total) && $row->total > 0.00)
{{isset($row->total) && $row->total ? Settings::get('currency_symbol').' '.round($row->total, 2) : 0}}
@else
{{ Settings::get('currency_symbol').' 0' }}
@endif @if(isset($row) && count($row->orderItem) > 1)
+{{count($row->orderItem) - 1}} items
@endif
{{isset($row->address) && $row->address ? $row->address : ''}}
Order Id : {{isset($row->id) && $row->id ? General::formatOrderNumber($row->id) : ''}}
Ordered on : {{isset($row->created) && $row->created ? date('d M, Y', strtotime($row->created)) : ''}}
@if(isset($row->orderItem) && isset($row->orderItem[0]) && isset($row->orderItem[0]['delivery_date']) && $row->orderItem[0]['delivery_date'])
@if(isset($row->status) && $row->status == 6) Delivered on @else Delivery Date @endif : {{isset($row->orderItem[0]) && $row->orderItem[0] ? date('d M, Y', strtotime($row->orderItem[0]['delivery_date'])) : ''}}
@endif
@endforeach