@extends('public.layout.app') @section('title', 'Testimonials') @section('body')
Testimonials

Student and teacher voices

Stories from learners, instructors, alumni, and partners.

@forelse($testimonials as $testimonial)
@if($testimonial->photo) {{ $testimonial->name }} @else {{ \Illuminate\Support\Str::upper(\Illuminate\Support\Str::substr($testimonial->name, 0, 1)) }} @endif
{{ $testimonial->name }}
{{ ucfirst($testimonial->audience_type) }} @if($testimonial->role_or_program) | {{ $testimonial->role_or_program }} @endif

"{{ $testimonial->quote }}"

@if($testimonial->rating)
@for($i = 0; $i < $testimonial->rating; $i++)@endfor
@endif
@empty
Testimonials will appear after they are added.
@endforelse
@if(method_exists($testimonials, 'hasPages') && $testimonials->hasPages())
{{ $testimonials->links('pagination::bootstrap-4') }}
@endif
@endsection @push('styles') @endpush