One Hat Cyber Team
Your IP :
18.217.69.43
Server IP :
104.21.16.1
Server :
Linux agrigation-prod 5.15.0-67-generic #74-Ubuntu SMP Wed Feb 22 14:14:39 UTC 2023 x86_64
Server Software :
nginx/1.24.0
PHP Version :
7.4.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
forge
/
app.gftag.com
/
storage
/
framework
/
views
/
View File Name :
05ee5b4efd6fd5d74c0eeaab09f14016.php
<?php $__env->startSection('styles'); ?> <link rel="stylesheet" href="<?php echo e(asset('css/separate/vendor/bootstrap-select/bootstrap-select.min.css')); ?>"> <link rel="stylesheet" href="<?php echo e(asset('css/separate/vendor/select2.min.css')); ?>"> <?php $__env->stopSection(); ?> <?php $__env->startSection('content'); ?> <div class="page-content"> <div class="container-fluid"> <?php if(session()->has('message')): ?> <div class="alert alert-info alert-fill alert-close alert-dismissible fade in"> <strong><?php echo e(session()->get('message')); ?></strong> </div> <?php endif; ?> <?php if(count($errors) > 0): ?> <div class="alert alert-danger alert-fill alert-close alert-dismissible fade in"> <ul> <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <li><?php echo e($error); ?></li> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </ul> </div> <?php endif; ?> <section class="card"> <div class="row"> <div class="header"> <div class="col-xs-8"> <h3 class="p-l">Edit Supplier</h3> </div> <div class="col-xs-4"> <a href="<?php echo e(route('suppliers')); ?>" class="btn btn-rounded float-right p-r">View all</a> </div> </div> </div> </section> <div class="box-typical box-typical-padding"> <form action="<?php echo e(route('update-supplier')); ?>" method="post"> <?php echo csrf_field(); ?> <div class="row"> <input type="hidden" name="id" value="<?php echo e($supplier->id); ?>"> <div class="col-lg-6"> <fieldset class="form-group"> <label class="form-label semibold" for="exampleInput">Supplier Name</label> <input type="text" name="name" class="form-control" id="exampleInput" value="<?php echo e(!empty($supplier) ? $supplier->name : ''); ?>"> </fieldset> </div> <div class="col-lg-6"> <fieldset class="form-group"> <label class="form-label semibold" for="exampleInputPassword1">Email</label> <input type="text" name="email" class="form-control" id="exampleInput" value="<?php echo e(!empty($supplier) ? $supplier->email : ''); ?>"> </fieldset> </div> <div class="col-lg-6"> <fieldset class="form-group"> <label class="form-label semibold" for="exampleInput">Phone</label> <input type="text" name="phone" id="state" class="form-control" value="<?php echo e(!empty($supplier) ? $supplier->phone : ''); ?>"> </fieldset> </div> <div class="col-lg-6"> <fieldset class="form-group"> <label class="form-label semibold" for="exampleInput">Address</label> <input type="text" name="address" class="form-control" id="exampleInput" value="<?php echo e(!empty($supplier) ? $supplier->address : ''); ?>"> </fieldset> </div> <div class="col-lg-6"> <fieldset class="form-group"> <label class="form-label semibold" for="exampleInputPassword1">GST Number</label> <input type="text" name="gst_number" class="form-control" id="exampleInput" value="<?php echo e(!empty($supplier) ? $supplier->gst_number : ''); ?>"> </fieldset> </div> <div class="col-lg-6"> <fieldset class="form-group"> <label class="form-label semibold" for="exampleInput">State</label> <select required class="form-control" name="state"> <?php $__currentLoopData = $states; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $state): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($state->id); ?>" <?php if($supplier->state_id == $state->id): ?> selected <?php endif; ?> ><?php echo e($state->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </fieldset> </div> <div class="col-lg-6"> <fieldset class="form-group"> <label class="form-label semibold" for="exampleInputPassword1">Bank Details</label> <textarea rows="5" name="bank_details" class="form-control"><?php echo e(!empty($supplier) ? $supplier->bank_details : ''); ?></textarea> </fieldset> </div> </div><!--.row--> <div class="row m-t"> <div class="col-lg-12"> <button type="submit" class="btn btn-inline btn-success p-x-3 p-y">Update Supplier </button> </div> </div> </form> </div><!--.box-typical--> </div> </div> <?php $__env->stopSection(); ?> <?php $__env->startSection('scripts'); ?> <script src="<?php echo e(asset('js/lib/bootstrap-select/bootstrap-select.min.js')); ?>"></script> <script src="<?php echo e(asset('js/lib/select2/select2.full.min.js')); ?>"></script> <script src="https://code.jquery.com/ui/1.11.1/jquery-ui.min.js"></script> <script type="text/javascript"> $(document).ready(function() { $('#state').on('change', function() { var state = $(this).val(); $('#city').val(''); jQuery.ajax({ url: "<?php echo e(url('/supplier/cities/')); ?>", method: 'get', data: { st: state }, success: function(result) { var data = JSON.parse(result); $('#cityname').empty(); for (i = 0; i < data.length; i++) { $('#cityname').append("<option value='" + data[i].city_name + "'>'" + data[i].city_name + "'</option>"); } } }); }); }) </script> <?php $__env->stopSection(); ?> <?php echo $__env->make('layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/forge/app.gftag.com/resources/views/supplier/edit.blade.php ENDPATH**/ ?>