<?php $__env->startSection('content'); ?>
    <section class="section-padding section-bg fix">
        <div class="container">
            <div class="dashboard-layout">
                <?php echo $__env->make('student.partials.sidebar', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>

                <div class="dashboard-main">
                    <div class="section-title-area wow fadeInUp" style="margin-bottom: 30px;">
                        <div class="section-title">
                            <h6><?php echo e(__('student.events_title')); ?></h6>
                            <h2><?php echo e(__('student.my_event_bookings_title')); ?></h2>
                            <p><?php echo e(__('student.event_bookings_subtitle')); ?></p>
                        </div>
                    </div>

                    <div class="dashboard-content-section wow fadeInUp">
                        <?php if($bookings->isEmpty()): ?>
                            <div
                                class="dashboard-empty-state text-center d-flex flex-column align-items-center justify-content-center">
                                <i class="fa-solid fa-calendar-xmark"></i>
                                <h3 class="text-center"><?php echo e(__('student.no_events_title')); ?></h3>
                                <p><?php echo e(__('student.no_events_desc')); ?></p>
                                <a href="<?php echo e(route('events.index')); ?>" class="theme-btn style-2 py-2 px-4">
                                    <?php echo e(__('student.explore_events_btn')); ?>

                                </a>
                            </div>
                        <?php else: ?>
                            <div class="table-responsive">
                                <table class="table align-middle">
                                    <thead>
                                        <tr>
                                            <th><?php echo e(__('student.event_column')); ?></th>
                                            <th><?php echo e(__('student.date_column')); ?></th>
                                            <th><?php echo e(__('student.seats_column')); ?></th>
                                            <th><?php echo e(__('student.status_column')); ?></th>
                                            <th><?php echo e(__('student.reference_column')); ?></th>
                                            <th class="text-end"><?php echo e(__('student.actions_column')); ?></th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <?php $__currentLoopData = $bookings; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $booking): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <tr>
                                                <td>
                                                    <span class="mb-1"><?php echo e($booking['event_title']); ?></span>
                                                    <div class="text-muted small"><?php echo e(__('student.booked_at_label')); ?>

                                                        <?php echo e($booking['booked_at_formatted']); ?></div>
                                                </td>
                                                <td class="text-muted small">
                                                    <?php if($booking['has_event']): ?>
                                                        <div><?php echo e($booking['start_date_formatted'] ?? 'TBD'); ?></div>
                                                        <div><?php echo e($booking['start_time_formatted'] ?? 'TBD'); ?></div>
                                                    <?php else: ?>
                                                        <div>—</div>
                                                    <?php endif; ?>
                                                </td>
                                                <td><?php echo e($booking['seats']); ?></td>
                                                <td>
                                                    <span class="<?php echo e($booking['status_badge_class']); ?>">
                                                        <?php echo e($booking['status_label']); ?>

                                                    </span>
                                                </td>
                                                <td><code><?php echo e($booking['reference']); ?></code></td>
                                                <td class="text-end">
                                                    <a href="<?php echo e($booking['ticket_url']); ?>" class="back-btn" target="_blank">
                                                        <?php echo e(__('student.view_ticket_btn')); ?>

                                                    </a>
                                                </td>
                                            </tr>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </tbody>
                                </table>
                            </div>
                            <div class="mt-3">
                                <?php echo e($bookings->links()); ?>

                            </div>
                        <?php endif; ?>
                    </div>
                </div>
            </div>
        </div>
    </section>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.student', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /Users/mahmudul/Codecanyone/edu_ex_full/Eduex_laravel/resources/views/student/events/bookings.blade.php ENDPATH**/ ?>