<?php $__env->startSection('title', 'Success Stories - ' . config('app.name')); ?>
<?php $__env->startSection('meta_description', 'Read real success stories from students and see how they achieved their study abroad goals.'); ?>

<?php $__env->startPush('styles'); ?>
<?php echo app('Illuminate\Foundation\Vite')('resources/css/success-stories.css'); ?>
<?php $__env->stopPush(); ?>

<?php $__env->startPush('scripts'); ?>
<?php echo app('Illuminate\Foundation\Vite')('resources/js/success-stories.js'); ?>
<?php $__env->stopPush(); ?>

<?php
    $toImage = function (?string $image): string {
        if (! $image) {
            return '';
        }

        if (str_starts_with($image, 'http://') || str_starts_with($image, 'https://')) {
            return $image;
        }

        return asset('storage/' . ltrim($image, '/'));
    };
?>

<?php $__env->startSection('content'); ?>
<div class="ss-page">
    <section class="ss-hero">
        <div class="ss-wrap ss-hero-grid">
            <div>
                <h1>
                    <span class="accent"><?php echo e($content['hero']['highlight'] ?? ''); ?></span>
                    <?php echo e(str_replace($content['hero']['highlight'] ?? '', '', $content['hero']['title'] ?? '')); ?>

                </h1>
                <button class="ss-btn" type="button" onclick="ApplyModal.open()"><?php echo e($content['hero']['button'] ?? 'Book A Free Consultation'); ?></button>
            </div>
            <div class="ss-hero-media">
                <img src="<?php echo e($toImage($content['hero']['image'] ?? '')); ?>" alt="Success stories hero image">
            </div>
        </div>
    </section>

    <section class="ss-section">
        <div class="ss-wrap">
            <div class="ss-heading">
                <h2><?php echo e($content['intro']['title'] ?? ''); ?></h2>
                <p><?php echo e($content['intro']['text'] ?? ''); ?></p>
            </div>

            <div class="ss-testimonials">
                <?php $__currentLoopData = ($content['testimonials'] ?? []); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <article class="ss-card ss-testimonial">
                        <p class="ss-quote"><?php echo e($item['quote'] ?? ''); ?></p>
                        <div class="ss-meta">
                            <div class="ss-avatar"><?php echo e($item['initials'] ?? 'ST'); ?></div>
                            <div>
                                <strong><?php echo e($item['name'] ?? ''); ?></strong>
                                <span><?php echo e($item['meta'] ?? ''); ?></span>
                            </div>
                        </div>
                    </article>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </div>
        </div>
    </section>

    <section class="ss-section">
        <div class="ss-wrap">
            <div class="ss-dark-cta ss-card">
                <h3><?php echo e($content['mid_cta']['title'] ?? ''); ?></h3>
                <p><?php echo e($content['mid_cta']['text'] ?? ''); ?></p>
                <button class="ss-btn" type="button" onclick="ApplyModal.open()"><?php echo e($content['mid_cta']['button'] ?? 'Book A Free Consultation'); ?></button>
            </div>
        </div>
    </section>

    <?php if(isset($visaStories) && $visaStories->count()): ?>
    <section class="ss-section">
        <div class="ss-wrap">
            <div class="ss-heading">
                <h2>Visa <span class="accent">Success Stories</span></h2>
                <p><?php echo e($content['intro']['text'] ?? 'Real students who achieved their dreams of studying abroad.'); ?></p>
            </div>
            <div class="ss-visa-grid">
                <?php $__currentLoopData = $visaStories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $story): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <article class="ss-visa-card">
                        <?php if($story->image_url): ?>
                            <div class="ss-visa-card-img">
                                <img src="<?php echo e($story->image_url); ?>" alt="<?php echo e($story->title); ?>">
                            </div>
                        <?php endif; ?>
                        <div class="ss-visa-body">
                            <h4><?php echo e($story->title); ?></h4>
                            <?php if($story->description): ?>
                                <p><?php echo e($story->description); ?></p>
                            <?php endif; ?>
                            <?php if($story->student_name || $story->university || $story->country_name): ?>
                                <small>
                                    <?php echo e($story->student_name); ?><?php echo e($story->student_name && ($story->university || $story->country_name) ? ' · ' : ''); ?><?php echo e($story->university); ?><?php echo e($story->university && $story->country_name ? ' · ' : ''); ?><?php echo e($story->country_name); ?>

                                </small>
                            <?php endif; ?>
                        </div>
                    </article>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </div>
        </div>
    </section>
    <?php endif; ?>

    <section class="ss-section">
        <div class="ss-wrap">
            <div class="ss-heading">
                <h2>Hear From <span class="accent"><?php echo e($content['videos']['highlight'] ?? ''); ?></span></h2>
                <p><?php echo e($content['videos']['text'] ?? ''); ?></p>
            </div>
            <div class="ss-videos">
                <?php if(isset($studentReviews) && $studentReviews->count()): ?>
                    <?php $__currentLoopData = $studentReviews; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $review): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <article class="ss-card ss-video">
                            <img src="<?php echo e($review->thumbnail_path ? asset('storage/' . $review->thumbnail_path) : ($toImage($content['videos']['items'][0]['image'] ?? ''))); ?>" alt="<?php echo e($review->title); ?>">
                            <?php if($review->video_url): ?>
                                <a href="<?php echo e($review->video_url); ?>" target="_blank" rel="noopener" class="ss-play">Play</a>
                            <?php else: ?>
                                <div class="ss-play">Play</div>
                            <?php endif; ?>
                            <p class="ss-video-title"><?php echo e($review->title); ?></p>
                        </article>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                <?php else: ?>
                    <?php $__currentLoopData = ($content['videos']['items'] ?? []); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $video): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <article class="ss-card ss-video">
                            <img src="<?php echo e($toImage($video['image'] ?? '')); ?>" alt="<?php echo e($video['title'] ?? ''); ?>">
                            <div class="ss-play">Play</div>
                            <p class="ss-video-title"><?php echo e($video['title'] ?? ''); ?></p>
                        </article>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                <?php endif; ?>
            </div>
        </div>
    </section>

    <?php $ctaData = $homeContent['final'] ?? []; ?>
    <?php echo $__env->make('partials.final-cta', [
        'cta' => $ctaData,
        'outerClass' => 'ss-section',
        'wrapClass' => 'ss-wrap',
        'cardClass' => 'ss-final',
    ], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>

    <?php echo $__env->make('partials.visa-success-slider', ['visaStories' => $visaStories ?? collect()], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
</div>


<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.public', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home/gpsmigration/public_html/gpsmigration.com/resources/views/success-stories.blade.php ENDPATH**/ ?>