ÿØÿà JFIF ÿá Exif MM * ÿÛ C
Server IP : 199.250.214.225 / Your IP : 3.16.81.217 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/allocation/ |
Upload File : |
@extends('layouts.layout') @section('pageTitle') Budget Allocation @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 Budget Details </h4> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <form class="form-horizontal" id="editBModal" name="editBModal" role="form" method="POST" action="{{url('allocation')}}"> {{ csrf_field() }} <div class="modal-body"> <div class="form-group" style="margin: 0 12px;"> <label class="control-label">Period</label> <input type="text" class="col-sm-9 form-control" id="period" name="period" readonly=""> </div> <div class="form-group" style="margin: 0 12px;"> <label class="control-label">Allocation source</label> <input type="text" class="col-sm-9 form-control" id="allocationType" name="allocationType" readonly=""> </div> <div class="form-group" style="margin: 0 12px;"> <label class="control-label">Economic Group</label> <input type="text" class="col-sm-9 form-control" id="economicGroup" name="economicGroup" readonly=""> </div> <div class="form-group" style="margin: 0 12px;"> <label class="control-label">Economic Head</label> <input type="text" class="col-sm-9 form-control" id="economicHead" name="economicHead" readonly=""> </div> <div class="form-group" style="margin: 0 12px;"> <label class="control-label">Economic Code</label> <input type="text" class="col-sm-9 form-control" id="economicCode" name="economicCode" readonly=""> </div> <div class="form-group" style="margin: 0 12px;"> <label class="control-label">Budget (₦)</label> <input type="text" class="col-sm-9 form-control" id="budget" name="budget" required=""> <input type="hidden" class="col-sm-9 form-control" id="B_id" name="B_id"> </div> <div class="modal-footer"> <button type="Submit" name="edit" class="btn btn-success">Save changes</button> <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button> </div> </form> </div> </form> </div> </div> </div> <div id="delModal" class="modal fade"> <div class="modal-dialog box box-default" role="document"> <div class="modal-content"> <div class="modal-header"> <h4 class="modal-title">Delete Budget</h4> </div> <form class="form-horizontal" id="editLgaModal" name="editLgaModal" role="form" method="POST" action="{{url('hydrological-data-report')}}"> {{ csrf_field() }} <div class="modal-body"> <div class="form-group" style="margin: 0 10px;"> <h4>Are you sure you want to delete this item?</h4> <input type="hidden" class="col-sm-9 form-control" id="conID" name="B_id"> <input type="hidden" class="col-sm-9 form-control" id="status" name="status"> </div> <div class="modal-footer"> <button type="Submit" name="delete" class="btn btn-success">Continue ?</button> <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button> </div> </form> </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">@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">×</button> <strong>{{$warning}}</strong> </div> @endif @if ($success<>'') <div class="alert alert-dismissible alert-success"> <button type="button" class="close" data-dismiss="alert">×</button> <strong>{{$success}}</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">×</span> </button> <strong>Error!</strong> @foreach ($errors->all() as $error) <p>{{ $error }}</p> @endforeach </div> @endif <form class="form-horizontal" role="form" id="thisform1" name="thisform1" method="post" action="{{url('allocation')}}"> {{ csrf_field() }} <div class="col-md-12 hidden-print"><!--2nd col--> <!-- /.row --> <div class="form-group"> <div class="col-md-2"> <label class="control-label">Period</label> <select name="period" class="form-control" onchange="ReloadForm()" required> <option Value="">Select Year</option> @for ($i = 2018; $i < 2035; $i++) <option value="{{ $i }}" {{ ($period) == $i ? "selected":"" }}>{{$i}}</option> @endfor </select> </div> <input type="hidden" id="allocationType" name="allocationType" value='5'> <!-- <div class="col-md-2"> <label class="control-label">Allocation Source</label> <select class="form-control" id="allocationType" name="allocationType" onchange="ReloadForm()" required=""> <option value="" > Choose One</option> @foreach($AllocationType as $list) <option value="{{$list->ID}}" {{ ($allocationType) == $list->ID? "selected":"" }}>{{$list->allocation}}</option> @endforeach </select> </div> --> <div class="col-md-2"> <label class="control-label">Economic Group</label> <select class="form-control" id="economicGroup" name="economicGroup" onchange="ReloadForm()" required=""> <option value="" >Choose One</option> @foreach($EconomicGroup as $list) <option value="{{$list->ID}}" {{ ($economicGroup) == $list->ID? "selected":"" }}>{{$list->contractType}}</option> @endforeach </select> </div> <div class="col-md-2"> <label class="control-label">Economic Head</label> <select class="form-control" id="economicHead" name="economicHead" onchange="ReloadForm()" required=""> <option value="" >Choose One</option> @foreach($EconomicHead as $list) <option value="{{$list->ID}}" {{ ($economicHead) == $list->ID? "selected":"" }}>{{$list->economicHead}}</option> @endforeach </select> </div> <div class="col-md-2"> <label class="control-label">Economic Code</label> <select class="form-control" id="economicCode" name="economicCode" required=""> <option value="" >Choose One</option> @foreach($EconomicCode as $list) <option value="{{$list->ID}}" {{ ($economicCode) == $list->ID? "selected":"" }}>{{$list->description}} - {{$list->economicCode}} </option> @endforeach </select> </div> <div class="col-md-2"> <label class="control-label">Budget (₦)</label> <input type="text" class="form-control" id="budget" name="budget" placeholder="" required=""> </div> <div class="col-md-2"> <br> <label class="control-label"></label> <button type="submit" class="btn btn-success" name="add"> <i class="fa fa-btn fa-floppy-o"></i> Add </button> </div> </div> </div> <!-- /.col --> </div> <!-- /.row --> </form> <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 > Allocation Source</th> <th > Economic Group</th> <th > Economic Head</th> <th > Economic Code</th> <!--<th > Period</th>--> <th > Budget(₦ )</th> <!-- <th > Created By</th> <th > Date</th>--> <th > Status</th> <th > Action</th> </tr> </thead> @php $i=1;@endphp @php $tb=0;@endphp @foreach ($budget as $con) @php $tb+=$con->allocationValue;@endphp <tr> <td>{{$i++}}</td> <td>{{$con->allocation}}</td> <td>{{$con->contractType}}</td> <td>{{$con->economicHead}}</td> <td>{{$con->description}} | {{$con->economicCode}}</td> <!--<td>{{$con->Period}}</td>--> <td><div style="text-align:right;">{{number_format($con->allocationValue,2)}}</div></td> <!--<td>{{$con->createdby}}</td> <td>{{$con->createdDate}}</td>--> <td> @php if($con->AllocationStatus == 1) { echo "<h4 class='btn-success'> Approved</h4>";} else if($con->AllocationStatus == 0) { echo "<h4 class='btn-warning'> Pending</h4>";} @endphp <td> <button type="button" class="btn btn-primary fa fa-edit" onclick="editfunc('{{$con->Period}}', '{{$con->allocation}}', '{{$con->contractType}}', '{{$con->description}}', '{{$con->allocationValue}}','{{$con->economicHead}}', '{{$con->b_id}}' )" class="" id=""> Edit</button> <button type="button" class="btn btn-danger fa fa-times" onclick="delfunc('{{$con->b_id}}','{{$con->AllocationStatus}}')"></button> </td> </tr> @endforeach <tr> <td colspan=5><div style="text-align:left;"><b>Total Budget for the period</b></div></td> <td><b>{{number_format($tb,2)}}</b></td> <td colspan=4></td> </tr> </table> <div > <div class="hidden-print">{{ $budget->links() }}</div> Showing {{($budget->currentpage()-1)*$budget->perpage()+1}} to {{$budget->currentpage()*$budget->perpage()}} of {{$budget->total()}} entries </div> </div> <hr /> </div> </div> </div> @endsection @section('styles') <style type="text/css"> .modal-dialog { width:15cm } .modal-header { background-color: #20b56d; color:#FFF; } </style> @endsection @section('scripts') <link rel="stylesheet" type="text/css" href="{{asset('assets/css/datepicker.min.css')}}"> <script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.6.4/js/bootstrap-datepicker.js"></script> <script src="{{asset('assets/js/jquery-ui.min.js')}}"></script> <script> function ReloadForm() { document.getElementById('thisform1').submit(); return; } function ReloadForm2() { document.getElementById('editBModal').submit(); return; } function editfunc(a,b,c,d,e,f,g) { $(document).ready(function(){ $('#period').val(a); $('#allocationType').val(b); $('#economicGroup').val(c); $('#economicCode').val(d); $('#budget').val(e); $('#economicHead').val(f); $('#B_id').val(g); $("#editModal").modal('show'); }); } function delfunc(a,b) { $(document).ready(function(){ $('#conID').val(a); $('#status').val(b); $("#delModal").modal('show'); }); } </script> @stop