@extends('admin.layouts.app') @section('title', $item ? 'Edit Testimonial' : 'New Testimonial') @section('page_title', $item ? 'Edit Testimonial' : 'New Testimonial') @section('content') @php $isNew = ! $item; $tab = $tab ?? 'content'; $tabs = [ 'content' => ['label' => 'Content', 'hint' => 'Quote & person'], 'seo' => ['label' => 'SEO', 'hint' => 'Search & social'], ]; $nav = [ ['id' => 'person', 'label' => 'Person'], ['id' => 'quote', 'label' => 'Quote'], ['id' => 'media', 'label' => 'Media'], ['id' => 'visibility', 'label' => 'Visibility'], ]; @endphp

Content ยท Testimonials

{{ $isNew ? 'Add a testimonial' : $item->name }}

{{ $isNew ? 'Capture the quote, attribution, and media โ€” then polish SEO if needed.' : 'Update the quote, rating, photo, and visibility for this client story.' }}

@if (! $isNew && $item->rating)
{{ $item->rating }}/5 โ˜…
@endif
@foreach ($tabs as $key => $meta) @if ($isNew && $key === 'seo') {{ $meta['label'] }} Save first @else {{ $meta['label'] }} {{ $meta['hint'] }} @endif @endforeach
@if ($tab === 'content')
@csrf @unless($isNew) @method('PUT') @endunless
@include('admin.testimonials.partials.content-form', ['item' => $item])
@elseif ($tab === 'seo' && ! $isNew)
@csrf @method('PUT') {{-- Keep required content fields when saving SEO-only --}}
@include('admin.partials.seo-fields', ['model' => $item, 'seo' => $item->seoMeta])
@endif
@endsection