@extends('admin.layout.index') @section('title') نظرات @endsection @section('content')
لیست کامنت ها ({{ $comments->total() }})
@foreach ($comments as $key => $comment) @endforeach
# نام کاربر نام محصول متن کامنت وضعیت عملیات
{{ $comments->firstItem() + $key }} {{-- --}} {{ $comment->user->first_name == null ? $comment->user->cellphone : $comment->user->first_name . ' ' . $comment->user->last_name }} {{-- --}} {{ $comment->product->name }} {{ $comment->text }} {{ $comment->approved }} نمایش
@csrf @method('DELETE')
{{ $comments->render() }}
@endsection