@extends('admin.layouts.app') @section('title', 'Student Success Stories') @section('content')

Student Success Stories

Edit Testimonials
@if(session('success')) @endif @if(session('error')) @endif
Section Information
@if($testimonialsSection)
Title:

{{ $testimonialsSection->title ?? 'Not set' }}

Description:

{{ $testimonialsSection->content ?? 'Not set' }}

Status:
{{ $testimonialsSection->is_active ? 'Active' : 'Inactive' }}
Total Testimonials:
{{ $testimonialsSection->data && isset($testimonialsSection->data['testimonials']) ? count($testimonialsSection->data['testimonials']) : 0 }}
@else

No testimonials section found. Please create one first.

@endif
@if($testimonialsSection && $testimonialsSection->data && isset($testimonialsSection->data['testimonials']))
Current Testimonials
@if(count($testimonialsSection->data['testimonials']) > 0)
@foreach($testimonialsSection->data['testimonials'] as $index => $testimonial)
{{ $testimonial['name'] ?? 'Unknown' }}
@for($i = 1; $i <= 5; $i++) @if($i <= ($testimonial['rating'] ?? 0)) @else @endif @endfor

{{ $testimonial['position'] ?? 'No position' }}

{{ Str::limit($testimonial['message'] ?? 'No message', 100) }}

@endforeach
@else

No testimonials found. Add some testimonials to get started.

@endif
@endif
@endsection