@extends('admin.layouts.app') @push('style') {{-- --}} @endpush @section('pagetitlesection') @endsection @section('content')

Edit Diet

@csrf {{-- --}}

gender=="male") checked @endif> gender=="female") checked @endif> @error('gender') {{ $message }} @enderror

@error('age_from') {{ $message }} @enderror
@error('age_to') {{ $message }} @enderror

@error('height_from') {{ $message }} @enderror
@error('height_to') {{ $message }} @enderror

@error('weight_from') {{ $message }} @enderror
@error('weight_to') {{ $message }} @enderror
@error('bmi_from') {{ $message }} @enderror

@error('goal') {{ $message }} @enderror

@error('diet') {{ $message }} @enderror

@error('medical_condition') {{ $message }} @enderror

@error('allergy') {{ $message }} @enderror
@forelse ($breakfast as $chunk)
@forelse ($chunk as $breakfast) breakfasts->pluck('id')->contains($breakfast->id)) checked @endif>{{ $breakfast->name }} @empty @endforelse
@empty @endforelse @error('breakfast') {{ $message }} @enderror
@forelse ($breakfastOptional as $chunk)
@forelse ($chunk as $optionalBreakfast) dietAnyBreakfasts->pluck('id')->contains($optionalBreakfast->id)) checked @endif>{{ $optionalBreakfast->name }} @empty @endforelse
@empty @endforelse @error('optionalbreakfast') {{ $message }} @enderror
@forelse ($lunch as $chunk)
@forelse ($chunk as $lunch) lunches->pluck('id')->contains($lunch->id)) checked @endif>{{ $lunch->name }} @empty @endforelse
@empty @endforelse @error('lunch') {{ $message }} @enderror
@forelse ($lunchOptional as $chunk)
@forelse ($chunk as $lunchOptional) dietAnyLunches->pluck('id')->contains($lunchOptional->id)) checked @endif>{{ $lunchOptional->name }} @empty @endforelse
@empty @endforelse @error('optionallunch') {{ $message }} @enderror
@forelse ($dinner as $chunk)
@forelse ($chunk as $dinner) dinners->pluck('id')->contains($dinner->id)) checked @endif>{{ $dinner->name }} @empty @endforelse
@empty @endforelse @error('dinner') {{ $message }} @enderror
@forelse ($dinnerOptional as $chunk)
@forelse ($chunk as $dinnerOptional) dietAnyDinners->pluck('id')->contains($dinnerOptional->id)) checked @endif>{{ $dinnerOptional->name }} @empty @endforelse
@empty @endforelse @error('optionaldinner') {{ $message }} @enderror
@forelse ($snack as $chunk)
@forelse ($chunk as $snack) snacks->pluck('id')->contains($snack->id)) checked @endif>{{ $snack->name }} @empty @endforelse
@empty @endforelse @error('dinner') {{ $message }} @enderror
@forelse ($snackOptional as $chunk)
@forelse ($chunk as $snackOptional) dietAnySnacks->pluck('id')->contains($snackOptional->id)) checked @endif>{{ $snackOptional->name }} @empty @endforelse
@empty @endforelse @error('optionalsnack') {{ $message }} @enderror
@endsection @push('scripts') {{-- --}} {{-- --}} {{-- --}} {{-- --}} @endpush