@extends('backend.layouts.app') @section('title', \App\Http\Helpers\MenuHelper::getPageTitle()) @section('content')

All Videos

@can('content-video.create') Create New @endcan
@forelse($videos as $video) @php $mainTranslation = $video->translations->firstWhere('video_translation_main', 1) ?? $video->translations->first(); @endphp @empty @endforelse
No Title Status Video Date Action
{{ ($videos->currentPage() - 1) * $videos->perPage() + $loop->iteration }} {{ $mainTranslation->video_translation_title ?? '-' }} @if($video->translations->count() > 1) {{ $video->translations->count() }} languages @endif {{ $statuses[$video->video_status] ?? '-' }} {{ $video->video_date ? $video->video_date->format('Y-m-d') : '-' }}
@can('content-video.update') @endcan @can('content-video.delete')
@csrf @method('DELETE')
@endcan

No videos found

Click "Create New" to add your first entry.

{{ $videos->appends(request()->query())->links('vendor.pagination.custom') }}
@endsection