@extends('layouts/eatvio') @php $author = $plan->author()->first(); $authorPhoto = Storage::url($author->profile_photo_path); $image = Storage::url($plan->image); $planViewsCount = views($plan)->unique()->count(); @endphp @section('main_section')
Планы питания консультанта
{{ $plan->name }}
{{ $planViewsCount }} @livewire('plan.like-count', ['plan' => $plan]) {{ $plan->comments_count }}
Время прохождения плана: {{ $plan->duration }} дней
Проходят план: 2 пользователя
{{-- --}}
{!! $plan->details !!}
Комментировать @livewire('plan.like', ['plan' => $plan]) Поделится
{{ $options1['price'] ?? '0' }} ₽
{{ $options1['short'] ?? ''}}

{{ $options1['description'] ?? '' }}

@isset($options1['items'])
    @foreach($options1['items'] as $item)
  • {{ $item }}
  • @endforeach
@endisset Заказать за {{ $options1['price'] ?? '0' }} ₽
@if($plan->packets_count == 3)

{{ $options2['description'] ?? '' }}

@isset($options2['items'])
    @foreach($options2['items'] as $item)
  • {{ $item }}
  • @endforeach
@endisset Заказать за {{ $options2['price'] ?? '0' }} ₽

{{ $options3['description'] ?? '' }}

@isset($options3['items'])
    @foreach($options3['items'] as $item)
  • {{ $item }}
  • @endforeach
@endisset Заказать за {{ $options3['price'] ?? '0' }} ₽
@endif
ОТЗЫВЫ
@livewire('plan.comment.show', ['plan' => $plan]) @livewire('plan.comment.create', ['plan' => $plan, 'user' => Auth::user()])
@endsection @push('jq_scripts') @endpush