You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
819 B
22 lines
819 B
1 year ago
|
@foreach($foods as $key=>$food)
|
||
|
<tr>
|
||
|
<td>{{$key+1}}</td>
|
||
|
<td>
|
||
|
<a class="media align-items-center" href="{{route('admin.food.view',[$food['id']])}}">
|
||
|
<img class="avatar avatar-lg mr-3" src="{{asset('storage/app/public/product')}}/{{$food['image']}}"
|
||
|
onerror="this.src='{{asset('public/assets/admin/img/160x160/img2.jpg')}}'" alt="{{$food->name}} image">
|
||
|
<div class="media-body">
|
||
|
<h5 class="text-hover-primary mb-0">{{$food['name']}}</h5>
|
||
|
</div>
|
||
|
</a>
|
||
|
</td>
|
||
|
<td>
|
||
|
{{Str::limit($food->restaurant->name,25,'...')}}
|
||
|
</td>
|
||
|
<td>{{$food->restaurant->zone->name}}</td>
|
||
|
<td>
|
||
|
{{$food->order_count}}
|
||
|
</td>
|
||
|
</tr>
|
||
|
@endforeach
|