<?php $attributes ??= new \Illuminate\View\ComponentAttributeBag; ?>
<?php foreach($attributes->onlyProps(['team', 'component' => 'jet-dropdown-link']) as $__key => $__value) {
    $$__key = $$__key ?? $__value;
} ?>
<?php $attributes = $attributes->exceptProps(['team', 'component' => 'jet-dropdown-link']); ?>
<?php foreach (array_filter((['team', 'component' => 'jet-dropdown-link']), 'is_string', ARRAY_FILTER_USE_KEY) as $__key => $__value) {
    $$__key = $$__key ?? $__value;
} ?>
<?php $__defined_vars = get_defined_vars(); ?>
<?php foreach ($attributes as $__key => $__value) {
    if (array_key_exists($__key, $__defined_vars)) unset($$__key);
} ?>
<?php unset($__defined_vars); ?>

<?php if (isset($component)) { $__componentOriginal3bf0a20793be3eca9a779778cf74145887b021b9 = $component; } ?>
<?php $component = Illuminate\View\DynamicComponent::resolve(['component' => $component] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('dynamic-component'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\DynamicComponent::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes(['href' => '#','onclick' => 'event.preventDefault();
                                                 document.getElementById(\'switch-team-form-'.e($team->id).'\').submit();']); ?>
    <div class="d-flex align-content-center">
        <?php if(Auth::user()->isCurrentTeam($team)): ?>
            
            <div class="text-truncate" style="width: 12rem;"><i class="fa fa-check-circle link-primary"></i>&nbsp;<span class="link-primary"><?php echo e($team->name); ?></span></div>
        <?php else: ?> 
        <div class="text-truncate" style="width: 12rem;"><i class="fas fa-dot-circle "></i>&nbsp;  <?php echo e($team->name); ?>  </div>
            <?php endif; ?>



        
    </div>

    <form method="POST" action="<?php echo e(route('current-team.update')); ?>" id="switch-team-form-<?php echo e($team->id); ?>">
        <?php echo method_field('PUT'); ?>
        <?php echo csrf_field(); ?>

        <!-- Hidden Team ID -->
        <input type="hidden" name="team_id" value="<?php echo e($team->id); ?>">
    </form>
 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal3bf0a20793be3eca9a779778cf74145887b021b9)): ?>
<?php $component = $__componentOriginal3bf0a20793be3eca9a779778cf74145887b021b9; ?>
<?php unset($__componentOriginal3bf0a20793be3eca9a779778cf74145887b021b9); ?>
<?php endif; ?>


<?php /**PATH C:\laragon\www\sistema-contable-laravel\resources\views/vendor/jetstream/components/switchable-team.blade.php ENDPATH**/ ?>