<div class="box box-{{ $type ?? 'primary' }} {{ $classes ?? '' }}">
    @if (isset($title) || isset($tools))
    <div class="box-header with-border">
        @if (isset($title))
        <h3 class="box-title">{{ $title }}</h3>
        @endif
        @if (isset($tools))
        <div class="box-tools pull-right">
            {{ $tools }}
        </div>
        @endif
    </div>
    @endif
    @if ($slot)
    <div class="box-body">
        {{ $slot }}
    </div>
    @endif
    @if (isset($footer))
    <div class="box-footer">
        {{ $footer }}
    </div>
    @endif
</div>