

<?php if(auth(activeGuard())->user()->can("order-set-status")): ?>
    <div class="dropdown mb-4">
        <button class="btn btn-light dropdown-toggle" type="button" id="dropdownMenuButton"
                data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
            <?php echo $order->status->badge_dot ?? $status->name ?? "--"; ?>

        </button>

        <?php if(!in_array($order->status_code,$rejectedStatuses)): ?>
            <div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
                <?php $__empty_1 = true; $__currentLoopData = $nextStatuses; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $status): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                    <a class="dropdown-item order-set-status-to" href="javascript:void(0);"
                       data-status-id="<?php echo e($status->id); ?>"
                       data-order-id="<?php echo e($order->id); ?>"
                       data-bagde-dot="<?php echo e($status->dot ?? "--"); ?>"
                       data-confirm-message="<?php echo e(__("Set ':orderId' to :status",["status" => $status->name,'orderId' => $order->ref_id])); ?>">
                        <?php echo $status->badge_dot ?? $status->name ?? "--"; ?>

                    </a>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                <?php endif; ?>
            </div>
        <?php endif; ?>

    </div>
<?php else: ?>
 <?php echo $order->status->badge_label; ?>

<?php endif; ?>

<?php /**PATH /home2/lekruu/public_html/resources/views/backend/orders/blocs/dt-action-set-status.blade.php ENDPATH**/ ?>