31 lines
1.1 KiB
PHP
31 lines
1.1 KiB
PHP
@props([
|
|
'action_route',
|
|
'model_name' => 'asset',
|
|
])
|
|
@aware(['name'])
|
|
|
|
<div id="{{ Illuminate\Support\Str::camel($name) }}Form" style="min-width:400px" class="hidden-print">
|
|
<form
|
|
method="POST"
|
|
action="{{ $action_route }}"
|
|
accept-charset="UTF-8"
|
|
class="form-inline"
|
|
id="{{ Illuminate\Support\Str::camel($name) }}Form"
|
|
>
|
|
@csrf
|
|
|
|
{{-- The sort and order will only be used if the cookie is actually empty (like on first-use)--}}
|
|
<input name="sort" type="hidden" value="{{ "{$model_name}.id" }}">
|
|
<input name="order" type="hidden" value="asc">
|
|
<label for="bulk_actions">
|
|
<span class="sr-only">
|
|
{{ trans('button.bulk_actions') }}
|
|
</span>
|
|
</label>
|
|
<select name="bulk_actions" class="form-control select2" aria-label="bulk_actions" style="min-width: 350px;">
|
|
{{ $slot }}
|
|
</select>
|
|
|
|
<button class="btn btn-theme" id="{{ Illuminate\Support\Str::camel($name) }}Button" disabled>{{ trans('button.go') }}</button>
|
|
</form>
|
|
</div> |