@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) @else @endempty {{ $recipe->title }} Редактировать О рекламодателе Не интересно Пожаловаться {{ __('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) @if (isset($step['image']) && is_string($step['image']) && strlen($step['image']) > 4) @endif {!! $step['description'] !!} @endforeach ОТЗЫВЫ @livewire('recipe.comment.show', ['recipe' => $recipe]) @auth @livewire('recipe.comment.create', ['recipe' => $recipe, 'user' => Auth::user()]) @endauth @endsection
{!! $recipe->description !!}