@extends('layouts.app')
@section('title', 'Testimonials')
@section('nav_testimonials', 'bg-teal-50 text-teal-700 font-semibold')
@section('page_title', 'Guest Testimonials')
@section('page_subtitle', 'Reviews shown on the homepage')
@section('content')
@if(session('success'))
{{ session('success') }}
@endif
@if($errors->any())
{{ $errors->first() }}
@endif
@php $inp = 'w-full border-[0.5px] border-gray-200 rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-teal-500/20 focus:border-teal-400'; @endphp
{{-- Add --}}
{{-- List --}}
@if($testimonials->isEmpty())
No testimonials yet. Add one above.
@else
@foreach($testimonials as $t)
@if($t->avatar_path)
 }})
@else
{{ $t->initials() }}
@endif
{{ $t->guest_name }}
{{ str_repeat('★', $t->rating) }}{{ str_repeat('★', 5 - $t->rating) }}
@if($t->featured)Featured@endif
@if($t->status !== 'approved')Hidden@endif
{{ $t->location }}{{ $t->location && $t->stay_month ? ' · ' : '' }}{{ $t->stay_month }}
"{{ $t->quote }}"
@endforeach
@endif
@endsection