<div id="myProjectsHub"
     hx-get="<?php echo e(BASE_URL); ?>/projects/projectHubProjects/get"
     hx-trigger="HTMX.updateProjectList from:body"
     hx-target="#myProjectsHub"
     hx-swap="outerHTML">

    <?php if(count($clients) > 0): ?>
        <div class="dropdown dropdownWrapper pull-right">
            <a href="javascript:void(0)" class="btn btn-default dropdown-toggle header-title-dropdown" data-toggle="dropdown">
                <?php if($currentClientName != ''): ?>
                    <?php echo e($currentClientName); ?>

                <?php else: ?>
                    <?php echo e(__("headline.all_clients")); ?>

                <?php endif; ?>

                <i class="fa fa-caret-down"></i>
            </a>

            <ul class="dropdown-menu">
                <li><a href="<?php echo e(BASE_URL); ?>/projects/showMy"><?php echo e(__("headline.all_clients")); ?></a></li>
                <?php $__currentLoopData = $clients; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <?php if(! empty($key)): ?>
                        <li>
                            <a href="javascript:void(0);"
                               hx-get="<?php echo e(BASE_URL); ?>/projects/projectHubProjects/get?client=<?php echo e($key); ?>"
                               hx-target="#myProjectsHub"
                               hx-swap="outerHTML"><?php echo e($value['name']); ?></a>
                        </li>
                    <?php endif; ?>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </ul>
        </div>
    <?php endif; ?>

    <?php if(count($allProjects) == 0): ?>
        <br /><br />
        <div class='center'>
            <div style='width:70%; color:var(--main-action-color)' class='svgContainer'>
                <?php echo e(__('notifications.not_assigned_to_any_project')); ?>

                <?php if($login::userIsAtLeast($roles::$manager)): ?>
                    <br />
                    <a href='<?php echo e(BASE_URL); ?>/projects/newProject' class='btn btn-primary'><?php echo e(__('link.new_project')); ?></a>
                <?php endif; ?>
            </div>
        </div>
    <?php endif; ?>

    <?php if (isset($component)) { $__componentOriginalb42738ebdee3365d3e140e48fd37e95c = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalb42738ebdee3365d3e140e48fd37e95c = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'global::components.accordion','data' => ['id' => 'myProjectsHub-favorites','class' => 'noBackground']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('global::accordion'); ?>
<?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(['id' => 'myProjectsHub-favorites','class' => 'noBackground']); ?>
         <?php $__env->slot('title', null, []); ?> 
            ⭐ My Favorites
         <?php $__env->endSlot(); ?>
         <?php $__env->slot('content', null, []); ?> 
            <div class="row">
                <?php
                    $hasFavorites = false;
                ?>
                <?php $__currentLoopData = $allProjects; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $project): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <?php if($project['isFavorite'] == true): ?>
                        <div class="col-md-4">
                            <?php echo $__env->make("projects::partials.projectCard", ["project" => $project,  "type" => "detailed"], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
                        </div>
                        <?php
                            $hasFavorites = true;
                        ?>
                    <?php endif; ?>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                <?php if($hasFavorites === false): ?>
                    <div style="color:var(--main-action-color)">
                        You don't have any favorites. 😿
                    </div>
                <?php endif; ?>
            </div>
         <?php $__env->endSlot(); ?>
     <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalb42738ebdee3365d3e140e48fd37e95c)): ?>
<?php $attributes = $__attributesOriginalb42738ebdee3365d3e140e48fd37e95c; ?>
<?php unset($__attributesOriginalb42738ebdee3365d3e140e48fd37e95c); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalb42738ebdee3365d3e140e48fd37e95c)): ?>
<?php $component = $__componentOriginalb42738ebdee3365d3e140e48fd37e95c; ?>
<?php unset($__componentOriginalb42738ebdee3365d3e140e48fd37e95c); ?>
<?php endif; ?>


    <?php if (isset($component)) { $__componentOriginalb42738ebdee3365d3e140e48fd37e95c = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalb42738ebdee3365d3e140e48fd37e95c = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'global::components.accordion','data' => ['id' => 'myProjectsHub-otherProjects','class' => 'noBackground']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('global::accordion'); ?>
<?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(['id' => 'myProjectsHub-otherProjects','class' => 'noBackground']); ?>
         <?php $__env->slot('title', null, []); ?> 
            🗂️ All Assigned Projects
         <?php $__env->endSlot(); ?>
         <?php $__env->slot('content', null, []); ?> 

            <div class="row">
                <?php $__currentLoopData = $allProjects; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $project): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <?php if($project['isFavorite'] == false): ?>

                        <div class="col-md-3">
                            <?php echo $__env->make("projects::partials.projectCard", ["project" => $project, "type" => "detailed"], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
                        </div>

                    <?php endif; ?>

                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </div>
         <?php $__env->endSlot(); ?>
     <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalb42738ebdee3365d3e140e48fd37e95c)): ?>
<?php $attributes = $__attributesOriginalb42738ebdee3365d3e140e48fd37e95c; ?>
<?php unset($__attributesOriginalb42738ebdee3365d3e140e48fd37e95c); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalb42738ebdee3365d3e140e48fd37e95c)): ?>
<?php $component = $__componentOriginalb42738ebdee3365d3e140e48fd37e95c; ?>
<?php unset($__componentOriginalb42738ebdee3365d3e140e48fd37e95c); ?>
<?php endif; ?>
</div>


<?php /**PATH /home/ninatech/leantime/app/Domain/Projects/Templates/partials/projectHubProjects.blade.php ENDPATH**/ ?>