<?php
//$route = Route::current()->getUri();
$route = Request::path();
$explodeRoute = explode('/', $route);
array_shift($explodeRoute);
$lastRoute = last($explodeRoute);
//dump($explodeRoute);
?>
<?php $valUrl = '' ?>

<div class="row wrapper border-bottom white-bg page-heading">
    <div class="col-lg-10">
        <h2></h2>
        <ol class="breadcrumb">
            <li class="breadcrumb-item">
                <a href="<?php echo e(url('soporte')); ?>"> Inicio </a>
            </li>
            <?php if(isset($explodeRoute) && count($explodeRoute) > 0): ?>
                <?php foreach($explodeRoute as $key=>$value): ?>
                    <?php $valUrl .= $value ?>
                    <li class="breadcrumb-item ">
                        <?php if($lastRoute != $value): ?>
                            <a href="<?php echo e(url('soporte/'.$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; ?>
        </ol>
    </div>
    <div class="col-lg-2">

    </div>
</div>

