<!-- PAGE TITLE START -->
<div <?php echo e($attributes->merge(['class' => 'page-title'])); ?>>
    <div class="page-heading">
        <h2 class="mb-0 pr-3 text-dark f-18 font-weight-bold d-flex align-items-center">
            <span class="d-inline-block text-truncate mw-300"><?php echo e($pageTitle); ?></span>

            <span class="text-lightest f-12 f-w-500 ml-2 mw-250 text-truncate">
                <?php if(user()?->is_superadmin): ?>
                    <a href="<?php echo e(route('superadmin.super_admin_dashboard')); ?>" class="text-lightest"><?php echo app('translator')->get('app.menu.home'); ?></a> &bull;
                <?php else: ?>
                    <a href="<?php echo e(route('dashboard')); ?>" class="text-lightest"><?php echo app('translator')->get('app.menu.home'); ?></a> &bull;
                <?php endif; ?>
                <?php
                    $link = '';
                ?>

                <?php for($i = 1; $i <= count(Request::segments()); $i++): ?>
                    <?php if(($i < count(Request::segments())) && ($i > 0)): ?>
                        <?php $link .= '/' . Request::segment($i); ?>

                        <?php if(Request::segment($i) != 'account'): ?>
                            <?php
                                $langKey = 'app.'.str(Request::segment($i))->camel();

                            
                                if (!Lang::has($langKey)) {
                                    $langKey = str($langKey)->replace('app.', 'app.menu.')->__toString();
                                }
                                $segmentText = Lang::has($langKey) ? __($langKey) : ucwords(str_replace('-', ' ', Request::segment($i)));
                                $segmentLink = str_contains(url()->current(), 'public') ? '/public' . $link : $link;
                            ?>

                            <?php if(in_array(Request::segment($i), App\Enums\NonClickableSegments::getValues())): ?>
                                <?php echo e($segmentText); ?> &bull;
                            <?php else: ?>
                                <a href="<?php echo e($segmentLink); ?>" class="text-lightest">
                                    <?php echo e($segmentText); ?>

                                </a> &bull;
                            <?php endif; ?>
                        <?php endif; ?>
                    <?php else: ?>
                        <?php echo e($pageTitle); ?>

                    <?php endif; ?>
                <?php endfor; ?>
            </span>
        </h2>
    </div>
</div>
<!-- PAGE TITLE END -->
<?php /**PATH /home/smartdigitants/public_html/oneops.co.uk/oneops.ai/resources/views/components/app-title.blade.php ENDPATH**/ ?>