@extends('layouts/fullLayoutMaster') @section('title', 'Эпизод #'.$episode->id) @section('vendor-style') @endsection @section('page-style') @endsection @section('content')
    @foreach(json_decode($episode->media,true) as $media)
  • @if($media['type'] == 'image') @else @endif
  • @endforeach
@php $euser = Helper::getUserInfo($episode->uid); @endphp
{{ $euser->name }}
{{ Helper::rdate('d M H:i',$episode->created_at, 1) }}
@if(!empty($episode->text))
{{ $euser->name }} {!! $episode->text !!}
@endif @foreach($comments as $comment) @php $user = Helper::getUserInfo($comment->uid); @endphp
{{ $user->name }} {!! $comment->text !!}
@endforeach
{{ $likes ?? 0 }}
@if(Auth::check()) @if(auth()->user()->id == $episode->uid) @include('includes/episode/edit')
@endif
@csrf

@endif
@endsection @section('vendor-script') @endsection @section('page-script') @endsection