@extends('layouts.admin.app') @section('title', translate('Food List')) @push('css_or_js') @endpush @section('content')
@csrf
{{ translate('messages.columns') }}
@foreach ($foods as $key => $food) @endforeach
{{ translate('messages.sl') }} {{ translate('messages.name') }} {{ translate('messages.category') }} {{ translate('messages.restaurant') }} {{ translate('messages.price') }} {{ translate('messages.status') }} {{ translate('messages.action') }}
{{ $key + $foods->firstItem() }} {{ $food->name }} image
{{ Str::limit($food['name'], 20, '...') }}
{{ Str::limit($food->category, 20, '...') }} @if ($food->restaurant) {{ Str::limit($food->restaurant->name, 20, '...') }} @else {{ Str::limit( translate('messages.Restaurant deleted!'), 20, '...') }} @endif {{ \App\CentralLogics\Helpers::format_currency($food['price']) }}
@csrf @method('delete')
@if(count($foods) === 0)
public
{{translate('no_data_found')}}
@endif
{{--
1-15 of 380
--}}
{!! $foods->withQueryString()->links() !!}
@endsection @push('script_2') @endpush