@extends('layouts/eatvio') @section('page_title', 'Recipe ' . $recipe->title) @php $recipeViewsCount = views($recipe) ->unique() ->count(); $isRecipeNavigationUrlActive = true; @endphp @section('main_section')
Рецепты
{{ $recipeViewsCount }}
@livewire('recipe.like-count', ['recipe' => $recipe])
{{ $recipe->comments_count }}
{{ $author['name'] }}
@empty($author->profile_photo_path) thumb @else thumb @endempty
recipe

{{ $recipe->title }}

  • Редактировать
  • {{--
  • --}} {{--
    ID: 2jkfk45JG
    --}} {{--
  • --}}
{{ __('recipe.t' . $recipe->cooking_time . 'm') }}
{{ $recipe->steps->count() }} этапов

{!! $recipe->description !!}

@if (strlen(trim($recipe->video_url)) > 4) Посмотреть рецепт на YouTube @endif
ПРОДУКТЫ:
    @foreach ($recipe->ingredients as $ingredient) @php $localizedUnit = isset($ingredient['unit']) && mb_strlen($ingredient['unit']) > 1 ? $ingredient['unit'] : 'gr'; @endphp @if (mb_strlen($ingredient['name']) > 1)
  • {{ $ingredient['name'] }} - {{ $ingredient['portion'] }} {{ __('recipe.' . $localizedUnit) }}
  • @endif @endforeach
ЦЕННОСТЬ:
  • WIP
  • {{--
  • Калории: 139.9 ккал
  • Белки: 20.4 гр
  • Жиры: 5.7 гр
  • Углеводы: 1.8 гр
  • --}}
ЦЕННОСТЬ:
@foreach ($recipe->tags->unique() as $curTag) {{ $curTag->name }} @endforeach

ПОШАГОВЫЙ ФОТО РЕЦЕПТ - {{ $recipe->title }}

    @foreach ($recipe->steps as $step)
  1. @if (isset($step['image']) && is_string($step['image']) && strlen($step['image']) > 4) step @endif
    {!! $step['description'] !!}
  2. @endforeach {{--
  3. step
    Режем куриную грудку тонкими ломтиками.
  4. step

    На край каждого кусочка филе кладем 1 ст. л. тертого сыра и порезанную зелень.

    Формируем рулетик из куриного филе с сыром и зеленью, подворачивая с боков, чтобы сыр при приготовлении не вытек. Скрепляем края половинками зубочисток.

  5. --}}

ОТЗЫВЫ

@livewire('recipe.comment.show', ['recipe' => $recipe]) @auth @livewire('recipe.comment.create', ['recipe' => $recipe, 'user' => Auth::user()]) @endauth
@endsection