|
{{ $ingredient->name }}
|
@if ($ingredient->hasValue())
{{ $ingredient->value }}
{{ \GetFitOnline\Units\Unit::ALL[$ingredient->unit] }}
@endif
|
@if ($ingredient->hasMacronutrients())
{{ $ingredient->macronutrients->energy }}
|
{{ $ingredient->macronutrients->proteins }}
{{ $ingredient->macronutrients->percents->formatted('proteins') }}
|
{{ $ingredient->macronutrients->carbohydrates }}
{{ $ingredient->macronutrients->percents->formatted('carbohydrates') }}
|
{{ $ingredient->macronutrients->fats }}
{{ $ingredient->macronutrients->percents->formatted('fats') }}
|
@else
- |
@endif
@endforeach
|
{{ $recipe->macronutrients->energy }}
|
{{ $recipe->macronutrients->proteins }}
{{ $recipe->macronutrients->percents->formatted('proteins') }}
|
{{ $recipe->macronutrients->carbohydrates }}
{{ $recipe->macronutrients->percents->formatted('carbohydrates') }}
|
{{ $recipe->macronutrients->fats }}
{{ $recipe->macronutrients->percents->formatted('fats') }}
|
|
|