@props([ 'with_title_area' => false, 'title_block_right' => false, 'title' => false, 'subtitle' => false, 'sortable' => true ]) @php if ($title) $with_title_area = true; @endphp
@if($with_title_area)
@if($title)

attributes->merge(['class' => 'text-base font-semibold leading-6 text-gray-900']) }}>{{ $title }}

@endif @if($subtitle)

attributes->merge(['class' => 'mt-2 text-sm text-gray-700']) }}>{{ $subtitle }}

@endif
{{-- Title block right often used for add button--}} @if($title_block_right)
attributes->merge(['class' => 'mt-4 sm:ml-16 sm:mt-0 sm:flex-none']) }}> {{ $title_block_right }}
@endif
@endif
merge(['class' => 'min-w-full divide-y divide-gray-300']) }}> {{ $slot }}