@php $difficultyColors = [ 'easy' => 'bg-green-100 text-green-700', 'medium' => 'bg-yellow-100 text-yellow-700', 'high' => 'bg-orange-100 text-orange-700', 'professional' => 'bg-red-100 text-red-700', ]; @endphp

{{ $recipe->name }}

@can('update', $recipe) {{ __('Edit') }} @endcan {{ __('Back') }}
@if (session('status'))
{{ session('status') }}
@endif
@if ($recipe->media->isNotEmpty())
@foreach ($recipe->media as $media) {{ $media->original_name }} @endforeach
@else
{{ __('No photos yet') }}
@endif
{{ __(ucfirst($recipe->difficulty)) }} {{ $recipe->category->name }} @if ($recipe->time) {{ $recipe->time }} {{ $recipe->unit }} @endif @foreach ($recipe->tags as $tag) #{{ $tag->name }} @endforeach
@if ($recipe->description)
{!! $recipe->description !!}
@endif
@if ($recipe->ingredients->isNotEmpty())

{{ __('Ingredients') }}

    @foreach ($recipe->ingredients as $ingredient)
  • @if ($ingredient->media->isNotEmpty()) @else @endif {{ $ingredient->name }} @if ($ingredient->quantity) · {{ $ingredient->quantity }} @endif
  • @endforeach
@endif @if ($recipe->steps->isNotEmpty())

{{ __('Steps') }}

    @foreach ($recipe->steps as $step)
  1. {{ $loop->iteration }}

    {{ $step->name }}

    @if ($step->description)
    {!! $step->description !!}
    @endif @if ($step->media->isNotEmpty())
    @foreach ($step->media as $media) @endforeach
    @endif
  2. @endforeach
@endif
@if ($recipe->notes)
{{ __('Notes') }}: {{ $recipe->notes }}
@endif