@extends('layouts.admin') @section('title', 'Kelola Testimonial') @section('content')

Kelola Testimonial

Kelola testimonial dan ulasan dari klien

@if(session('success'))

{{ session('success') }}

@endif

Total Testimonial

{{ $testimonials->total() }}

Aktif

{{ $testimonials->where('is_active', true)->count() }}

Unggulan

{{ $testimonials->where('is_featured', true)->count() }}

Rating Rata-rata

{{ number_format($testimonials->where('rating', '>', 0)->avg('rating'), 1) }}

@forelse($testimonials as $testimonial) @empty @endforelse
Klien Testimonial Rating Status Dibuat Aksi
@if($testimonial->client_photo)
{{ $testimonial->client_name }}
@else
@endif
{{ $testimonial->client_name }} @if($testimonial->is_featured) Unggulan @endif
@if($testimonial->client_position || $testimonial->client_company)
{{ $testimonial->client_position }} @if($testimonial->client_position && $testimonial->client_company) - @endif {{ $testimonial->client_company }}
@endif
{{ Str::limit($testimonial->testimonial, 80) }}
@if($testimonial->rating)
@for($i = 1; $i <= 5; $i++) @if($i <= $testimonial->rating) @else @endif @endfor ({{ $testimonial->rating }})
@else - @endif
@if($testimonial->is_active) Aktif @else Nonaktif @endif {{ $testimonial->created_at->format('d M Y') }}

Belum ada testimonial

Mulai menambahkan testimonial dari klien

Tambah Testimonial
@if($testimonials->hasPages())
{{ $testimonials->links() }}
@endif
@push('scripts') @endpush @endsection