@php $title = \App\Models\SystemSetting::get('testimonials_title', __('landing.testimonials.default_title')); $subtitle = \App\Models\SystemSetting::get('testimonials_subtitle', __('landing.testimonials.default_subtitle')); // Default testimonials - can be overridden via SystemSetting $defaultTestimonials = [ [ 'quote' => 'This platform has transformed how we deliver cross-platform solutions to our clients. What used to take weeks now takes minutes. The AI assistant is incredibly helpful for quick setups.', 'author' => 'Sarah Johnson', 'role' => 'Founder, WebCraft Agency', 'rating' => 5, ], [ 'quote' => 'We converted our e-commerce website to native apps and saw a 40% increase in user engagement. The push notifications feature alone has been a game-changer.', 'author' => 'Michael Chen', 'role' => 'CEO, ShopEasy', 'rating' => 5, ], [ 'quote' => 'As a developer, I appreciate how this tool handles all the complexity while giving me full control over customization. The REST API integration is fantastic.', 'author' => 'David Rodriguez', 'role' => 'Senior Developer, TechStart', 'rating' => 5, ], ]; $testimonials = \App\Models\SystemSetting::get('testimonials', $defaultTestimonials); if (is_string($testimonials)) { $testimonials = json_decode($testimonials, true) ?? $defaultTestimonials; } @endphp

{{ $title }}

{{ $subtitle }}

@foreach($testimonials as $index => $testimonial)
@for($i = 0; $i < ($testimonial['rating'] ?? 5); $i++) @endfor

"{{ $testimonial['quote'] }}"

{{ strtoupper(substr($testimonial['author'] ?? 'A', 0, 1)) }}

{{ $testimonial['author'] ?? __('landing.testimonials.anonymous') }}

{{ $testimonial['role'] ?? '' }}

@endforeach
@foreach($testimonials as $index => $testimonial) @endforeach