@extends('layouts.app') @section('title', 'التعليقات') @section('content')
{{-- Breadcrumb + Header Actions --}}
تصدير CSV
{{-- Hero Stats --}}
{{-- Toolbar: Search + Filters --}}
{{-- Tabs --}} {{-- Table --}}
@php $sort = request('sort', 'created_at'); $direction = request('direction', 'desc'); $dirToggle = $direction === 'asc' ? 'desc' : 'asc'; $sortUrl = fn($col) => request()->fullUrlWithQuery([ 'sort' => $col, 'direction' => $sort === $col ? $dirToggle : 'asc', ]); @endphp @forelse($comments as $c) @empty @endforelse
# @include('partials.sort-icon', [ 'col' => 'id', 'sort' => $sort, 'direction' => $direction, ]) المستخدم الفيديو التعليق تاريخ الإنشاء @include('partials.sort-icon', [ 'col' => 'created_at', 'sort' => $sort, 'direction' => $direction, ]) إجراءات
{{ $c->id }} {{ optional($c->user)->name ?? '—' }} {{ optional($c->video)->title ?? '#' . $c->video_id }}
{{ $c->comment ?: '—' }}
{{ $c->created_at?->format('Y-m-d H:i') }}
@can('update', $c) @endcan @can('delete', $c) @endcan
لا توجد بيانات لعرضها
{{ $comments->links() }}
{{-- Offcanvas Filters --}}
فلاتر متقدمة
تفريغ
{{-- Modals Containers --}} @include('dashboard.comments.modals.create') @include('dashboard.comments.modals.delete') {{-- Generic dynamic modals for show/edit (loaded via fetch) --}}
{{-- Toasts --}}
@if (session('success')) @endif @if ($errors->any()) @endif
@endsection @push('scripts') @endpush