rm unused import, new prop
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
action_route="{{route('categories.bulk.delete')}}"
|
||||
id_formname="categoriesBulkForm"
|
||||
id_button="bulkCategoryEditButton"
|
||||
model_name="category"
|
||||
>
|
||||
@can('delete', App\Models\Category::class)
|
||||
<option>Delete</option>
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
@use (App\Models\Manufacturer)
|
||||
@props([
|
||||
'id_divname',
|
||||
'id_formname',
|
||||
'id_button',
|
||||
'action_route',
|
||||
'action_method',
|
||||
'model_name' => 'asset',
|
||||
])
|
||||
|
||||
<div id="{{ $id_divname }}" style="min-width:400px">
|
||||
@@ -18,7 +18,7 @@
|
||||
@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="assets.id">
|
||||
<input name="sort" type="hidden" value="{{`$model_name.id`}}">
|
||||
<input name="order" type="hidden" value="asc">
|
||||
<label for="bulk_actions">
|
||||
<span class="sr-only">
|
||||
|
||||
@@ -35,6 +35,7 @@
|
||||
action_route="{{route('manufacturers.bulk.delete')}}"
|
||||
id_formname="manufacturersBulkForm"
|
||||
id_button="bulkManufacturerEditButton"
|
||||
model_name="manufacturer"
|
||||
>
|
||||
@can('delete', App\Models\Manufacturer::class)
|
||||
<option>Delete</option>
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
action_route="{{route('suppliers.bulk.delete')}}"
|
||||
id_formname="suppliersBulkForm"
|
||||
id_button="bulkSupplierEditButton"
|
||||
model_name="supplier"
|
||||
>
|
||||
@can('delete', App\Models\Supplier::class)
|
||||
<option>Delete</option>
|
||||
|
||||
Reference in New Issue
Block a user