@extends('admin.layouts.app') @section('title', 'Yorumlar') @section('page-title', 'Yorumlar') @push('styles') @endpush @section('content')
| 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
|
{{-- Nereye --}}
@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
|
{{-- İçerik --}}
@if($comment->content)
{{ Str::limit($comment->content, 100) }}
@endif
@if($comment->gif_url)
|
{{-- Durum --}}
@php $sb = match($comment->status) { 'approved' => ['bg-success','Onaylı'], 'pending' => ['bg-warning','Bekliyor'], 'spam' => ['bg-secondary','Spam'], default => ['bg-danger','Reddedilmiş'], }; @endphp {{ $sb[1] }} | {{-- Tarih --}}
{{ $comment->created_at->format('d.m.Y') }} {{ $comment->created_at->format('H:i') }} |
{{-- İşlemler --}}
@if($comment->status !== 'approved')
@endif
@if($comment->status !== 'rejected')
@endif
|
Yorum bulunamadıSeçili filtreler için yorum bulunmuyor. |
|||||