<?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="{{ url('soporte') }}"> Inicio </a>
            </li>
            @if(isset($explodeRoute) && count($explodeRoute) > 0)
                @foreach ($explodeRoute as $key=>$value)
                    <?php $valUrl .= $value ?>
                    <li class="breadcrumb-item ">
                        @if($lastRoute != $value)
                            <a href="{{ url('soporte/'.$valUrl) }}">
                                {{ ucfirst(str_slug($value, ' ')) }}
                            </a>
                        @else
                            {{ ucfirst(str_slug($value, ' ')) }}
                        @endif
                    </li>
                    <?php $valUrl .= '/'?>
                @endforeach
            @endif
        </ol>
    </div>
    <div class="col-lg-2">

    </div>
</div>

