| ID |
الصورة المصغرة |
العنوان |
المستخدم |
النوع |
المشاهدات |
الحالة |
مميز |
تاريخ الإنشاء |
الإجراءات |
@forelse($videos as $video)
| {{ $video->id }} |
|
{{ Str::limit($video->title, 50) }}
@if($video->isInGoldenList())
@endif
@if($video->sub_title)
{{ Str::limit($video->sub_title, 40) }}
@endif
|
@if($video->user)
@if($video->user->photo)

@else
{{ substr($video->user->name, 0, 1) }}
@endif
{{ $video->user->name }}
@else
-
@endif
|
{{ $video->video_type }}
|
@php
$videoViewCount = \App\Models\VideoView::where('video_id', $video->id)->where('soft_delete', 0)->count();
@endphp
{{ number_format($videoViewCount) }}
|
@if($video->status == 'success')
ناجح
@elseif($video->status == 'failed')
فاشل
@else
-
@endif
|
@if($video->star_video == 'yes')
@endif
@if($video->video_top == 'yes')
@endif
|
{{ $video->createdAt ? $video->createdAt->format('Y-m-d') : '-' }}
|
|
@empty
|
لا توجد فيديوهات
|
@endforelse
@if($videos->hasPages())
{{ $videos->links('vendor.pagination.bootstrap-5') }}
@endif