Fixes for ordering, the themes are in frontend.metronic, not backend.adminlte
All checks were successful
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 34s
Create Docker Image / Final Docker Image Manifest (push) Successful in 9s

This commit is contained in:
2024-08-15 21:30:34 +10:00
parent b4c7c3ad20
commit 5f66987a3e
15 changed files with 61 additions and 176 deletions

View File

@@ -1,3 +1,5 @@
@use(App\Models\Product)
@extends('metronic::layouts.app')
@section('htmlheader_title')
@@ -184,13 +186,13 @@
<select class="form-control" id="product_id" name="product_id">
<option value="">&nbsp;</option>
@php
$po = $selected = NULL;
$pdo = $selected = NULL;
@endphp
@foreach (\App\Models\Product::active()->get()->sortBy('name') as $o)
@foreach (Product::active()->get()->sortBy('name') as $o)
@php
if ($o->id == old('product_id')) {
$selected = 'selected';
$po = $o;
$pdo = $o;
} else {
$selected = NULL;
}
@@ -204,7 +206,7 @@
<div class="col-sm-6" id="product_info">
@if(old('product_id'))
@include('theme.frontend.metronic.order.widget.info',['o'=>$po])
@include('theme.frontend.metronic.order.widget.info',['pdo'=>$pdo])
@endif
</div>
</div>
@@ -212,7 +214,7 @@
<div class="row">
<div class="col-sm-12" id="product_order">
@if(old('product_id'))
@include('theme.frontend.metronic.order.widget.order',['o'=>$po])
@include('theme.frontend.metronic.order.widget.order',['pdo'=>$pdo])
@endif
</div>
</div>