@extends('layouts.admin') @section('title','Edit Ingredient') @section('content')
{{-- Back --}} reply

Edit Ingredient


{{-- Validation Errors --}} @if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif {{-- Form --}}
@csrf @method('PUT') {{-- Ingredient Name --}}
{{-- Ingredient Categories --}}
@foreach($categories as $category)
id, old( 'categories', $ingredient->recipe_categories->pluck('id')->toArray() ) ) ? 'checked' : '' }} >
@endforeach
Select one or more recipe categories
{{-- Submit --}}
@endsection