rm unused import, new prop

This commit is contained in:
spencerrlongg
2025-08-25 16:30:53 -05:00
parent c42996429f
commit c39d484611
4 changed files with 5 additions and 2 deletions

View File

@@ -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>

View File

@@ -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">

View File

@@ -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>

View File

@@ -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>