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
|
||||
{
|
||||
// @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
|
||||
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
|
||||
|
||||
@section('page-scripts')
|
||||
<!-- @todo change to blade service provider -->
|
||||
@themejs('plugin/jqBootstrapValidation/jqBootstrapValidation.js','jq-validation','jquery')
|
||||
@themejs('//code.jquery.com/ui/1.12.1/jquery-ui.js','jquery-ui-js','jqery')
|
||||
<script type="text/javascript" src="plugin/jqBootstrapValidation/jqBootstrapValidation.js"></script>
|
||||
<script type="text/javascript" src="//code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
|
||||
|
||||
<script>
|
||||
<script type="text/javascript">
|
||||
$(function () { $("input,select,textarea").not("[type=submit]").jqBootstrapValidation(); } );
|
||||
|
||||
$(document).ready(function () {
|
||||
|
@ -213,7 +213,7 @@ Route::group(['prefix'=>'u'],function() {
|
||||
});
|
||||
|
||||
// Frontend
|
||||
Route::get('order',[OrderController::class,'index']);
|
||||
Route::view('order','theme.frontend.metronic.order.home');
|
||||
Route::post('order',[OrderController::class,'submit']);
|
||||
|
||||
Route::get('product_order/{o}',[OrderController::class,'product_order']);
|
||||
|
Loading…
Reference in New Issue
Block a user