One Hat Cyber Team
Your IP :
18.217.69.43
Server IP :
104.21.112.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
/
Edit File:
e1f99d0c4a7a4fdf6c77b14e597ae498.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')); ?>"> <link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css"> <style> table { table-layout: fixed; } .table-editable { padding: 1.5%; } .alert-message { color: #ee2a5c; font-style: italic; width: 100%; text-align: center; } </style> <?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">Add New Purchase Order</h3> </div> <div class="col-xs-4"> <a href="<?php echo e(route('purchaseorders')); ?>" 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('store-purchaseOrder')); ?>" method="post"> <?php echo csrf_field(); ?> <div class="row"> <div class="col-lg-6"> <fieldset class="form-group"> <label class="form-label semibold" for="exampleInput">PO Number</label> <input type="text" name="pono" class="form-control" id="exampleInput" value="<?php echo e($pono); ?>" readonly> </fieldset> </div> <div class="col-lg-6"> <fieldset class="form-group"> <label class="form-label semibold" for="exampleInputPassword1">Date</label> <div class='input-group date'> <input type="text" readonly id="podate" class="form-control" name="podate" value="<?php echo e(old('podate')); ?>"> <span class="input-group-addon"> <i class="font-icon font-icon-calend"></i> </span> </div> </fieldset> </div> <div class="col-lg-6"> <fieldset class="form-group"> <label class="form-label semibold" for="exampleInputPassword1">Supplier name</label> <select class="select2" name="supplier" id="supplier"> <option value="">---Select Supplier---</option> <?php $__currentLoopData = $suppliers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $supplier): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($supplier->id); ?>" <?php echo e(old('supplier') == $supplier->id ? 'selected' : ''); ?>><?php echo e($supplier->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> <div class="alert-message"></div> </fieldset> </div> <div class="col-lg-6"> <fieldset class="form-group"> <label class="form-label semibold" for="exampleInputPassword1">PO Group</label> <select class="select2" name="po_prefix" id="po_prefix"> <option value="">---Select Group---</option> <?php $__currentLoopData = $groups; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($key); ?>" <?php echo e(old('po_prefix') == $key ? 'selected' : ''); ?>><?php echo e($value); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> <div class="alert-message"></div> </fieldset> </div> <div class="col-lg-6"> <fieldset class="form-group"> <label class="form-label semibold" for="exampleInputPassword1">Narration and T&C</label> <div class='input-group date'> <textarea class="form-control" rows="5" name="po_description"><?php echo e(old('po_description')); ?></textarea> </div> </fieldset> </div> </div><!--.row--> <div class="row"> <div id="itemtable" class="table-editable"> <table class="table table-bordered table-responsive-md table-striped text-center"> <thead> <tr> <th class="text-center">Item Name</th> <th class="text-center">Price</th> <th class="text-center">Unit</th> <th class="text-center">Quantity</th> <th class="text-center">Remove</th> </tr> </thead> <tbody id="target-tbody"> <!-- --> </tbody> </table> <span class="table-add float-right mb-3 mr-2"> <a href="#!" class="text-success"><b>Add Row</b> <i class="fa fa-plus fa-1x fas" aria-hidden="true"></i> </a> </span> </div> </div><!--.row--> <div class="row m-t"> <div class="col-lg-12"> <button type="submit" name="add_supplier" class="btn btn-inline btn-success p-x-3 p-y">Submit </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> $(function() { $("#podate").datepicker({ dateFormat: "yy-mm-dd", minDate: 0 }); }); </script> <script type="text/javascript"> $(document).ready(function() { const $tableID = $('#itemtable'); const $BTN = $('#export-btn'); const $EXPORT = $('#export'); const newTr = '<tr><td class="pt-3-half"><div class="form-group"><select class="form-control" id="target-select" name=item_name[]></select></div></td><td class="pt-3-half" contenteditable=true><div class="form-group"><input class="form-control price" name=item_price[] type=text value=0></div></td><td class="pt-3-half" contenteditable=true><div class="form-group"><select name="item_unit[]" class="form-control unit" id="exampleInput"><option value="">--Select--</option><option value="piecs">Piece</option><option value="kg">Kg</option><option value="quintal">Quintal</option><option value="ton">Ton</option><option value="l">L</option></select></div></td><td class=pt-3-half contenteditable=true><div class=form-group><input class=form-control name=item_quantity[] type=text value=0></div></td><td><div class=form-group><span class=table-remove><button class="btn btn-danger"type=button>Remove</button></span></div></td></tr>'; $('.table-add').on('click', () => { if ($tableID.find('tbody tr').length === 0) { var supid = $('#supplier').val(); if (supid != "") { $('.alert-message').html(""); jQuery.ajax({ url: "<?php echo e(url('/item/supplier/')); ?>", method: 'get', data: { sid: supid }, success: function(result) { var data = JSON.parse(result); $('#target-tbody').append(newTr); for (i = 0; i < data.length; i++) { var pack_off = data[i].pack_of ? data[i].pack_of : '' ; $('#target-select').append("<option data-price="+ data[i].sale_rate + " data-unit=" + data[i].unit + " value=" + data[i].id + ">" + data[i].name + pack_off + "</option>"); } } }); } else { $('.alert-message').html("Select a supplier first"); } } else { const $clone = $tableID.find('tbody tr').last().clone(true).removeClass('hide table-line'); $tableID.find('table').append($clone); } }); $tableID.on('click', '.table-remove', function() { $(this).parents('tr').detach(); }); $('#supplier').on('change', function() { $('.alert-message').html(""); $("#target-tbody").empty(); }); $('body').on('change', '#target-select', function() { var price = $(this).find(':selected').data('price'); $(this).parent().parent().parent().find(".price").val(price); var unit = $(this).find(':selected').data('unit'); $(this).parent().parent().parent().find(".unit").val(unit); }); }); </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/purchaseorder/create.blade.php ENDPATH**/ ?>
Simpan