Move category/category_name product::class methods into __get(), no functional changes
This commit is contained in:
@@ -51,7 +51,7 @@
|
||||
:value="$o->product_id"
|
||||
:options="Product::with(['type.supplied','translate'])
|
||||
->get()
|
||||
->filter(fn($item)=>($item->category === $o->product->category))
|
||||
->filter(fn($item)=>($item->category_lc === $o->product->category_lc))
|
||||
->sortBy('name')
|
||||
->map(fn($item)=>[
|
||||
'id'=>$item->id,
|
||||
@@ -65,7 +65,7 @@
|
||||
</div>
|
||||
<hr>
|
||||
|
||||
@includeIf('theme.backend.adminlte.service.widget.'.$o->product->category.'.update',['o'=>$o->type])
|
||||
@includeIf('theme.backend.adminlte.service.widget.'.$o->product->category_lc.'.update',['o'=>$o->type])
|
||||
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
|
Reference in New Issue
Block a user