<?php
//$route = Route::current()->getUri();
$route = Request::path();
$explodeRoute = explode('/', $route);
array_shift($explodeRoute);
$lastRoute = last($explodeRoute);
//dump($explodeRoute);
?>
<div class="page-breadcrumbs">
    <?php $valUrl = '' ?>
    <ul class="breadcrumb">
        <li class="active">
            <i class="fa fa-home"></i>
            <a href="<?php echo e(url('superadmin')); ?>"> Inicio </a>
        </li>
        <?php if(isset($explodeRoute) && count($explodeRoute) > 0): ?>
            <?php foreach($explodeRoute as $key=>$value): ?>
                <?php $valUrl .= $value ?>
                <li>
                    <?php if($lastRoute != $value): ?>
                        <a href="<?php echo e(url('superadmin/'.$valUrl)); ?>">
                            <?php echo e(ucfirst(str_slug($value, ' '))); ?>

                        </a>
                    <?php else: ?>
                        <?php echo e(ucfirst(str_slug($value, ' '))); ?>

                    <?php endif; ?>
                </li>
                <?php $valUrl .= '/'?>
            <?php endforeach; ?>
        <?php endif; ?>
    </ul>
</div>
