<?php $__env->startSection('title', 'Teams'); ?>
<?php $__env->startSection('breadcrumb'); ?>
    <span style="font-weight:600;color:var(--text-primary);">Teams</span>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>
    <div class="page-header">
        <div class="page-header-left">
            <h1>Teams</h1>
            <span class="badge badge-primary"><?php echo e($teams->count()); ?></span>
        </div>
        <div class="page-header-actions">
            <a href="<?php echo e(route('teams.create')); ?>" class="btn btn-primary">
                <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" style="width:16px;height:16px;"><line x1="12" y1="5" x2="12" y2="19"></line><line x1="5" y1="12" x2="19" y2="12"></line></svg>
                New Team
            </a>
        </div>
    </div>

    <div class="grid grid-3">
        <?php $__empty_1 = true; $__currentLoopData = $teams; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $team): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
            <a href="<?php echo e(route('teams.show', $team)); ?>" class="team-card" style="text-decoration:none;color:var(--text-primary);">
                <div class="team-card-header">
                    <div class="team-card-icon" style="background: <?php echo e($team->color); ?>;">
                        <?php echo e(strtoupper(substr($team->name, 0, 1))); ?>

                    </div>
                    <div>
                        <div class="team-card-name"><?php echo e($team->name); ?></div>
                        <div class="team-card-dept"><?php echo e($team->department ?? 'No Department'); ?></div>
                    </div>
                </div>
                <?php if($team->description): ?>
                    <p class="text-sm text-muted mb-3" style="display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;"><?php echo e($team->description); ?></p>
                <?php endif; ?>
                <div class="team-card-stats">
                    <span>👥 <?php echo e($team->members_count); ?> members</span>
                    <span>📁 <?php echo e($team->projects_count); ?> projects</span>
                </div>
                <div class="mt-3">
                    <div class="avatar-stack">
                        <?php $__currentLoopData = $team->members->take(5); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $member): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <div class="avatar avatar-xs" title="<?php echo e($member->name); ?>"><?php echo e($member->initials); ?></div>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </div>
                </div>
            </a>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
            <div class="empty-state" style="grid-column:1/-1;">
                <div class="empty-state-title">No teams yet</div>
                <div class="empty-state-text">Create your first team to organize your work.</div>
                <a href="<?php echo e(route('teams.create')); ?>" class="btn btn-primary">Create Team</a>
            </div>
        <?php endif; ?>
    </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /Applications/XAMPP/xamppfiles/htdocs/asana/resources/views/teams/index.blade.php ENDPATH**/ ?>