⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.91
Server IP:
157.245.101.34
Server:
Linux skvinfotech-website 5.4.0-131-generic #147-Ubuntu SMP Fri Oct 14 17:07:22 UTC 2022 x86_64
Server Software:
Apache/2.4.41 (Ubuntu)
PHP Version:
7.4.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
html
/
resources
/
views
/
backend
/
products
/
View File Name :
edit.blade.php
@extends('backend.layouts.backend') @section('css_before') <!-- Page JS Plugins CSS --> <link rel="stylesheet" href="{{ asset('js/plugins/datatables/dataTables.bootstrap4.css') }}"> <link rel="stylesheet" href="{{ asset('js/plugins/datatables/buttons-bs4/buttons.bootstrap4.min.css') }}"> <link rel="stylesheet" href="{{ asset('/js/plugins/bootstrap-datepicker/css/bootstrap-datepicker3.min.css') }}"> <link rel="stylesheet" href="{{ asset('/js/plugins/bootstrap-colorpicker/css/bootstrap-colorpicker.min.css') }}"> <link rel="stylesheet" href="{{ asset('/js/plugins/select2/css/select2.min.css') }}"> <link rel="stylesheet" href="{{ asset('/js/plugins/ion-rangeslider/css/ion.rangeSlider.css') }}"> <link rel="stylesheet" href="{{ asset('/js/plugins/dropzone/dist/min/dropzone.min.css') }}"> <link rel="stylesheet" href="{{ asset('/js/plugins/flatpickr/flatpickr.min.css') }}"> @endsection @section('js_after') <!-- Page JS Plugins --> <script src="{{ asset('js/plugins/datatables/jquery.dataTables.min.js') }}"></script> <script src="{{ asset('js/plugins/datatables/dataTables.bootstrap4.min.js') }}"></script> <script src="{{ asset('js/plugins/bootstrap-datepicker/js/bootstrap-datepicker.min.js') }}"></script> <script src="{{ asset('js/plugins/bootstrap-colorpicker/js/bootstrap-colorpicker.min.js') }}"></script> <script src="{{ asset('js/plugins/bootstrap-maxlength/bootstrap-maxlength.min.js') }}"></script> <script src="{{ asset('js/plugins/select2/js/select2.full.min.js') }}"></script> <script src="{{ asset('js/plugins/jquery.maskedinput/jquery.maskedinput.min.js') }}"></script> <script src="{{ asset('js/plugins/ion-rangeslider/js/ion.rangeSlider.min.js') }}"></script> <script src="{{ asset('js/plugins/dropzone/dropzone.min.js') }}"></script> <script src="{{ asset('js/plugins/flatpickr/flatpickr.min.js') }}"></script> <script src="{{ asset('js/plugins/jquery-validation/jquery.validate.min.js') }}"></script> <script src="{{ asset('js/plugins/jquery-validation/additional-methods.js') }}"></script> <!-- Page JS Code --> <script src="{{ asset('js/pages/tables_datatables.js') }}"></script> <script> jQuery(function () { One.helpers(['flatpickr', 'select2','validation']); jQuery(document).ready(function(){ jQuery('.js-validation').validate({ ignore: [], rules: { 'name': { required: true, }, 'type': { required: true, }, }, messages: { 'name':'*please enter product name', 'type':'*Please select type', } }); @if($errors->has('invalid_credential')) One.helpers('notify', {align: 'center',type: 'danger', message: '{{$errors->first("invalid_credential")}}'}); @endif }); }); </script> @endsection @section('content') <div class="content"> <!-- Labels on top --> <div class="block block-rounded"> <div class="block-header"> <h3 class="block-title">Product Edit</h3> </div> <div class="block-content block-content-full"> <!-- Form Labels on top - Default Style --> <form class="mb-5 js-validation" action="{{route('products.update',[$product->id])}}" method="post" enctype="multipart/form-data"> @csrf {{ method_field('PUT') }} <div class="row"> <div class="form-group col-6"> <label>Product Name</label> <input type="text" class="form-control" id="name" name="name" value="{{$product->product_name}}" placeholder="Product Name"> </div> <div class="w-100"></div> <div class="form-group col-6"> <label>Type</label> <select name="type" class="form-control" id="type"> <option value="">{{"Select"}}</option> <option value="business" {{ ($product->type=="business")? "selected" : "" }}>{{"BUISNESS"}}</option> <option value="residential" {{ ($product->type=="residential")? "selected" : "" }}>{{"RESIDENTIAL"}}</option> </select> </div> <div class="w-100"></div> <div class="form-group col-6"> <label>HSN/SAC</label> <input type="text" class="form-control" id="hsn_sac" name="hsn_sac" value="{{ $product->hsn_sac }}"> </div> <div class="w-100"></div> <div class="w-100"></div> <div class="form-group col-6"> <label>Image</label> <input type="file" class="form-control" id="image" name="image" placeholder="Upload Image"> </div> <div class="w-100"></div> <div class="form-group col-6"> <button type="submit" class="btn btn-success">Update</button> <a href="{{ url()->previous()}}"> <button type="button" class="btn btn-danger">Cancel</button> </a> </div> </div> </form> <!-- END Form Labels on top - Default Style --> </div> </div> <!-- END Labels on top --> </div> @endsection