@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
# Video Slug Title Status Video Date Action
{{ ($videos->currentPage() - 1) * $videos->perPage() + $loop->iteration }} {{ $video->video_code ?? '-' }} {{ $mainTranslation->video_translation_title ?? '-' }} @if($video->translations->count() > 1) {{ $video->translations->count() }} languages @endif @if($video->video_status === 'ACTIVE') {{ $statuses['ACTIVE'] ?? 'Active' }} @elseif($video->video_status === 'INACTIVE') {{ $statuses['INACTIVE'] ?? 'Inactive' }} @else No Status @endif {{ $video->video_date ? $video->video_date->format('d-m-Y') : '-' }}
@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