<?php
// TODO : PUT your default breadcrumb configs here
$default_breadcrumb = [
    'show' => true, // show breadcrumb
    'title' => 'Page title',
    'showNav' => true,
    'nav' => [
        // "text to show" => "link",
        'Home' => '#',
        'Starter Page' => '#', // Current page is last item
    ],
    'showBtn' => true,
    'btnText' => 'GestStudent v22.xx',
    'btnClass' => 'btn  ms-3 d-none d-md-block',
];

if (isset($breadcrumb)) {
    // any specific configs in views ? let's merge them with default_breadcrumb
    $breadcrumb = array_merge($default_breadcrumb, $breadcrumb);
} else {
    $breadcrumb = $default_breadcrumb;
}

$breadcrumb['isTitleOnly'] = !($breadcrumb['showNav'] || $breadcrumb['showBtn']);
?>

<?php if($breadcrumb['show']): ?>
    <div class="page-breadcrumb border-bottom">
        <div class="row">
            <div
                class="<?php echo e($breadcrumb['isTitleOnly'] ? 'col-12' : 'col-lg-3 col-md-4 col-xs-12'); ?> justify-content-start d-flex align-items-center">
                <h5 class="font-weight-medium text-uppercase mb-0"><?php echo e($breadcrumb['title']); ?></h5>
            </div>

            <?php if(!$breadcrumb['isTitleOnly']): ?>
                <div
                    class="col-lg-9 col-md-8 col-xs-12 d-flex justify-content-start justify-content-md-end align-self-center">
                    <?php if($breadcrumb['showNav']): ?>
                        <nav aria-label="breadcrumb" class="mt-2">
                            <ol class="breadcrumb mb-0 p-0">
                                <?php $__currentLoopData = $breadcrumb['nav']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $text => $link): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <?php if($loop->last): ?>
                                        <li class="breadcrumb-item active" aria-current="page"><?php echo e($text); ?></li>
                                    <?php else: ?>
                                        <li class="breadcrumb-item">
                                            <a href="<?php echo e($link); ?>"><?php echo e($text); ?></a>
                                        </li>
                                    <?php endif; ?>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </ol>
                        </nav>
                    <?php endif; ?>

                    <?php if($breadcrumb['showBtn']): ?>
                        <button class="<?php echo e($breadcrumb['btnClass']); ?>"
                            style="background-color: <?php echo e(Session::get('RESULTAT_DATA')['RESULTAT_COULEUR_ETAB1']); ?>; color: <?php echo e(Session::get('RESULTAT_DATA')['RESULTAT_COULEUR_TEXT1']); ?>;">
                            <?php echo e($breadcrumb['btnText']); ?>

                        </button>
                    <?php endif; ?>
                    <a href="javascript:void(0)" class="rounded-pill ms-3 px-2" style="height: 30px; width:30px"><i
                            class="fa fa-spin fa-cog text-white setting"></i></a>
                </div>
            <?php endif; ?>
        </div>
    </div>
<?php endif; ?>
<?php /**PATH /home/africawebstudent/public_html/aws/numerisation/resources/views/partials/breadcrumb.blade.php ENDPATH**/ ?>