<div class="border-b border-booklio-border p-4">
    <p class="text-xs font-bold uppercase tracking-wide text-booklio-muted">Current business</p>
    <div class="mt-3 flex items-center gap-3 rounded-lg bg-blue-50 p-3">
        <span class="flex h-11 w-11 items-center justify-center rounded-lg bg-booklio-primary text-sm font-extrabold text-white"><?php echo e($currentBusinessRow['initials'] ?? 'B'); ?></span>
        <div class="min-w-0">
            <p class="truncate text-sm font-extrabold text-booklio-dark"><?php echo e($currentBusinessRow['name'] ?? 'Business'); ?></p>
            <p class="truncate text-xs font-semibold text-booklio-primary"><?php echo e($currentBusinessRow['plan'] ?? 'Trial Plan'); ?> - <?php echo e($currentBusinessRow['status'] ?? 'Active'); ?></p>
        </div>
    </div>
</div>

<div class="max-h-[260px] overflow-y-auto p-2 booklio-scrollbar">
    <?php $__empty_1 = true; $__currentLoopData = $businesses; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $business): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
        <?php if($business['active'] || empty($business['switch_route'])): ?>
            <button type="button" class="flex w-full cursor-default items-center gap-3 rounded-lg p-3 text-left">
                <span class="flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-booklio-primary text-xs font-extrabold text-white">
                    <?php echo e($business['initials']); ?>

                </span>
                <span class="min-w-0 flex-1">
                    <span class="block truncate text-sm font-extrabold text-booklio-dark"><?php echo e($business['name']); ?></span>
                    <span class="block truncate text-xs font-medium text-booklio-muted"><?php echo e($business['plan']); ?> - <?php echo e($business['status']); ?></span>
                </span>
                <?php if (isset($component)) { $__componentOriginal56804098dcf376a0e2227cb77b6cd00a = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal56804098dcf376a0e2227cb77b6cd00a = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.ui.icon','data' => ['name' => 'check','class' => 'h-4 w-4 text-booklio-primary']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('ui.icon'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'check','class' => 'h-4 w-4 text-booklio-primary']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal56804098dcf376a0e2227cb77b6cd00a)): ?>
<?php $attributes = $__attributesOriginal56804098dcf376a0e2227cb77b6cd00a; ?>
<?php unset($__attributesOriginal56804098dcf376a0e2227cb77b6cd00a); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal56804098dcf376a0e2227cb77b6cd00a)): ?>
<?php $component = $__componentOriginal56804098dcf376a0e2227cb77b6cd00a; ?>
<?php unset($__componentOriginal56804098dcf376a0e2227cb77b6cd00a); ?>
<?php endif; ?>
            </button>
        <?php else: ?>
            <form method="POST" action="<?php echo e($business['switch_route']); ?>">
                <?php echo csrf_field(); ?>
                <button type="submit" class="flex w-full items-center gap-3 rounded-lg p-3 text-left transition hover:bg-slate-50 focus:outline-none focus:ring-4 focus:ring-blue-100">
                    <span class="flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-slate-100 text-xs font-extrabold text-slate-600">
                        <?php echo e($business['initials']); ?>

                    </span>
                    <span class="min-w-0 flex-1">
                        <span class="block truncate text-sm font-extrabold text-booklio-dark"><?php echo e($business['name']); ?></span>
                        <span class="block truncate text-xs font-medium text-booklio-muted"><?php echo e($business['plan']); ?> - <?php echo e($business['status']); ?></span>
                    </span>
                </button>
            </form>
        <?php endif; ?>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
        <div class="rounded-lg border border-dashed border-booklio-border bg-slate-50 p-4 text-center">
            <p class="text-sm font-extrabold text-booklio-dark">No businesses found</p>
            <p class="mt-1 text-xs leading-5 text-booklio-muted">Create a workspace to start using Booklio.</p>
        </div>
    <?php endif; ?>
</div>

<div class="grid gap-2 border-t border-booklio-border p-3">
    <?php if (isset($component)) { $__componentOriginala8bb031a483a05f647cb99ed3a469847 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginala8bb031a483a05f647cb99ed3a469847 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.ui.button','data' => ['variant' => 'outline','class' => 'w-full','href' => ''.e(route('admin.businesses.create')).'']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('ui.button'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['variant' => 'outline','class' => 'w-full','href' => ''.e(route('admin.businesses.create')).'']); ?>
        <?php if (isset($component)) { $__componentOriginal56804098dcf376a0e2227cb77b6cd00a = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal56804098dcf376a0e2227cb77b6cd00a = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.ui.icon','data' => ['name' => 'plus','class' => 'h-4 w-4']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('ui.icon'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'plus','class' => 'h-4 w-4']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal56804098dcf376a0e2227cb77b6cd00a)): ?>
<?php $attributes = $__attributesOriginal56804098dcf376a0e2227cb77b6cd00a; ?>
<?php unset($__attributesOriginal56804098dcf376a0e2227cb77b6cd00a); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal56804098dcf376a0e2227cb77b6cd00a)): ?>
<?php $component = $__componentOriginal56804098dcf376a0e2227cb77b6cd00a; ?>
<?php unset($__componentOriginal56804098dcf376a0e2227cb77b6cd00a); ?>
<?php endif; ?>
        Add New Business
     <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginala8bb031a483a05f647cb99ed3a469847)): ?>
<?php $attributes = $__attributesOriginala8bb031a483a05f647cb99ed3a469847; ?>
<?php unset($__attributesOriginala8bb031a483a05f647cb99ed3a469847); ?>
<?php endif; ?>
<?php if (isset($__componentOriginala8bb031a483a05f647cb99ed3a469847)): ?>
<?php $component = $__componentOriginala8bb031a483a05f647cb99ed3a469847; ?>
<?php unset($__componentOriginala8bb031a483a05f647cb99ed3a469847); ?>
<?php endif; ?>
    <a href="<?php echo e(route('admin.businesses.index')); ?>" class="rounded-lg px-3 py-2 text-center text-sm font-bold text-booklio-primary hover:bg-blue-50">Manage businesses</a>
</div>
<?php /**PATH C:\Users\Dcodax\Documents\Booklio\resources\views/components/admin/partials/dropdown-businesses.blade.php ENDPATH**/ ?>