<div class="content-header pt-2 pb-1">
    <div class="container-fluid">
        <div class="row mb-2 align-items-center">
            <div class="col-sm-8">
                <div class="d-flex align-items-center flex-wrap">
                    <h1 class="m-0 text-dark d-flex align-items-center flex-grow-1">
                        {{ $title ?? null}}
                        @isset($subtitle)
                            <small class="font-weight-light ml-1 text-md">{{ $subtitle }}</small>
                        @endisset
                    </h1>
                    @stack('header-actions')
                </div>
            </div>
            <div class="col-sm-4">
                <ol class="breadcrumb float-sm-right text-sm">
                    <li class="breadcrumb-item">
                        <a href="{{ route('boilerplate.dashboard') }}">
                            {{ __('boilerplate::layout.home') }}
                        </a>
                    </li>
                    @if(isset($breadcrumb))
                        @foreach($breadcrumb as $label => $route)
                            @if(is_numeric($label))
                                <li class="breadcrumb-item active">{{ $route }}</li>
                            @elseif(is_array($route))
                                <li class="breadcrumb-item"><a href="{{ route($route[0], $route[1]) }}">{{ $label }}</a></li>
                            @else
                                <li class="breadcrumb-item"><a href="{{ route($route) }}">{{ $label }}</a></li>
                            @endif
                        @endforeach
                    @endif
                </ol>
            </div>
        </div>
    </div>
</div>
