@extends('layouts.admin') @section('title', 'Manage Testimonials') @section('content')

Manage Testimonials

Manage customer feedback and testimonials

Add New Testimonial
@forelse($testimonials as $testimonial) @empty @endforelse
Image Customer Content Rating Status Approval Created By Actions
@if($testimonial->customer_image) {{ $testimonial->customer_name }} @else
@endif
{{ $testimonial->customer_name }}
{{ $testimonial->customer_role ?? 'Guest' }}
{{ \Illuminate\Support\Str::limit($testimonial->testimonial_content, 100) }}
@for($i = 1; $i <= 5; $i++) @if($i <= $testimonial->rating) @elseif($i - 0.5 <= $testimonial->rating) @else @endif @endfor
@if($testimonial->is_active) Active @else Inactive @endif @if($testimonial->approval_status === 'approved') Approved @elseif($testimonial->approval_status === 'pending') Pending @else Rejected @endif {{ $testimonial->creator->name ?? 'Unknown' }}
@if(auth()->user()->canApprove() && $testimonial->approval_status === 'pending')
@csrf
@csrf
@endif
@csrf @method('DELETE')

No testimonials found. Create one now

@if($testimonials->hasPages())
{{-- Previous Page Link --}} @if ($testimonials->onFirstPage()) @else @endif {{-- Page Info --}} Showing {{ $testimonials->firstItem() ?? 0 }}-{{ $testimonials->lastItem() ?? 0 }} of {{ $testimonials->total() }} {{ $testimonials->total() == 1 ? 'testimonial' : 'testimonials' }} {{-- Next Page Link --}} @if ($testimonials->hasMorePages()) @else @endif
@endif

Note: Only 3 active testimonials will be displayed on the welcome page. Make sure to set the display order to control which testimonials appear.

@endsection