{{-- Tab: Testimonios --}}
@php
$testimonials = \App\Modules\Testimonials\Models\Testimonial::with('category')->orderBy('order')->orderBy('created_at', 'desc')->get();
@endphp
| Foto |
Nombre |
Testimonio |
Cargo |
Categoria |
Dest. |
Acciones |
@forelse($testimonials as $t)
|
{{ $t->name }} |
{{ Str::limit($t->description, 80) }} |
{{ $t->position }}{{ $t->company ? ' - ' . $t->company : '' }} |
{{ $t->category ? $t->category->name : '-' }} |
|
|
@empty
| No hay testimonios cargados. |
@endforelse
{{-- Tab: Categorias --}}
@php
$testimonialCategories = \App\Modules\Testimonials\Models\TestimonialCategory::withCount('testimonials')->orderBy('name')->get();
@endphp
| Nombre |
Testimonios |
Acciones |
@forelse($testimonialCategories as $cat)
| {{ $cat->name }} |
{{ $cat->testimonials_count }} |
|
@empty
| No hay categorias. |
@endforelse