@extends('admin.layouts.app') @section('title', 'Yorumlar') @section('page-title', 'Yorumlar') @push('styles') @endpush @section('content') {{-- Filter --}}
@if(request('status')) @endif
{{-- Table --}}
@forelse($comments as $comment) @php $commentable = $comment->commentable; $isEpisode = $commentable instanceof \App\Models\Episode; $isAnime = $commentable instanceof \App\Models\Anime; @endphp {{-- Kullanıcı --}} {{-- Nereye --}} {{-- İçerik --}} {{-- Durum --}} {{-- Tarih --}} {{-- İşlemler --}} @empty @endforelse
Kullanıcı Nereye İçerik Durum Tarih İşlemler
{{ strtoupper(substr($comment->user?->name ?? '?', 0, 1)) }}
{{ $comment->user?->name ?? 'Silinmiş' }}
@if($comment->parent_id) ↩ Yanıt @endif @if($comment->is_pinned) Sabit @endif
@if($isEpisode && $commentable->anime)
{{ Str::limit($commentable->anime->title, 20) }}
S{{ str_pad($commentable->season->season_number ?? 1,2,'0',STR_PAD_LEFT) }}E{{ str_pad($commentable->episode_number,2,'0',STR_PAD_LEFT) }} @elseif($isAnime) {{ Str::limit($commentable->title, 22) }} @else {{ class_basename($comment->commentable_type) }} @endif
@if($comment->content)
{{ Str::limit($comment->content, 100) }}
@endif @if($comment->gif_url) gif @endif {{-- Yanıt formu --}}
@csrf
@php $sb = match($comment->status) { 'approved' => ['bg-success','Onaylı'], 'pending' => ['bg-warning','Bekliyor'], 'spam' => ['bg-secondary','Spam'], default => ['bg-danger','Reddedilmiş'], }; @endphp {{ $sb[1] }} {{ $comment->created_at->format('d.m.Y') }}
{{ $comment->created_at->format('H:i') }}
@if($comment->status !== 'approved')
@csrf
@endif @if($comment->status !== 'rejected')
@csrf
@endif
@csrf
@csrf @method('DELETE')
Yorum bulunamadı

Seçili filtreler için yorum bulunmuyor.

{{ $comments->links('admin.partials.pagination') }}
@endsection @push('scripts') @endpush