@php $channel = core()->getCurrentChannel(); @endphp @push('meta') @endPush {{ ucwords(strtolower($recipe->title)) ?? '' }}
@if(!empty($recipe->video_url)) @php $parsedUrl = parse_url($recipe->video_url); if (isset($parsedUrl['query'])) { parse_str($parsedUrl['query'], $queryParams); if (isset($queryParams['v'])) { $youtubeId = $queryParams['v']; } } if (isset($parsedUrl['path'])) { $pathParts = explode('/', $parsedUrl['path']); $videoId = end($pathParts); } @endphp
@if(isset($youtubeId)) @elseif(isset($videoId)) @endif
@else {{ ucwords(strtolower($recipe->title)) }} @endif

{{ ucwords(strtolower($recipe->title)) }}

{!! $recipe->description !!}
Prep time: {{ $recipe->prep_time }}
Cook Time: {{ $recipe->cook_time }}
Serving: {{ $recipe->serving }}
@if (count($ingredients) > 0)

Ingredients

@foreach ($ingredients as $ingredient) {{ $ingredient->title }} {{ $ingredient->value }} @endforeach
@endif @if (count($steps) > 0)

Steps To Follow

{!! $recipe->steps_description !!}

@foreach ($steps as $index => $step)
{{ $index + 1 }} {{ $step->value }}
@endforeach
@endif
@if (count($nutrions) > 0)

Nutritional Info

@foreach ($nutrions as $nutrion)
{{ $nutrion->title }} {{ $nutrion->value }}
@endforeach
@endif
@if (count($related_recipes) > 0) @endif