{{ $recipe->name }} @if(!empty($feature_image)) {{ $feature_image }} @endisset

{{ $recipe->name }}

@if($recipe->time_total > 0)

Prep time

{{ $recipe->time_prep }} minutes

Cook time

{{ $recipe->time_cook }} minutes

Total time

{{ $recipe->time_total }} minutes

@endif @if($recipe->description)
{!! $recipe->description !!}
@endif

Ingredients [toggle nutrients]

    @foreach($recipe->ingredientsList->sortBy('weight') as $item) @if($item::class === \App\Models\IngredientAmount::class)
  • {{-- Prevent food with serving size > 1 from incorrectly using formatted serving unit with number of servings. E.g., for a recipe calling for 1 serving of a food with 4 tbsp. to a serving size show "1 serving" instead of "1 tbsp." (incorrect). --}} @if($item->unit === 'serving' && $item->ingredient->serving_size > 1 && ($item->ingredient->serving_unit || $item->ingredient->serving_unit_name)) {{ \App\Support\Number::rationalStringFromFloat($item->amount * $item->ingredient->serving_size) }} {{ $item->unitFormatted }} ({{ \App\Support\Number::rationalStringFromFloat($item->amount) }} {{ \Illuminate\Support\Str::plural('serving', $item->amount ) }}) @else {{ \App\Support\Number::rationalStringFromFloat($item->amount) }} @if($item->unitFormatted){{ $item->unitFormatted }}@endif @endif @if($item->ingredient->type === \App\Models\Recipe::class) {{ $item->ingredient->name }} @else {{ $item->ingredient->name }}@if($item->ingredient->detail), {{ $item->ingredient->detail }}@endif @endif @if($item->detail){{ $item->detail }}@endif
    {{ $item->nutrients_summary }}
  • @elseif($item::class === \App\Models\RecipeSeparator::class)
@if($item->text)

{{ $item->text }}

@else
@endif
    @endif @endforeach

Steps

    @foreach($recipe->steps as $step)
  1. {{ $step->step }}
  2. @endforeach
@if(!$recipe->tags->isEmpty())

Tags

@foreach($recipe->tags as $tag) {{ $tag->name }} @endforeach
@endif @if($recipe->source)

Source

@if(filter_var($recipe->source, FILTER_VALIDATE_URL)) {{ $recipe->source }} @else {{ $recipe->source }} @endif
@endif