@if (count($breadcrumbs))

    <nav>
        <div class="nav-wrapper">
            <div class="col s12">
                @foreach ($breadcrumbs as $breadcrumb)

                    @if ($breadcrumb->url && !$loop->last)
                        <a href="{{ $breadcrumb->url }}" class="breadcrumb">{{ $breadcrumb->title }}</a>
                    @else
                        <span class="breadcrumb">{{ $breadcrumb->title }}</span>
                    @endif

                @endforeach
            </div>
        </div>
    </nav>

@endif
