@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 @php $eff = $video->effective_status; $effBadge = [ 'LIVE' => 'bg-success-50 text-success-600 dark:bg-success-500/10 dark:text-success-400', 'SCHEDULED' => 'bg-warning-50 text-warning-600 dark:bg-warning-500/10 dark:text-warning-400', 'EXPIRED' => 'bg-error-50 text-error-600 dark:bg-error-500/10 dark:text-error-400', 'INACTIVE' => 'bg-error-50 text-error-600 dark:bg-error-500/10 dark:text-error-400', 'ARCHIVED' => 'bg-gray-100 text-gray-600 dark:bg-gray-800 dark:text-gray-400', ][$eff] ?? 'bg-gray-100 text-gray-600 dark:bg-gray-800 dark:text-gray-400'; @endphp {{ ucfirst(strtolower($eff)) }} @if($video->publish_start || $video->publish_end) {{ $video->publish_start?->format('d/m/Y H:i') ?? '—' }} → {{ $video->publish_end?->format('d/m/Y H:i') ?? '—' }} @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