One Hat Cyber Team
Your IP :
18.218.189.170
Server IP :
104.21.96.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 :
906c084d93457c71698df0e53a54d90b.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"> <script type="text/javascript" src="//cdn.jsdelivr.net/jquery/1/jquery.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/js/toastr.min.js"></script> <link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/css/toastr.min.css"> <style> </style> <?php $__env->stopSection(); ?> <?php $__env->startSection('content'); ?> <div class="page-content"> <div class="container-fluid"> <?php if(session()->has('messageerror')): ?> <div class = "alert alert-danger alert-fill alert-close alert-dismissible fade in"> <strong><?php echo e(session()->get('messageerror')); ?></strong> </div> <?php endif; ?> <?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="col-lg-6 p-t"> <h3 class="p-l">Receive Intransit</h3> </div> </div> </section> <div class="box-typical box-typical-padding"> <form action="<?php echo e(route('update-transit')); ?>" method="post"> <?php echo csrf_field(); ?> <div class="row"> <div class="col-lg-12"> <div id="itemtable" class="table-editable"> <table class="table table-bordered table-responsive-md table-striped text-center"> <thead> <tr> <th class="text-center">P.O. No</th> <th class="text-center">Item Name</th> <th class="text-center">From</th> <th class="text-center">Transit Stock</th> <th class="text-center">Received</th> <th class="text-center">Received Stock</th> <th class="text-center">Negetive Stock</th> <th class="text-center">Received Date</th> <th class="text-center">Comment</th> </tr> </thead> <tbody id="target-tbody"> <tr> <td><?php echo e($transit->purchaseOrder->po_id); ?></td> <td><?php echo e($transit->item->name); ?></td> <td><?php echo e($transit->purchaseOrder->supplier->name); ?></td> <td><?php echo e($transit->quantity); ?></td> <td class="pt-3-half" hidden> <div class="form-group"> <input class="form-control transitidinput" type="text" name="transitid" value='<?php echo e($transit->id); ?>' disabled> <input class="form-control transitidinput" type="text" name="itemid" value='<?php echo e($transit->item_id); ?>' disabled> </div> </td> <td class="pt-3-half"> <div class="form-group"> <input class="form-control receivedchkbox" type="checkbox" name="received_yesno" value="receive"> </div> </td> <td class="pt-3-half"> <div class="form-group"> <input class="form-control receivedstock" type="text" name="received_stock" disabled> <input class="form-control" type="hidden" name="supplierid" value='<?php echo e($transit->purchaseOrder->supplier->name); ?>'> </div> </td> <td class="pt-3-half"> <div class="form-group"> <input class="form-control negativestock" type="text" name="negative_stock" value="0" readonly> </div> </td> <td class="pt-3-half"> <div class="form-group"> <input class="form-control receiveddate" readonly type="text" name="received_date" disabled required="required"> </div> </td> <td class="pt-3-half"> <div class="form-group"> <input class="form-control comment" type="text" name="comment" disabled> </div> </td> </tr> </tbody> </table> </div> </div> </div><!--.row--> <div class="row m-t"> <div class="col-lg-12"> <button type="submit" name="add_received_stock" 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> $(document).ready(function(){ const $tableID = $('#itemtable'); $tableID.on('change', '.receivedchkbox', function () { var checked = $(this).is(":checked"); let tr = $(this).closest('tr'); if(checked == true){ tr.find('input.receivedstock').prop('disabled',false); // tr.find('input.negativestock').prop('disabled',false); tr.find('input.receiveddate').prop('disabled',false); tr.find('input.comment').prop('disabled',false); tr.find('input.transitidinput').prop('disabled',false); transitstk=tr.find("td:eq(3)").text(); tr.find('input.receivedstock').val(transitstk); tr.find('input.comment').val("All Items Received"); }else{ tr.find('input.receivedstock').prop('disabled',true); tr.find('input.negativestock').prop('disabled',true); tr.find('input.receiveddate').prop('disabled',true); tr.find('input.comment').prop('disabled',true); tr.find('input.transitidinput').prop('disabled',true); tr.find('input.receivedstock').val(""); tr.find('input.negativestock').val(""); tr.find('input.receiveddate').val(""); tr.find('input.comment').val(""); } }); $tableID.on('change', '.receivedstock', function () { let tr = $(this).closest('tr'); transitstk=parseInt(tr.find("td:eq(3)").text()); receivedstk=parseInt($(this).val()); if(receivedstk>=transitstk){ $(this).val(transitstk); toastr.error('Received stock cannot be more than transit stock','Error', {timeOut: 4000}); } else{ negativestk = transitstk - receivedstk; tr.find('input.negativestock').attr('value', negativestk); tr.find('input.comment').val("Partially received due to "); toastr.info('Negative stock will be recorded so please provide a proper comment','Information', {timeOut: 8000}); } }); }); </script> <script> $( function() { $( ".receiveddate" ).datepicker({ dateFormat: "yy-mm-dd", minDate: 0 }); }); </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/intransit/accept.blade.php ENDPATH**/ ?>