@extends('layouts.frontend') @section('title') {{ $video->title ?? 'Video' }}{{ $book ? ' - ' . $book->title : '' }} @endsection @section('meta') @if($book) @endif @endsection @section('content')
{{ $video->title ?? ($book ? $book->title : 'Video') }}
@if($video->date)

{{ \Carbon\Carbon::parse($video->date)->format('d-m-Y') }}

@endif @if($books->isNotEmpty())
Buku Terkait
@foreach($books as $book)
{{ $book->title }}
{{ $book->title }}
@if($book->relationLoaded('author') && $book->author)

{{ $book->author->name }}

@endif @if($book->relationLoaded('categories'))

@foreach($book->categories as $category) {{ $category->name }} @endforeach

@endif

@if($book->relationLoaded('publisher') && $book->publisher) {{ $book->publisher->name }} @endif @if($book->year) ยท {{ $book->year }} @endif

@endforeach
@endif
Video Lainnya
@forelse($otherVideos as $otherVideo)

{{ $otherVideo->title ?? 'Video' }}

@if($otherVideo->date) {{ $otherVideo->date }} @endif
@empty

Tidak ada video lainnya.

@endforelse
@endsection