Fix order URL
This commit is contained in:
parent
743374cb17
commit
9277d42196
@ -13,18 +13,6 @@ use App\Models\{Account,Product,Service,User};
|
|||||||
|
|
||||||
class OrderController extends Controller
|
class OrderController extends Controller
|
||||||
{
|
{
|
||||||
// @todo To check
|
|
||||||
public function __construct()
|
|
||||||
{
|
|
||||||
$this->middleware('auth');
|
|
||||||
}
|
|
||||||
|
|
||||||
// @todo To check
|
|
||||||
public function index()
|
|
||||||
{
|
|
||||||
return view('theme.backend.adminlte.order.home');
|
|
||||||
}
|
|
||||||
|
|
||||||
// @todo To check
|
// @todo To check
|
||||||
public function product_order(Product $o)
|
public function product_order(Product $o)
|
||||||
{
|
{
|
||||||
|
@ -263,11 +263,10 @@ DO NOT request making changes to an active service here, it will not be processe
|
|||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@section('page-scripts')
|
@section('page-scripts')
|
||||||
<!-- @todo change to blade service provider -->
|
<script type="text/javascript" src="plugin/jqBootstrapValidation/jqBootstrapValidation.js"></script>
|
||||||
@themejs('plugin/jqBootstrapValidation/jqBootstrapValidation.js','jq-validation','jquery')
|
<script type="text/javascript" src="//code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
|
||||||
@themejs('//code.jquery.com/ui/1.12.1/jquery-ui.js','jquery-ui-js','jqery')
|
|
||||||
|
|
||||||
<script>
|
<script type="text/javascript">
|
||||||
$(function () { $("input,select,textarea").not("[type=submit]").jqBootstrapValidation(); } );
|
$(function () { $("input,select,textarea").not("[type=submit]").jqBootstrapValidation(); } );
|
||||||
|
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
|
@ -213,7 +213,7 @@ Route::group(['prefix'=>'u'],function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// Frontend
|
// Frontend
|
||||||
Route::get('order',[OrderController::class,'index']);
|
Route::view('order','theme.frontend.metronic.order.home');
|
||||||
Route::post('order',[OrderController::class,'submit']);
|
Route::post('order',[OrderController::class,'submit']);
|
||||||
|
|
||||||
Route::get('product_order/{o}',[OrderController::class,'product_order']);
|
Route::get('product_order/{o}',[OrderController::class,'product_order']);
|
||||||
|
Loading…
Reference in New Issue
Block a user