@if(isset($listing) && $listing ) {{-- {{dd($listing)}} --}} @foreach ($listing as $key => $row) {{-- {{dd($row)}} --}} {{-- @if($row->status && $row->status == 'pending') Pending @elseif($row->status && $row->status == 'completed') Completed @elseif($row->status && $row->status == 'prepared') Prepared @elseif($row->status && $row->status == 'rejected') Rejected @elseif($row->status && $row->status == 'accepted') Accepted @elseif($row->status && $row->status == 'refused_by_customer') Refused by Customer @elseif($row->status && $row->status == 'refused_by_shopkeeper') Refused by Shopkeeper @endif --}} {{isset($row->status) && $row->status ? ucfirst(str_replace('_',' ',$row->status)) : ""}} {{$row->created}} @endforeach @endif