fix
This commit is contained in:
@@ -3693,5 +3693,179 @@ class KhazanahController extends Controller
|
||||
'Content-Disposition' => 'inline; filename='.$download['filename']
|
||||
]);
|
||||
}
|
||||
|
||||
public function JanaPermohonan(Request $request){
|
||||
$auth_user = Auth::user();
|
||||
$api_url = config('api.url');
|
||||
|
||||
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
||||
$cawangan = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url').'/api/cawangan/detail/'.$auth_user['cawangan'])->json();
|
||||
$cawangan_detail = $cawangan[0];
|
||||
|
||||
$permohonan = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url').'/admin/permohonan/get/'.$auth_user['cawangan'] . '/' . $request->mohonid)->json();
|
||||
$permohonan = $permohonan[0];
|
||||
$caw = CawanganAR::where('kodcaw',$auth_user['cawangan'])->get()->toArray();
|
||||
$jeniscawangan = $caw[0]['syarikat'];
|
||||
|
||||
$current = Carbon::now();
|
||||
$tarikh_cetak = $current->toDateString();
|
||||
|
||||
$ahli = '';
|
||||
$fullname = '';
|
||||
switch($jeniscawangan){
|
||||
case 'PKB' : $fullname = 'PERMODALAN KELANTAN BERHAD';
|
||||
break;
|
||||
case 'SYIRKAH' : $fullname = 'JOINT VENTURE PKB AND KRKB';
|
||||
break;
|
||||
case 'KPKB' : $fullname = 'JOINT VENTURE PKB AND KPKB';
|
||||
break;
|
||||
case 'BMMB' : $fullname = 'JOINT VENTURE MVSB AND PKB';
|
||||
$ahli = 'Ahli JMC';
|
||||
break;
|
||||
}
|
||||
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $tarikh_cetak);
|
||||
$tarikhcetakan = $myDateTime->format('d-m-Y');
|
||||
|
||||
|
||||
$ringgittext = '';
|
||||
if($permohonan['jumlah_diluluskan'] !== null)
|
||||
{
|
||||
|
||||
$decones = array(
|
||||
'01' => "Satu",
|
||||
'02' => "Dua",
|
||||
'03' => "Tiga",
|
||||
'04' => "Empat",
|
||||
'05' => "Lima",
|
||||
'06' => "Enam",
|
||||
'07' => "Tujuh",
|
||||
'08' => "Lapan",
|
||||
'09' => "Sembilan",
|
||||
10 => "Sepuluh",
|
||||
11 => "Sebelas",
|
||||
12 => "Dua Belas",
|
||||
13 => "Tiga Belas",
|
||||
14 => "Empat Belas",
|
||||
15 => "Lima Belas",
|
||||
16 => "Enam Belas",
|
||||
17 => "Tujuh Belas",
|
||||
18 => "Lapan Belas",
|
||||
19 => "Sembilan Belas"
|
||||
);
|
||||
$ones = array(
|
||||
0 => " ",
|
||||
1 => "Satu",
|
||||
2 => "Dua",
|
||||
3 => "Tiga",
|
||||
4 => "Empat",
|
||||
5 => "Lima",
|
||||
6 => "Enam",
|
||||
7 => "Tujuh",
|
||||
8 => "Lapan",
|
||||
9 => "Sembilan",
|
||||
10 => "Sepuluh",
|
||||
11 => "Sebelas",
|
||||
12 => "Dua Belas",
|
||||
13 => "Tiga Belas",
|
||||
14 => "Empat Belas",
|
||||
15 => "Lima Belas",
|
||||
16 => "Enam Belas",
|
||||
17 => "Tujuh Belas",
|
||||
18 => "Lapan Belas",
|
||||
19 => "Sembilan Belas"
|
||||
);
|
||||
$tens = array(
|
||||
0 => "",
|
||||
2 => "Dua Puluh",
|
||||
3 => "Tiga Puluh",
|
||||
4 => "Empat Puluh",
|
||||
5 => "Lima Puluh",
|
||||
6 => "Enam Puluh",
|
||||
7 => "Tujuh Puluh",
|
||||
8 => "Lapan Puluh",
|
||||
9 => "Sembilan Puluh"
|
||||
);
|
||||
$hundreds = array(
|
||||
"Ratus",
|
||||
"Ribu",
|
||||
"Juta",
|
||||
"bilion",
|
||||
"trilion"
|
||||
); //limit t quadrillion
|
||||
|
||||
$num = number_format($permohonan['jumlah_diluluskan'],2,".",",");
|
||||
// dd($num);
|
||||
$num_arr = explode(".",$num);
|
||||
$wholenum = $num_arr[0];
|
||||
$decnum = $num_arr[1];
|
||||
$whole_arr = array_reverse(explode(",",$wholenum));
|
||||
krsort($whole_arr);
|
||||
$ringgittext = "";
|
||||
|
||||
|
||||
|
||||
foreach($whole_arr as $key => $i){
|
||||
if($i > 0 && $i < 20){
|
||||
$ringgittext .= $ones[$i];
|
||||
}
|
||||
elseif($i < 100){
|
||||
$ringgittext .= $tens[substr($i,0,1)];
|
||||
$ringgittext .= " ".$ones[substr($i,1,1)];
|
||||
}
|
||||
else{
|
||||
$ringgittext .= $ones[substr($i,0,1)]." ".$hundreds[0];
|
||||
$ringgittext .= " ".$tens[substr($i,1,1)];
|
||||
$ringgittext .= " ".$ones[substr($i,2,1)];
|
||||
}
|
||||
if($key > 0){
|
||||
$ringgittext .= " ".$hundreds[$key]." ";
|
||||
}
|
||||
}
|
||||
|
||||
$text = preg_replace('/\s+/', ' ', $ringgittext);
|
||||
$trimmed_str = rtrim($text);
|
||||
|
||||
$ringgittext = $trimmed_str." Ringgit";
|
||||
|
||||
if($decnum > 0){
|
||||
$ringgittext .= " dan ";
|
||||
if($decnum < 20){
|
||||
$ringgittext .= $decones[$decnum];
|
||||
}
|
||||
elseif($decnum < 100){
|
||||
$ringgittext .= $tens[substr($decnum,0,1)];
|
||||
$ringgittext .= " ".$ones[substr($decnum,1,1)];
|
||||
}
|
||||
$ringgittext = $ringgittext." sen";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
return view('print.jana_permohonan', compact('cawangan_detail','api_url','permohonan','jeniscawangan','fullname','tarikhcetakan','ringgittext'));
|
||||
}
|
||||
|
||||
public function ProsesPermohonan(Request $request)
|
||||
{
|
||||
$imageName = 'JanaanPC_' .time().'.'.$request->image->extension();
|
||||
$data = base64_encode($request->image->get());
|
||||
|
||||
$updatelulus = Http::accept('application/'.$request->image->extension())->post(config('api.url') . '/admin/permohonan/updatejanapc',[
|
||||
'status' => $request->status,
|
||||
'dataimage' => $data,
|
||||
'imagename' => $imageName,
|
||||
'imagetype' => $request->image->extension(),
|
||||
'mohonid' => $request->mohonid
|
||||
])->json();
|
||||
|
||||
|
||||
if($updatelulus)
|
||||
{
|
||||
return response('success');
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -56,7 +56,7 @@
|
||||
|
||||
<div class="d-flex justify-content-between">
|
||||
<div>
|
||||
<span class="col-5 font-weight-bold">HARIAN</span>
|
||||
<span class="col-5 font-weight-bold text-left">HARIAN</span>
|
||||
<span class="col-1">:</span>
|
||||
<span id="penbharian" class="col-5"></span>
|
||||
</div>
|
||||
|
||||
@@ -78,7 +78,15 @@
|
||||
echo '<button data-mohonid="' . $mohon["nopermohonan"] . '" id="btncit" class="btn btn-secondary" data-toggle="modal" data-backdrop="static" data-keyboard="false" data-target="#CITModal">CIT</button>';
|
||||
}
|
||||
else{
|
||||
echo '<span class="p-2 badge badge-info">DALAM PROSES</span>';
|
||||
if($mohon['tagjanapc'] == 0)
|
||||
{
|
||||
echo '<button class="btn btn-info" data-mohonid="' . $mohon["nopermohonan"] . '" onclick="janasurat(this)">JANA SURAT</button>';
|
||||
}else if($mohon['tagjanapc'] == 1)
|
||||
{
|
||||
echo '<button class="btn btn-info" data-mohonid="' . $mohon["nopermohonan"] . '" onclick="muatnaiksurat(this)">MUAT NAIK</button>';
|
||||
}else{
|
||||
echo '<span class="p-2 badge badge-info">DALAM PROSES</span>';
|
||||
}
|
||||
}
|
||||
@endphp
|
||||
|
||||
@@ -392,5 +400,73 @@
|
||||
|
||||
}
|
||||
|
||||
function janasurat(e){
|
||||
|
||||
let mid = $(e).data("mohonid");
|
||||
console.log(mid);
|
||||
$.ajax({
|
||||
method: 'put',
|
||||
url: api_url + '/admin/permohonan/updatejanapc',
|
||||
data: {
|
||||
"_token": "{{ csrf_token() }}",
|
||||
'status' : 'jana',
|
||||
'mohonid' : mid,
|
||||
},
|
||||
success:function(data){
|
||||
window.open("{{ route('permohonan.jana')}}" + "/?mohonid=" + mid);
|
||||
location.reload();
|
||||
|
||||
}
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
function muatnaiksurat(e){
|
||||
let mid = $(e).data("mohonid");
|
||||
|
||||
Swal.fire({
|
||||
title: 'Muat Naik Fail Permohonan',
|
||||
showCancelButton: true,
|
||||
confirmButtonText: 'Upload',
|
||||
input: 'file',
|
||||
allowOutsideClick: false,
|
||||
willOpen: () => {
|
||||
$(".swal2-file").change(function () {
|
||||
var reader = new FileReader();
|
||||
reader.readAsDataURL(this.files[0]);
|
||||
});
|
||||
}
|
||||
}).then((file) => {
|
||||
if (file.value) {
|
||||
var formData = new FormData();
|
||||
var file = $('.swal2-file')[0].files[0];
|
||||
formData.append("mohonid", mid);
|
||||
formData.append("image", file);
|
||||
formData.append("status", 'proses');
|
||||
|
||||
$.ajax({
|
||||
method: 'post',
|
||||
url: "{{ route('permohonan.proses') }}",
|
||||
data: formData,
|
||||
cache: false,
|
||||
contentType: false,
|
||||
processData: false,
|
||||
headers: {'X-CSRF-TOKEN': '{{ csrf_token() }}'},
|
||||
success:function(response){
|
||||
|
||||
if(response == 'success')
|
||||
{
|
||||
window.open("{{ route('permohonan.jana')}}");
|
||||
location.reload();
|
||||
}
|
||||
|
||||
}
|
||||
})
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
</script>
|
||||
@endsection
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
@csrf
|
||||
<div class="modal-body">
|
||||
<div class="text-center mx-auto mb-4">
|
||||
<input type="radio" name="radwang" id="radwang" value="permohonanwang"/><label class="ml-2" for="permohonanwang">Permohonan Wang</label>
|
||||
<input type="radio" name="radwang" id="radwang" value="permohonanwang" checked/><label class="ml-2" for="permohonanwang">Permohonan Wang</label>
|
||||
<input type="radio" name="radwang" id="radwang" value="bayaranbalik" class="ml-3"/><label class="ml-2" for="bayaranbalik">Bayaran Balik</label>
|
||||
<div id="pilihper" class="invalid-feedback">*Pilih Jenis Permohonan</div>
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,408 @@
|
||||
<!doctype html>
|
||||
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<!-- CSRF Token -->
|
||||
<meta name="csrf-token" content="{{ csrf_token() }}">
|
||||
|
||||
<title>Pengeluaran Cetakan Pengurus Besar</title>
|
||||
|
||||
<link rel="icon" type="image/x-icon" href="{{ asset('img/icon_pkb.png') }}" />
|
||||
|
||||
|
||||
<link href="{{ asset('css/all.min.css') }}" rel="stylesheet">
|
||||
|
||||
<!-- Scripts -->
|
||||
<script src="{{ asset('js/app.js') }}" defer></script>
|
||||
|
||||
<!-- Fonts -->
|
||||
<link rel="dns-prefetch" href="//fonts.gstatic.com">
|
||||
<link href="https://fonts.googleapis.com/css?family=Nunito" rel="stylesheet">
|
||||
|
||||
<!-- Styles -->
|
||||
<link href="{{ asset('css/app.css') }}" rel="stylesheet">
|
||||
|
||||
</head>
|
||||
<body class="p-2">
|
||||
|
||||
<div class="mb-10">
|
||||
<div class="col-12 flex justify-end items-end text-right">
|
||||
|
||||
<div class="ml-2">
|
||||
<b>{{ $fullname }}</b><br>
|
||||
<span style="font-size:12px;"><b>{{ $cawangan_detail['namacaw'] }}</b></span><br>
|
||||
<span style="font-size:12px;">{{ $cawangan_detail['alamat1'] }}</span><br>
|
||||
<span style="font-size:12px;">{{ $cawangan_detail['alamat2'] }}</span><br>
|
||||
<span style="font-size:12px;">No Tel : {{ $cawangan_detail['notel'] }}</span><br>
|
||||
<span style="font-size:12px;">No Faks : {{ $cawangan_detail['nofaks'] }}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="d-flex mb-6 col-12">
|
||||
<div class="ml-2 col-6 d-flex flex-column justify-end">
|
||||
<b class="text-xs border border-dark pl-1">Kepada</b>
|
||||
<p class="text-xs border border-gray-400">
|
||||
@php
|
||||
if($jeniscawangan === 'BMMB')
|
||||
{
|
||||
echo 'AHLI ' . $fullname;
|
||||
}else{
|
||||
echo 'Pengurus Besar Kumpulan PKB';
|
||||
}
|
||||
@endphp
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="ml-2 col-6 d-flex flex-column">
|
||||
<b class="text-xs border border-dark pl-1 justify-end">No Permohonan</b>
|
||||
<p class="text-xs border border-gray-400 text-right">{{ $permohonan['nopermohonan'] }}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="d-flex col-12 mb-1">
|
||||
<div class="ml-2 col-6 d-flex flex-column justify-end">
|
||||
<b class="text-xs border border-dark pl-1">Daripada</b>
|
||||
<span class="text-xs">{{ ($permohonan['jawatan_pemohon'] == 'pc') ? 'Pengurus Cawangan' : 'Pen. Peng. Cawangan' }} {{ $cawangan_detail['namacaw'] }}</span>
|
||||
{{-- <span class="text-xs">Nama : {{ $permohonan['nama_pemohon'] }}</span> --}}
|
||||
{{-- <p class="text-xs">NO KP : 970403-03-5003</p> --}}
|
||||
|
||||
</div>
|
||||
|
||||
<div class="ml-2 col-6 d-flex flex-column">
|
||||
<b class="text-xs border border-dark pl-1">Tarikh</b>
|
||||
<span class="text-xs col-12 text-right">{{ $tarikhcetakan }}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-12 mb-6">
|
||||
<div class="col-12 d-flex justify-content-center border border-dark">
|
||||
|
||||
<b>PENYEDIAAN PERMOHONAN</b>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="d-flex mb-6 col-12">
|
||||
<div class="ml-2 col-6 d-flex flex-column justify-end">
|
||||
<b class="text-xs border border-dark pl-1">Disediakan oleh</b>
|
||||
<p class="h-14"></p>
|
||||
<div class="flex">
|
||||
{{-- <div class="w-2/3"></div> --}}
|
||||
<p class="text-xs w-full text-right italic text-black">{{ $permohonan['nama_pemohon'] }}</p>
|
||||
</div>
|
||||
<div class="flex">
|
||||
<div class="w-2/3"></div>
|
||||
<div class="text-right border-t border-gray-300 w-1/3"></div>
|
||||
</div>
|
||||
<div class="flex">
|
||||
<div class="w-2/3"></div>
|
||||
<p class="text-xs w-2/3 text-right">{{ ($permohonan['jawatan_pemohon'] == 'pc') ? 'Pengurus Cawangan' : 'Pen. Peng. Cawangan' }}</p>
|
||||
</div>
|
||||
<div class="d-flex col-6">
|
||||
<p class="text-xs text-center col-10">Tarikh</p>
|
||||
<p class="text-xs col-4 border border-gray-400 text-right">
|
||||
@php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $permohonan['tarikh_permohonan']);
|
||||
$formattedweddingdate = $myDateTime->format('d-m-Y');
|
||||
echo($formattedweddingdate)
|
||||
@endphp
|
||||
</p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
{{-- <div class="ml-2 col-6 flex flex-col">
|
||||
<b class="text-xs border border-dark pl-1">Disahkan oleh</b>
|
||||
|
||||
<p class="h-14"></p>
|
||||
<div class="flex">
|
||||
|
||||
<p class="text-xs w-full text-right italic">{{ $permohonan['nama_operasi'] }}</p>
|
||||
</div>
|
||||
<div class="flex">
|
||||
<div class="w-2/3"></div>
|
||||
<div class="text-right border-t border-gray-300 w-1/3"></div>
|
||||
</div>
|
||||
<div class="flex">
|
||||
<div class="w-2/3"></div>
|
||||
<p class="text-xs w-2/3 text-right">Pengurus Operasi Ar-Rahn</p>
|
||||
</div>
|
||||
<div class="flex">
|
||||
<p class="text-xs text-center w-2/3">Tarikh</p>
|
||||
<p class="text-xs w-1/3 border border-gray-400 text-right">
|
||||
@php
|
||||
if($permohonan['tarikh_pengesahanoperasi'] !== null)
|
||||
{
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $permohonan['tarikh_pengesahanoperasi']);
|
||||
$formattedweddingdate = $myDateTime->format('d-m-Y');
|
||||
echo($formattedweddingdate);
|
||||
}
|
||||
@endphp
|
||||
</p>
|
||||
</div>
|
||||
|
||||
</div> --}}
|
||||
</div>
|
||||
|
||||
|
||||
{{-- <div class="w-full text-center border border-black pl-1">
|
||||
<b class="text-xs">@php if($jeniscawangan === 'PKB')
|
||||
{
|
||||
echo 'KELULUSAN ' . $fullname;
|
||||
}else{
|
||||
echo 'KELULUSAN AHLI ' . $fullname;
|
||||
}
|
||||
@endphp
|
||||
</b>
|
||||
</div> --}}
|
||||
|
||||
<div class="col-12 mb-6">
|
||||
<div class="col-12 d-flex justify-content-center border border-dark">
|
||||
|
||||
<b>PERMOHONAN PENDAHULUAN / SERAHAN WANG PETI BESI</b>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="d-flex mb-6 col-12">
|
||||
<div class="ml-2 col-6 d-flex flex-column justify-end">
|
||||
<b class="text-xs border border-dark pl-1">PERMOHONAN PENDAHULUAN WANG PETI BESI</b>
|
||||
@if($permohonan['jenismohon'] === 'permohonanwang')
|
||||
<div class="d-flex">
|
||||
<p class="col-6">Jumlah dipohon</p>
|
||||
<p class="text-xs col-6 border border-gray-400 text-right">RM {{ number_format($permohonan['amaun_mohon'],2) }}</p>
|
||||
</div>
|
||||
<div class="d-flex">
|
||||
<p class="text-xs col-6">Tarikh mohon</p>
|
||||
<p class="text-xs col-6 border border-gray-400 text-right">
|
||||
@php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $permohonan['tarikh_permohonan']);
|
||||
$formattedweddingdate = $myDateTime->format('d-m-Y');
|
||||
echo($formattedweddingdate)
|
||||
@endphp
|
||||
</p>
|
||||
</div>
|
||||
<div class="d-flex">
|
||||
<p class="text-xs col-6">Baki Peti Besi</p>
|
||||
<p class="text-xs col-6 border border-gray-400 text-right">
|
||||
RM {{ number_format($permohonan['baki_petibesi'],2) }}
|
||||
</p>
|
||||
</div>
|
||||
@else
|
||||
<div class="d-flex">
|
||||
<p class="text-xs w-full">Jumlah dipohon</p>
|
||||
<p class="text-xs col-6 border border-gray-400 text-right"></p>
|
||||
</div>
|
||||
<div class="d-flex">
|
||||
<p class="text-xs w-full">Tarikh mohon</p>
|
||||
<p class="text-xs col-6 border border-gray-400 text-right">
|
||||
|
||||
</p>
|
||||
</div>
|
||||
<div class="d-flex">
|
||||
<p class="text-xs w-full">Baki Peti Besi</p>
|
||||
<p class="text-xs col-6 border border-gray-400 text-right">
|
||||
|
||||
</p>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<div class="ml-2 col-6 d-flex flex-column">
|
||||
<b class="text-xs border border-dark pl-1 justify-end">SERAHAN WANG PETI BESI</b>
|
||||
@if($permohonan['jenismohon'] === 'permohonanwang')
|
||||
<div class="flex">
|
||||
<p class="text-xs w-full">Bayar balik pinjaman</p>
|
||||
<p class="text-xs w-2/3 border border-gray-400"></p>
|
||||
</div>
|
||||
<div class="flex">
|
||||
<p class="text-xs w-full">Tarikh bank-in ke PKB</p>
|
||||
<p class="text-xs w-2/3 border border-gray-400"></p>
|
||||
</div>
|
||||
<div class="flex">
|
||||
<p class="text-xs w-full">Baki Peti Besi</p>
|
||||
<p class="text-xs w-2/3 border border-gray-400"></p>
|
||||
</div>
|
||||
@else
|
||||
<div class="flex">
|
||||
<p class="text-xs w-full">Bayar balik pinjaman</p>
|
||||
<p class="text-xs w-2/3 border border-gray-400 text-right">{{ number_format($permohonan['amaun_mohon'],2) }}</p>
|
||||
</div>
|
||||
<div class="flex">
|
||||
<p class="text-xs w-full">Tarikh bank-in ke PKB</p>
|
||||
<p class="text-xs w-2/3 border border-gray-400 text-right">
|
||||
@php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $permohonan['tarikh_permohonan']);
|
||||
$formattedweddingdate = $myDateTime->format('d-m-Y');
|
||||
echo($formattedweddingdate)
|
||||
@endphp
|
||||
</p>
|
||||
</div>
|
||||
<div class="flex">
|
||||
<p class="text-xs w-full">Baki Peti Besi</p>
|
||||
<p class="text-xs w-2/3 border border-gray-400 text-right">{{ number_format($permohonan['baki_petibesi'],2) }}</p>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="flex">
|
||||
<p class="text-xs mt-5 w-2/4">Diluluskan pengeluaran wang kepada Ar-Rahn sebanyak RM</p>
|
||||
<p class="text-xs mt-5 w-1/3">{{ ($permohonan['jumlah_diluluskan'] !== null) ? number_format($permohonan['jumlah_diluluskan'],2) : '' }} </p>
|
||||
</div>
|
||||
|
||||
<div class="flex">
|
||||
<p class="text-xs w-2/3">{{ ($ringgittext !== '') ? '(Ringgit Malaysia:' . $ringgittext . ' Sahaja)' : '' }}</p>
|
||||
</div>
|
||||
|
||||
<div class="d-flex mb-6 col-12">
|
||||
<div class="ml-2 col-6 flex flex-col justify-end">
|
||||
<p class="h-20"></p>
|
||||
<div class="flex">
|
||||
<div class="w-2/3"></div>
|
||||
<div class="text-right border-t border-gray-300 w-1/3"></div>
|
||||
</div>
|
||||
<div class="flex">
|
||||
<div class="w-2/3"></div>
|
||||
<p class="text-xs w-2/3 text-right">Ketua Kewangan & Akaun</p>
|
||||
</div>
|
||||
<div class="flex">
|
||||
<p class="text-xs text-center w-2/3">Tarikh</p>
|
||||
<p class="text-xs w-1/3 border border-gray-400 text-right">
|
||||
@php
|
||||
if($permohonan['tarikh_pengesahanakaun'] !== null)
|
||||
{
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $permohonan['tarikh_pengesahanakaun']);
|
||||
$formattedweddingdate = $myDateTime->format('d-m-Y');
|
||||
echo($formattedweddingdate);
|
||||
}
|
||||
|
||||
@endphp
|
||||
</p>
|
||||
</div>
|
||||
{{-- <p class="text-xs">NO KP : 970403-03-5003</p> --}}
|
||||
|
||||
</div>
|
||||
|
||||
<div class="ml-2 col-6 flex flex-col">
|
||||
|
||||
<p class="h-20"></p>
|
||||
<div class="flex">
|
||||
<div class="w-2/3"></div>
|
||||
<div class="text-right border-t border-gray-300 w-1/3"></div>
|
||||
</div>
|
||||
<div class="flex">
|
||||
<div class="w-2/3"></div>
|
||||
<p class="text-xs w-2/3 text-right">
|
||||
@php if($jeniscawangan === 'BMMB')
|
||||
{
|
||||
echo 'Ahli JMC';
|
||||
}else{
|
||||
echo 'Pengurus Besar';
|
||||
}
|
||||
@endphp
|
||||
</p>
|
||||
</div>
|
||||
<div class="flex">
|
||||
<p class="text-xs text-center w-2/3">Tarikh</p>
|
||||
<p class="text-xs w-1/3 border border-gray-400 text-right">
|
||||
@php
|
||||
if($permohonan['tarikh_diluluskan'] !== null)
|
||||
{
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $permohonan['tarikh_diluluskan']);
|
||||
$formattedweddingdate = $myDateTime->format('d-m-Y');
|
||||
echo($formattedweddingdate);
|
||||
}
|
||||
@endphp
|
||||
</p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="d-flex mb-6 col-12">
|
||||
<div class="ml-2 col-6 flex flex-col justify-end">
|
||||
<b class="text-xs border border-black pl-1 text-center">PENERIMA WANG</b>
|
||||
<b class="text-xs border border-black pl-1 text-center">Wakil Ar-Rahn</b>
|
||||
<div class="flex">
|
||||
<p class="text-xs w-full">Pengesahan penerima wang oleh</p>
|
||||
<p class="text-xs w-2/3 border border-gray-400 text-right">
|
||||
|
||||
{{ ($permohonan['nama_penerima'] !== null) ? $permohonan['nama_penerima'] : '' }}
|
||||
|
||||
</p>
|
||||
</div>
|
||||
<div class="flex">
|
||||
<p class="text-xs w-full">Tarikh serahan</p>
|
||||
<p class="text-xs w-2/3 border border-gray-400 text-right">
|
||||
@php
|
||||
|
||||
if($permohonan['tarikh_terima'] !== null)
|
||||
{
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $permohonan['tarikh_terima']);
|
||||
$formattedweddingdate = $myDateTime->format('d-m-Y');
|
||||
echo($formattedweddingdate);
|
||||
}
|
||||
@endphp
|
||||
</p>
|
||||
</div>
|
||||
<div class="flex">
|
||||
<p class="text-xs w-full">Baki Peti Besi</p>
|
||||
<p class="text-xs w-2/3 border border-gray-400 text-right">
|
||||
@php
|
||||
$jumlah = 0;
|
||||
if($permohonan['jumlah_diluluskan'] !== null)
|
||||
{
|
||||
$jumlah = floatval($permohonan['baki_petibesi']) + floatval($permohonan['jumlah_diluluskan']);
|
||||
echo 'RM ' . number_format($jumlah,2);
|
||||
}
|
||||
@endphp
|
||||
</p>
|
||||
</div>
|
||||
|
||||
{{-- <p class="text-xs">NO KP : 970403-03-5003</p> --}}
|
||||
|
||||
</div>
|
||||
|
||||
<div class="ml-2 col-6 flex flex-col">
|
||||
<b class="text-xs border border-black pl-1 text-center">Bahagian Kewangan & Akaun PKB</b>
|
||||
<div class="flex">
|
||||
<p class="text-xs w-full">Bank</p>
|
||||
<p class="text-xs w-2/3 border border-gray-400 text-right"></p>
|
||||
</div>
|
||||
<div class="flex">
|
||||
<p class="text-xs w-full">No. Rujukan</p>
|
||||
<p class="text-xs w-2/3 border border-gray-400 text-right"></p>
|
||||
</div>
|
||||
<div class="flex">
|
||||
<p class="text-xs w-full">Tarikh kemasukan</p>
|
||||
<p class="text-xs w-2/3 border border-gray-400 text-right">
|
||||
@php
|
||||
|
||||
if($permohonan['tarikh_terima'] !== null)
|
||||
{
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $permohonan['tarikh_terima']);
|
||||
$formattedweddingdate = $myDateTime->format('d-m-Y');
|
||||
echo($formattedweddingdate);
|
||||
}
|
||||
|
||||
@endphp
|
||||
</p>
|
||||
</div>
|
||||
<div class="flex">
|
||||
<p class="text-xs w-full">Pengesahan oleh</p>
|
||||
<p class="text-xs w-2/3 border border-gray-400 text-right">
|
||||
{{ $permohonan['nama_akaun'] }}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
// window.print();
|
||||
// window.onfocus=function(){ window.close();}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -319,6 +319,8 @@ route::post('/cetaklejer_am',['as'=>'cetak.lejer_am', 'uses'=>'KhazanahControlle
|
||||
Route::get('laporan/dataimbangduga',['as'=> 'laporan.imbangduga' , 'uses'=>'KhazanahController@laporanImbangduga' ])->middleware('auth','khazanah');
|
||||
Route::post('/laporan/imbangduga',['as' =>'imbangduga.cetak', 'uses'=>'KhazanahController@cetakImbangDuga'])->middleware('auth', 'khazanah');
|
||||
|
||||
Route::get('khazanah/jana_permohonan',['as'=> 'permohonan.jana' , 'uses'=>'KhazanahController@JanaPermohonan' ])->middleware('auth','khazanah');
|
||||
Route::post('khazanah/jana_permohonan/proses_permohonan',['as'=> 'permohonan.proses' , 'uses'=>'KhazanahController@ProsesPermohonan'])->middleware('auth','khazanah');
|
||||
|
||||
//ADMIN
|
||||
|
||||
|
||||
Reference in New Issue
Block a user