@include('global.header-links')
@include('partials.sidebar')
@include('partials.header')
@if(session()->has('message'))
{{ session()->get('message') }}
@elseif(session()->has('error'))
{{ session()->get('error') }}
@endif
Food Items
@csrf {{--
--}}
Update Food Item
{{-- Food Name --}}
Food Name:
{{-- Food Name End --}} {{-- category options start --}}
Select Category
@foreach ($categories as $category)
id == $food->cat->id) selected @endif @endif> {{ $category->name }}
@endforeach
{{-- category options End --}}
Servings:
@php $i = 0; @endphp @foreach ($food->serving as $item )
@php $i++; @endphp @endforeach
{{-- Add servings --}} {{-- servings End --}}
Submit
@include('partials.footer') @include('global.footer-links')