@extends('layouts/eatvio') @php $typeToSvgId = [ 'meat' => '#MeatBig', 'veg' => '#BroccoliBig', 'corb' => '#BreadBig', 'alko' => '#WineBig' ]; $mealNames = ['breakfast', 'dinner', 'supper', 'lunch', 'snacks']; @endphp @push('css_head') @endpush @section('main_section') Популярные диеты Найти диету @foreach($diets as $diet) @php $author = $diet->author()->first(); // $authorPhoto = Storage::url($author->profile_photo_path); $authorPhoto = $author->profile_photo_url; $image = Storage::url($diet->image); $dietDuration = $diet->duration; $dietViewsCount = views($diet)->unique()->count(); @endphp {{ $dietViewsCount }} @livewire('diet.like-count', ['diet' => $diet]) {{ $diet->comments_count }} {{ $diet->duration }} {{ __('diet.days') }} {{ $diet->choses_count }} {{ $author->name }} 4.6 (32) {{-- --}} @foreach($diet->types as $dietType) {{-- {{ __('diet.' . $dietType) }} --}} @endforeach {{ $diet->name }} {!! Str::of(strip_tags($diet->details))->words(7, '...') !!} Просмотр @endforeach Срок диеты {{-- @php dump($filter) @endphp --}} - Проходит диету - {{ __('diet.veg') }} {{ __('diet.meat') }} {{ __('diet.corb') }} {{ __('diet.alko') }} Теги Быстрая Легкая С мясом Алкоголь Овощная Веганская @endsection