@extends('layouts.app') @section('title', 'تفاصيل الفيديو') @section('content')
@include('components.admin-sidebar')
@php // Get view and share counts from new tables $viewCount = \App\Models\VideoView::where('video_id', $video->id)->where('soft_delete', 0)->count(); $shareCount = \App\Models\VideoShare::where('video_id', $video->id)->where('soft_delete', 0)->count(); $totalWatchTime = \App\Models\VideoWatchTime::where('video_id', $video->id)->where('soft_delete', 0)->sum('watch_duration'); @endphp

تفاصيل الفيديو

تعديل رجوع
مشغل الفيديو
معلومات الفيديو

{{ $video->title }}

@if($video->isInGoldenList()) في القائمة الذهبية @endif
@if($video->sub_title)
{{ $video->sub_title }}
@endif
الوصف:

{{ $video->description }}

@if($video->video_src)
اسم ملف الفيديو:

{{ $video->getVideoFileName() }}

فتح الفيديو في نافذة جديدة
@endif @if($video->categories)
التصنيفات:

{{ $video->categories }}

@endif @if($video->tags)
الوسوم:
@foreach(explode(',', $video->tags) as $tag) {{ trim($tag) }} @endforeach
@endif @if($video->script)
النص البرمجي:
{{ $video->script }}
@endif
معلومات إضافية
@if($video->named_by) @endif @if($video->textBy) @endif @if($video->new_path) @endif @if($video->reason) @endif
ID {{ $video->id }}
Hash ID {{ $video->hash_id }}
نوع الفيديو {{ $video->video_type }}
الحالة @if($video->status == 'success') ناجح @elseif($video->status == 'failed') فاشل @else - @endif
الخصوصية @if($video->private == 'public') عام @else خاص @endif
في الأعلى @if($video->video_top == 'yes') نعم @else لا @endif
فيديو مميز @if($video->star_video == 'yes') نعم @else لا @endif
تم التسمية بواسطة {{ $video->named_by }}
النص بواسطة {{ $video->textBy }}
المسار الجديد {{ $video->new_path }}
السبب {{ $video->reason }}
تاريخ الإنشاء {{ $video->createdAt ? $video->createdAt->format('Y-m-d H:i:s') : '-' }}
آخر تحديث {{ $video->updatedAt ? $video->updatedAt->format('Y-m-d H:i:s') : '-' }}
الإحصائيات

{{ number_format($viewCount) }}

المشاهدات

{{ number_format($shareCount) }}

المشاركات

@php $hours = floor($totalWatchTime / 3600); $minutes = floor(($totalWatchTime % 3600) / 60); $seconds = $totalWatchTime % 60; @endphp @if($hours > 0) {{ $hours }}h {{ $minutes }}m @elseif($minutes > 0) {{ $minutes }}m {{ $seconds }}s @else {{ $seconds }}s @endif

وقت المشاهدة الإجمالي
@if($video->user)
المستخدم
@if($video->user->photo) {{ $video->user->name }} @else
{{ substr($video->user->name, 0, 1) }}
@endif
{{ $video->user->name }}

{{ $video->user->email }}

@if($video->user->verified_account == 'yes') موثق @endif
@endif @if($video->agent)
الوكيل

الاسم: {{ $video->agent->name }}

البريد: {{ $video->agent->email }}

@endif @if($video->supervisorUser)
المشرف

الاسم: {{ $video->supervisorUser->name }}

البريد: {{ $video->supervisorUser->email }}

@endif
الإجراءات
تعديل الفيديو
@csrf @method('DELETE')
@push('scripts') @endpush @endsection