<?php
$route = Request::path();
$explodeRoute = explode('/', $route);
//array_shift($explodeRoute);
$lastRoute = last($explodeRoute);
//dump($explodeRoute);
$valUrl = "";
?>
<ol class="breadcrumb">
    <li class="active">
        <i class="fa fa-home"></i>
        <a href="{{ route('admin.index') }}">Inicio</a>
    </li>
    @if(isset($explodeRoute) && count($explodeRoute) > 0)
        @foreach ($explodeRoute as $key => $value)
            <?php $valUrl .= $value ?>
            <li>
                @if($lastRoute != $value)
                    <a href="{{ url($valUrl) }}">
                        {{ ucfirst(str_slug($value, ' ')) }}
                    </a>
                @else
                    {{ ucfirst(str_slug($value, ' ')) }}
                @endif
            </li>
            <?php $valUrl .= '/'?>
        @endforeach
    @endif
</ol>