<?php if (isset($component)) { $__componentOriginal8e2ce59650f81721f93fef32250174d77c3531da = $component; } ?>
<?php $component = App\View\Components\AppLayout::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('app-layout'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\AppLayout::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>


    <h4 class="mb-2">Seleccione empresas para administrar</h4>

    <div class="col-md-12">
        <div class="row">


            <?php $__currentLoopData = Help::usuario()->empresas; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $e): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <div class="col-md-6">
                    <div class="card mb-3 ">
                        <div class="row g-0">
                            <div class="col-md-4">
                                <img src="<?php echo e(asset('assets/images/empresa.jpg')); ?>"
                                    class="img-fluid rounded-start mt-2 mb-2 ml-2 mr-2" alt="...">
                            </div>
                            <div class="col-md-8">
                                <div class="card-body">
                                    <h5 class="card-title"><?php echo e($e->empresa); ?></h5>
                                    <p class="card-text">

                                    </p>

                                    <?php if($e->id == Help::usuario()->empresa_id): ?>
                                        <button type="button" disabled class="btn btn-danger">SELECCIONADA</button>
                                    <?php else: ?>
                                        <a href="<?php echo e(route('rrhh.cambioEmpresa',['id'=>Help::usuario()->id ,'empresa'=>$e->id])); ?>" class="btn btn-success" style="color:aliceblue">Activar</a>
                                    <?php endif; ?>

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


 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal8e2ce59650f81721f93fef32250174d77c3531da)): ?>
<?php $component = $__componentOriginal8e2ce59650f81721f93fef32250174d77c3531da; ?>
<?php unset($__componentOriginal8e2ce59650f81721f93fef32250174d77c3531da); ?>
<?php endif; ?>
<?php /**PATH C:\laragon\www\sistema-contable-laravel\resources\views/dashboard.blade.php ENDPATH**/ ?>