resources/views/tailwind.blade.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php /** @var \Glhd\Gretel\View\BreadcrumbCollection|\Glhd\Gretel\View\Breadcrumb[] $breadcrumbs */ ?>

@unless ($breadcrumbs->isEmpty())
    <nav aria-label="Breadcrumb">
        <ol class="px-5 py-3 rounded flex flex-wrap bg-gray-100 text-sm">
            @foreach ($breadcrumbs as $breadcrumb)
                <li class="{{ $inactiveClass('mr-4') }}">
                    <div class="flex items-center">
                        <a class="text-gray-500 hover:text-gray-800" {{ $href() }} {{ $ariaCurrent() }}>
                            {{ $breadcrumb->title }}
                        </a>
                        @unless($loop->last)
                            <span aria-hidden="true" class="text-gray-300 ml-4 select-none">/</span>
                        @endunless
                    </div>
                </li>
            @endforeach
        </ol>
    </nav>
@endunless