Export excel, adjust anggaran
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
@php
|
||||
$siteBreadcumb = [
|
||||
["url"=>"/admin/MstJenisBelanja","label"=>$siteTitle],
|
||||
["url"=>"/admin/MstJenisBelanja","label"=>$sitesubTitle]
|
||||
];
|
||||
@endphp
|
||||
|
||||
@extends('layouts.empty')
|
||||
|
||||
@section('styles')
|
||||
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<a id="btnAdjustAnggaran" class="btn btn-sm btn-warning" href="javascript://">Penyesuian Anggaran Tahun Anggaran {{ getTA(); }}</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@section('scripts')
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
$("#btnAdjustAnggaran").on("click",function(){
|
||||
Swal.fire({
|
||||
title: 'Penyesuaian Anggaran akan di Proses?',
|
||||
showDenyButton: true,
|
||||
showCancelButton: false,
|
||||
confirmButtonText: 'Ya',
|
||||
denyButtonText: "Tidak",
|
||||
icon: "warning",
|
||||
}).then((result) => {
|
||||
if (result.isConfirmed) {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "{{ URL::to("/admin/Pengaturan/adjust-anggaran") }}",
|
||||
headers: {
|
||||
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
|
||||
},
|
||||
success: function(data){
|
||||
if (data.success == true)
|
||||
{
|
||||
Swal.fire(data.message, '', 'success');
|
||||
}else{
|
||||
Swal.fire(data.message, '', 'error');
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
})
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@endsection
|
||||
@stop
|
||||
Reference in New Issue
Block a user