
<div class="card mb-4">
    <div class="card-header d-flex justify-content-between align-items-center flex-wrap gap-2">
        <h5 class="card-title mb-0"><i class="ri-team-line me-1"></i><?php echo e(__('Teams')); ?></h5>
        <span class="badge bg-primary-subtle text-primary"><?php echo e($championship->teams->count()); ?></span>
    </div>
    <div class="card-body">
        <?php if($championship->teams->isEmpty()): ?>
            <div class="text-center py-5 text-muted">
                <i class="ri-team-line fs-1 d-block mb-2"></i>
                <?php echo e(__('No teams registered for this championship yet.')); ?>

            </div>
        <?php else: ?>
            <div class="row g-4">
                <?php $__currentLoopData = $championship->teams; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $team): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <div class="col-12 col-md-4">
                        <div class="champ-team-card">
                            <div class="champ-team-card-logo">
                                <?php if(filled($team->logo)): ?>
                                    <img src="<?php echo e(viewImage($team->logo)); ?>" alt="<?php echo e($team->name); ?>" width="72" height="72" loading="lazy" decoding="async">
                                <?php else: ?>
                                    <i class="ri-shield-line"></i>
                                <?php endif; ?>
                            </div>
                            <div class="champ-team-card-name"><?php echo e($team->name); ?></div>
                            <div class="champ-team-card-meta">
                                <strong><?php echo e((int) ($team->players_count ?? 0)); ?></strong> <?php echo e(__('Players')); ?>

                            </div>
                            <a href="<?php echo e(route('admin.championship-teams.show', $team->id)); ?>"
                               class="btn btn-sm btn-primary w-100">
                                <i class="ri-eye-line me-1"></i><?php echo e(__('Show Details')); ?>

                            </a>
                        </div>
                    </div>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </div>
        <?php endif; ?>
    </div>
</div>
<?php /**PATH /home/takwgzfj/montsportscamp.com/resources/views/admin/championships/show/partials/teams.blade.php ENDPATH**/ ?>