@php use Illuminate\Support\Str; @endphp Testimonios @include('include.preloader') @include('include.header')
Testimonios
@if (session('success')) @endif @if ($errors->any())
No se pudo guardar:
    @foreach ($errors->all() as $e)
  • {{ $e }}
  • @endforeach
@endif
@forelse ($testimonios as $t) @php $img = ltrim($t->imagen ?? '', './'); $imgUrl = Str::startsWith($img, ['http://', 'https://']) ? $img : asset($img ?: 'images/no-photo.jpg'); @endphp @empty @endforelse
# Nombre Descripción Imagen Puntuación Acciones
{{ $t->id }} {{ $t->nombre }} {{ $t->descripcion }}
@for ($i = 1; $i <= 5; $i++) @if ($i <= (int) $t->puntuacion) @else @endif @endfor
Sin registros.
{{-- Modal: nuevo --}} {{-- Modal: preview imagen --}} {{-- Modal: editar --}} {{-- Modal: eliminar --}}

@include('include.footer')