@if(count($foods) > 0)
@if($type == 'user') @endif @if($type == 'master') @endif @php $count = count($foods); @endphp @foreach($foods as $key => $food) @if($type == 'user') @endif @if($type == 'master') @endif @endforeach
ID Name Name Greek Brand Category Calories /100g Protein /100g Carbs /100g Fat /100gUserAction
{{ $count - $key }} {{ $food->name }} {{ $food->name_el }} {{ $food->brand?->name ?? '-' }} {{ $food->category?->fc_value ?? '-' }} {{ $food->calories_per_100g }} {{ $food->protein_per_100g }} {{ $food->carbs_per_100g }} {{ $food->fat_per_100g }} {{ $food->user?->name ?? '-' }}
@csrf @method('DELETE')
@else

No foods found

@endif