@extends('layouts/contentLayoutMaster') @section('title', 'Add Food') @section('page-style') {{-- Page Css files --}} @endsection @section('content') {{csrf_field()}} Food Name @if($errors->first('name')) Food Name Required @enderror Food Local Name @if($errors->first('local_name')) Food Local Name Required @enderror Categories Select @foreach($categories as $c) {{ $c->name }} @endforeach @if($errors->first('category_id')) Category Required @enderror Tags Select @foreach($tags as $t) {{ $t->name }} @endforeach @if($errors->first('tags')) Tags Required @enderror SubTags Select @foreach($sub_tags as $t) {{ $t->name }} @endforeach @if($errors->first('tags')) Sub Tags Required @enderror Effort @php // Example options: In a real app, pass these from your controller $effort_options = ['low' => 'Low Effort (Quick Meals)', 'medium' => 'Medium Effort', 'high' => 'High Effort (More Prep)']; @endphp @foreach ($effort_options as $value => $label) {{ $label }} @endforeach @if($errors->has('effort') || $errors->has('effort.*')) {{ $errors->first('effort') ?: $errors->first('effort.*') }} @endif Price Tier @php // Example options: In a real app, pass these from your controller $price_options = ['budget' => 'Budget Friendly', 'moderate' => 'Moderate Cost', 'premium' => 'Premium Ingredients']; @endphp @foreach ($price_options as $value => $label) {{ $label }} @endforeach @if($errors->has('prices') || $errors->has('prices.*')) {{ $errors->first('prices') ?: $errors->first('prices.*') }} @endif Select Primary Food Ingredients new Select @foreach($ingredients as $ing) id,old('primary_ingredients')))? 'selected':'' }} > {{ $ing->name }} @endforeach Select Food Ingredients Select @foreach($ingredients as $ing) id,old('ingredients')))? 'selected':'' }} > {{ $ing->name }} @endforeach Select Cusine Select @foreach($cuisines as $cui) id, old('cuisine_ids', [])) ? 'selected' : '' }} > {{ $cui->name }} @endforeach Details Local Details Submit Reset @endsection @section('vendor-script') {{-- Vendor js files --}} @endsection @section('page-script') @endsection