@props([
    'route' => route('api.assets.index'),
    'name' => 'default',
    'fixed_right_number' => 2,
    'fixed_number' => 3,
    'table_header' => trans('general.assets'),
    'status_type' => null,
])

@aware(['name'])


<!-- start assets tab pane -->
@can('view', \App\Models\Asset::class)

    <x-slot:table_header>
        {{ $table_header }}
    </x-slot:table_header>

    <x-slot:bulkactions>
        <x-table.bulk-assets />
    </x-slot:bulkactions>

    <x-table
        :presenter="\App\Presenters\AssetPresenter::dataTableLayout($status_type !== 'Deleted' ? ['deleted_at'] : [])"
        :$fixed_right_number
        :$fixed_number
        use_sticky_css
        show_column_search="true"
        show_advanced_search="true"
        buttons="assetButtons"
        api_url="{{ $route }}"
        export_filename="export-{{ str_slug($name) }}-assets-{{ date('Y-m-d') }}"
    />

@endcan
<!-- end assets tab pane -->