Move category/category_name product::class methods into __get(), no functional changes
This commit is contained in:
@@ -53,7 +53,7 @@ if(isset($spo)) {
|
||||
|
||||
<div class="col-4">
|
||||
<!-- Offering Type -->
|
||||
<x-leenooks::form.select name="offering_type" icon="fa-cogs" label="Type" helper="Offering Type" :choose="true" :value="$oo?->category ?? ''" :options="Supplier::offeringTypes()->sortBy(fn($item)=>$item->category_name)->map(fn($item)=>['id'=>$item->category,'value'=>$item->category_name])"/>
|
||||
<x-leenooks::form.select name="offering_type" icon="fa-cogs" label="Type" helper="Offering Type" :choose="true" :value="$oo?->category_lc ?? ''" :options="Supplier::offeringTypes()->sortBy(fn($item)=>$item->category_name)->map(fn($item)=>['id'=>$item->category_lc,'value'=>$item->category_name])"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -180,7 +180,7 @@ if(isset($spo)) {
|
||||
$(document).ready(function() {
|
||||
@if(isset($oo) && $oo->exists)
|
||||
$('#offering_type').attr('style','pointer-events: none;');
|
||||
load_type('{{$oo->category}}',{{$oo->id}})
|
||||
load_type('{{$oo->category_lc}}',{{$oo->id}})
|
||||
@endif
|
||||
|
||||
$('#offering_type').on('change',function() {
|
||||
|
Reference in New Issue
Block a user