<div class="row table-header" id="{{ $model }}-table-header">
    <div class="col-lg-6 col-md-8 col-12 mb-2">
        @include('components.datatables.search')
    </div>
    <div class="col-lg-4 col-md-3 col-6">
        @include('components.datatables.buttons')
        @if (isset($add_buttons))
            @include($add_buttons)
        @endif
    </div>
    <div class="col-lg-2 col-md-1 col-6 text-right">
        @if (isset($right_buttons))
            @foreach ($right_buttons as $button)
                @include('components.form.button', [
                    'class' => $button['class'] ?? null,
                    'icon' => $button['icon'] ?? null,
                    'txt' => $button['txt'] ?? null,
                    'id' => $button['id'] ?? null,
                ])
            @endforeach
        @endif

        @if (isset($right_content))
            {!! $right_content !!}
        @endif

        @if (!(isset($with_add) && !$with_add))
            @include('components.datatables.buttons.add')
        @endif
    </div>
</div>
