![]() 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/shared/ |
<div class="form-group"><br /> <label>Price Schema </label> <a id="add-price" data-toggle="modal" data-target="#price-form" class="btn btn-sm btn-primary price-value-add-btn"> <i class="fa fa-plus"></i> Add </a> <div class="form-inline"> <ul class="list-unstyled"> <li> <table id = "price-table" class="table"> <thead> <tr> <th>From (year)</th> <th>To (year) </th> <th>20K KMS</th> <th>40K KMS</th> <th>60K KMS</th> <th>80K KMS</th> <th>Action</th> </tr> </thead> <tbody id = "price-table"> @foreach($prices as $price) <tr id = "price-row-{{$price -> id}}"> <td id="price-from-{{$price -> id}}">{{$price -> from}}</td> <td id="price-to-{{$price -> id}}">{{$price -> to}}</td> <td id="price-20k-{{$price -> id}}">{{$price -> priceExtra() -> where('name','20k')->first()->description}}</td> <td id="price-40k-{{$price -> id}}">{{$price -> priceExtra() -> where('name','40k')->first()->description}}</td> <td id="price-60k-{{$price -> id}}">{{$price -> priceExtra() -> where('name','60k')->first()->description}}</td> <td id="price-80k-{{$price -> id}}">{{$price -> priceExtra() -> where('name','80k')->first()->description}}</td> <td> <div class="action-btn"> <a id="edit-price-{{$price -> id}}" data-price-id = "{{$price -> id}}" class="btn btn-sm btn-primary price-value-update-btn"> <i class="fa fa-edit"></i> Edit </a> <a class="btn btn-sm btn-danger price-value-delete-btn" data-price-id = "{{$price -> id}}"> <i class="fa fa-trash"></i> Delete </a> </div> </td> </tr> @endforeach </tbody> </table> </li> </ul> </div> <div class="clearfix"></div> </div> <div class="modal fade" id="price-form" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" data-price-id="" data-price-type = "" > <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header text-center"> <h4 class="modal-title w-100 font-weight-bold">Update Price Detail</h4> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div> <form id="value-form" method="post"> <div class="modal-body mx-3"> <div class="md-form mb-5"> <label data-error="wrong" data-success="right" for="input-display-name">From (year)</label> <input type="text" id="input-from" class="form-control validate"> </div> <div class="md-form mb-5"> <label data-error="wrong" data-success="right" for="input-price-code">To (year)</label> <input type="text" id="input-to" class="form-control validate" > </div> <div class="md-form mb-5"> <label data-error="wrong" data-success="right" for="input-display-name" name="20k">20K KMS</label> <input type="text" id="input-20k" class="form-control validate"> </div> <div class="md-form mb-5"> <label data-error="wrong" data-success="right" for="input-display-name" name="40k">40K KMS</label> <input type="text" id="input-40k" class="form-control validate"> </div> <div class="md-form mb-5"> <label data-error="wrong" data-success="right" for="input-price-code" name="60k">60K KMS</label> <input type="text" id="input-60k" class="form-control validate"> </div> <div class="md-form mb-5"> <label data-error="wrong" data-success="right" for="input-price-code" name="80k">80K KMS</label> <input type="text" id="input-80k" class="form-control validate"> </div> <div> <p id="error-message" class = "error"></p> </div> </div> </form> </div> <div class="modal-footer"> <button id="price-save" type="button" class="btn btn-primary">Save changes</button> <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button> </div> </div> </div> </div>