@component('open._layouts.app', [ 'title' => $videosPage->name, 'meta' => $videosPage->meta(), ])
@if(!empty($category)) {{ Breadcrumbs::render('videosCategory', $category) }} @else {{ Breadcrumbs::render('videos') }} @endif

{{ $videosPage->name }}

{{ $videosPage->description }}

@if($theVideo)
{{ $theVideo->started_at->format('d') }}
{{ get_month_date($theVideo->started_at) }} {{ $theVideo->started_at->format('Y') }}

{{ $theVideo->name }}

@if($category = $theVideo->tagsWithType('articleCategory')->first())
- {{ $category->name }} -
@endif

{{ str_tease($theVideo->description) }}

@if($theVideo->video_id)
@endif
@endif @foreach($videos->chunk(3) as $row)
@foreach($row as $video) @if(!empty($video->name)) {{-- todo:hack to check if name is null --}}
{{ $video->started_at->format('d') }}
{{ get_month_date($video->started_at) }} {{ $video->started_at->format('Y') }}
@if(!empty($video->video_id)) @endif

{{ $video->name }}

@if($category = $video->tagsWithType('articleCategory')->first())
- {{ $category->name }} -
@endif
@endif @endforeach
@endforeach
@endcomponent