![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/mcoil.corals.io/resources/views/admin/filltank/ |
@extends('layouts.admin.app') @section('content') <section class="content"> @include('layouts.errors-and-messages') <div class="box"> <div class="box-body"> <div class="col-md-12"> <h3 class="bold">Fill the Tank <small>- default price for all quotations</small></h3> {!! Form::open(['method' => 'POST','route' => ['admin.filltank.price.update'], 'id' => 'frm_add', 'class'=>'form']) !!} <div class="row"> <div class="col-md-12"> <label for="title">Please set a price for filling an oil tank. This price needs to be the highest price you can give before the driver confirms the proper quantity.</label> </div> <div class="col-md-6"> <div class="form-group"> <label>Price</label> <input type="number" name="price" id="price" placeholder="Price" class="form-control input-lg" value="{{ $fill_tank_data->price ?? '' }}" required=""> </div> </div> <div class="col-md-6"> <div class="form-group"> <label>Quantity</label> <input type="number" name="quantity" id="quantity" placeholder="quantity" class="form-control input-lg" value="{{ $fill_tank_data->quantity ?? '' }}" required=""> </div> </div> </div> <div class="row"> <div class="col-md-6"> <button type="submit" class="btn btn-lg btn-block btn-success">Update</button> </div> </div> {!! Form::close() !!} </div> </div> </div> </section> @endsection @section('js') <script src="{{ asset('https://cdnjs.cloudflare.com/ajax/libs/jquery-validate/1.19.1/jquery.validate.min.js') }}"></script> <script type="text/javascript"> $(document).ready(function () { $('#frm_add').validate({ rules: { price: { required: true, number: true }, quantity:{required:true,digits:true} }, messages: { price: { required: 'Please enter a price', number: 'Please enter a valid price' }, quantity: { required: 'Please enter a quantity', digits: 'Please enter a valid quantity' } } }); }); </script> @endsection