fix
This commit is contained in:
@@ -9,6 +9,7 @@ use Illuminate\Support\Facades\Http;
|
||||
use Illuminate\Support\Facades\Hash;
|
||||
|
||||
use Carbon\Carbon;
|
||||
use App\Models\Cawangan;
|
||||
use DateTime;
|
||||
|
||||
class PermohonanController extends Controller
|
||||
@@ -54,12 +55,143 @@ class PermohonanController extends Controller
|
||||
$current = Carbon::now();
|
||||
$tarikh_cetak = $current->toDateString();
|
||||
|
||||
$permohonan=Http::get(config('api.url').'/admin/permohonan/get/'. $request->cawangan .'/'. $request->mohonid)->json();
|
||||
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $tarikh_cetak);
|
||||
$tarikhcetakan = $myDateTime->format('d-m-Y');
|
||||
|
||||
$permohonan=Http::get(config('api.url').'/admin/permohonan/get/'. $request->cawangan .'/'. $request->mohonid)->json();
|
||||
$caw = Cawangan::where('kodcaw',$request->cawangan)->get()->toArray();
|
||||
$jeniscawangan = $caw[0]['syarikat'];
|
||||
|
||||
return view('permohonan.cetakanfull', compact('cawangan_detail','permohonan','tarikhcetakan'));
|
||||
$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;
|
||||
}
|
||||
|
||||
$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('permohonan.cetakanfull', compact('ringgittext','jeniscawangan','fullname','cawangan_detail','permohonan','tarikhcetakan'));
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -11,7 +11,10 @@ class Cawangan extends Model
|
||||
protected $fillable = [
|
||||
'caw_id',
|
||||
'details_caw',
|
||||
'kodcaw'
|
||||
'kodcaw',
|
||||
'syarikat',
|
||||
'min',
|
||||
'max'
|
||||
];
|
||||
|
||||
protected $primaryKey = 'caw_id';
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
</router-link>
|
||||
<span class="text-center mx-auto text-white font-bold">Laporan Lejer Am</span>
|
||||
</div>
|
||||
<form method="get" ref="formlejeram" :action="Urlredirect()" target="iframe_lejer">
|
||||
<form method="get" id="iframe_lejer" name="formlejeram" ref="formlejeram" :action="Urlredirect()" target="iframe_lejer">
|
||||
<div class="rounded bg-white shadow p-6">
|
||||
<div class="pb-6">
|
||||
<div class="flex place-content-center mb-2">
|
||||
@@ -88,10 +88,13 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
async generatepdf(){
|
||||
await this.setJenis('pdf');
|
||||
this.showCetak = true;
|
||||
this.showModal = false;
|
||||
this.showLoader = true;
|
||||
|
||||
await this.setJenis('pdf');
|
||||
|
||||
|
||||
// Vue.swal({
|
||||
// title: 'Memuatkan...',
|
||||
// allowEscapeKey : false,
|
||||
|
||||
@@ -87,7 +87,7 @@ export default {
|
||||
return formatter.format(data)
|
||||
},
|
||||
getKelulusanList(pageNumber) {
|
||||
this.axios.get('/api/check/ListOperasi/Paginate', {
|
||||
this.axios.get(this.$hostname + '/admin/ListOperasi/Paginate', {
|
||||
params: {
|
||||
page: pageNumber
|
||||
}
|
||||
|
||||
@@ -227,7 +227,7 @@
|
||||
|
||||
<td class="px-5 py-5 border-b border-gray-200 bg-white text-sm">
|
||||
|
||||
<span v-if="mohon.tagterima === 1" class="p-2 bg-green-500 rounded text-white">Berjaya</span>
|
||||
<span v-if="mohon.tagterima === 1 || (mohon.jenismohon == 'bayaranbalik' && mohon.tagoperasi === 1 && mohon.tagcit === 1 && mohon.tagakaun === 1)" class="p-2 bg-green-500 rounded text-white">Berjaya</span>
|
||||
<span v-else class="p-2 bg-red-500 rounded text-white">Batal</span>
|
||||
|
||||
</td>
|
||||
|
||||
@@ -211,7 +211,39 @@
|
||||
|
||||
<div v-if="userroles == 'operasi'" class="flex items-center">
|
||||
|
||||
<div v-if="mohon.tagoperasi == 0" class="ml-3">
|
||||
<div v-if="mohon.tagoperasi === 0 && mohon.tagcit === 1 && mohon.jenismohon === 'bayaranbalik'" class="ml-3">
|
||||
|
||||
<button @click="funcsetuju(mohon.mohonid)" class="border border-blue-600 text-blue-600 font-montserrat py-2 px-4 font-medium rounded-xl hover:bg-blue-600 hover:text-white transition-all duration-300">
|
||||
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
|
||||
|
||||
<path stroke-linecap="round" stroke-linejoin="round" d="M14 10h4.764a2 2 0 011.789 2.894l-3.5 7A2 2 0 0115.263 21h-4.017c-.163 0-.326-.02-.485-.06L7 20m7-10V5a2 2 0 00-2-2h-.095c-.5 0-.905.405-.905.905 0 .714-.211 1.412-.608 2.006L7 11v9m7-10h-2M7 20H5a2 2 0 01-2-2v-6a2 2 0 012-2h2.5" />
|
||||
|
||||
</svg>
|
||||
|
||||
</button>
|
||||
|
||||
<button @click="funcbatal(mohon.mohonid)" class="border border-red-600 text-red-600 font-montserrat py-2 px-4 font-medium rounded-xl hover:bg-red-600 hover:text-white transition-all duration-300">
|
||||
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
|
||||
|
||||
<path stroke-linecap="round" stroke-linejoin="round" d="M10 14H5.236a2 2 0 01-1.789-2.894l3.5-7A2 2 0 018.736 3h4.018a2 2 0 01.485.06l3.76.94m-7 10v5a2 2 0 002 2h.096c.5 0 .905-.405.905-.904 0-.715.211-1.413.608-2.008L17 13V4m-7 10h2m5-10h2a2 2 0 012 2v6a2 2 0 01-2 2h-2.5" />
|
||||
|
||||
</svg>
|
||||
|
||||
</button>
|
||||
|
||||
</div>
|
||||
<div v-if="mohon.tagoperasi === 0 && mohon.tagcit === 0 && mohon.jenismohon === 'bayaranbalik'" class="ml-3">
|
||||
|
||||
<p class="text-white whitespace-no-wrap p-2 rounded bg-blue-500">
|
||||
|
||||
Dalam Proses
|
||||
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div v-else-if="mohon.tagoperasi == 0 && mohon.jenismohon === 'permohonanwang'" class="ml-3">
|
||||
|
||||
<button @click="funcsetuju(mohon.mohonid)" class="border border-blue-600 text-blue-600 font-montserrat py-2 px-4 font-medium rounded-xl hover:bg-blue-600 hover:text-white transition-all duration-300">
|
||||
|
||||
@@ -235,7 +267,7 @@
|
||||
|
||||
</div>
|
||||
|
||||
<div v-else class="ml-3">
|
||||
<div v-else-if="mohon.tagoperasi == 1" class="ml-3">
|
||||
|
||||
<p class="text-white whitespace-no-wrap p-2 rounded bg-green-500">
|
||||
|
||||
@@ -247,7 +279,7 @@
|
||||
|
||||
</div>
|
||||
|
||||
<div v-if="userroles == 'akaun'" class="flex items-center">
|
||||
<div v-if="userroles == 'akaun' && mohon.jenismohon =='permohonanwang'" class="flex items-center">
|
||||
|
||||
<div v-if="mohon.tagoperasi === 0">
|
||||
<p class="text-white whitespace-no-wrap p-2 rounded bg-blue-500">
|
||||
@@ -304,6 +336,42 @@
|
||||
|
||||
</div>
|
||||
|
||||
<div v-if="userroles == 'akaun' && mohon.jenismohon =='bayaranbalik'" class="flex items-center">
|
||||
|
||||
<div v-if="mohon.tagoperasi === 0">
|
||||
<p class="text-white whitespace-no-wrap p-2 rounded bg-blue-500">
|
||||
DALAM PROCESS
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div v-else-if="(mohon.tagoperasi === 1 && mohon.tagakaun === 0)" class="ml-3">
|
||||
|
||||
<button @click="funcsetuju(mohon.mohonid)" class="border border-blue-600 text-blue-600 font-montserrat py-2 px-4 font-medium rounded-xl hover:bg-blue-600 hover:text-white transition-all duration-300">
|
||||
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
|
||||
|
||||
<path stroke-linecap="round" stroke-linejoin="round" d="M14 10h4.764a2 2 0 011.789 2.894l-3.5 7A2 2 0 0115.263 21h-4.017c-.163 0-.326-.02-.485-.06L7 20m7-10V5a2 2 0 00-2-2h-.095c-.5 0-.905.405-.905.905 0 .714-.211 1.412-.608 2.006L7 11v9m7-10h-2M7 20H5a2 2 0 01-2-2v-6a2 2 0 012-2h2.5" />
|
||||
|
||||
</svg>
|
||||
|
||||
</button>
|
||||
|
||||
<button @click="funcbatal(mohon.mohonid)" class="border border-red-600 text-red-600 font-montserrat py-2 px-4 font-medium rounded-xl hover:bg-red-600 hover:text-white transition-all duration-300">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" d="M10 14H5.236a2 2 0 01-1.789-2.894l3.5-7A2 2 0 018.736 3h4.018a2 2 0 01.485.06l3.76.94m-7 10v5a2 2 0 002 2h.096c.5 0 .905-.405.905-.904 0-.715.211-1.413.608-2.008L17 13V4m-7 10h2m5-10h2a2 2 0 012 2v6a2 2 0 01-2 2h-2.5" />
|
||||
</svg>
|
||||
</button>
|
||||
|
||||
</div>
|
||||
|
||||
<div v-else>
|
||||
<p class="text-white whitespace-no-wrap p-2 rounded bg-green-500">
|
||||
Telah Lulus
|
||||
</p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
@@ -407,64 +475,80 @@ export default {
|
||||
}
|
||||
}).then(response => {
|
||||
|
||||
let refer2 = this;
|
||||
|
||||
if (response.data === 1) {
|
||||
|
||||
if (this.userroles === "operasi") {
|
||||
this.axios.put(this.$hostname + '/admin/permohonan/updateoperasi', {
|
||||
kelulusan: "Batal",
|
||||
mohonid: mohonid,
|
||||
namaoperasi: this.username
|
||||
}).then(response => {
|
||||
if (response.data === 1) {
|
||||
this.$swal({
|
||||
icon: 'success',
|
||||
title: 'Berjaya',
|
||||
text: 'Berjaya mengemaskini maklumat pelanggan',
|
||||
allowOutsideClick: false
|
||||
}).then(function () {
|
||||
refer.getSenaraiMohon(refer.currentPage);
|
||||
});
|
||||
} else {
|
||||
this.$swal({
|
||||
icon: 'warning',
|
||||
title: 'Tidak Berjaya',
|
||||
text: 'Data pelanggan tidak berjaya dikemaskini',
|
||||
allowOutsideClick: false
|
||||
}).then(function () {
|
||||
refer.getSenaraiMohon(refer.currentPage);
|
||||
});
|
||||
}
|
||||
});
|
||||
} else if (this.userroles === "akaun") {
|
||||
this.axios.put(this.$hostname + '/admin/permohonan/updateakaun', {
|
||||
kelulusan: "Batal",
|
||||
mohonid: mohonid,
|
||||
namaakaun: this.username
|
||||
}).then(response => {
|
||||
if (response.data === 1) {
|
||||
this.$swal({
|
||||
icon: 'success',
|
||||
title: 'Berjaya',
|
||||
text: 'Berjaya mengemaskini maklumat pelanggan',
|
||||
allowOutsideClick: false
|
||||
}).then(function () {
|
||||
refer.getSenaraiMohon(refer.currentPage);
|
||||
});
|
||||
} else {
|
||||
this.$swal({
|
||||
icon: 'warning',
|
||||
title: 'Tidak Berjaya',
|
||||
text: 'Data pelanggan tidak berjaya dikemaskini',
|
||||
allowOutsideClick: false
|
||||
}).then(function () {
|
||||
refer.getSenaraiMohon(refer.currentPage);
|
||||
});
|
||||
}
|
||||
});
|
||||
this.$swal({
|
||||
title: 'Masukkan Komen',
|
||||
input: 'text',
|
||||
inputPlaceholder: 'Katalaluan',
|
||||
confirmButtonText: 'Hantar',
|
||||
showCancelButton: false,
|
||||
cancelButtonText: 'Batal',
|
||||
allowOutsideClick: false
|
||||
}).then((result) => {
|
||||
|
||||
} else {
|
||||
if (refer2.userroles === "operasi") {
|
||||
refer2.axios.put(refer2.$hostname + '/admin/permohonan/updateoperasi', {
|
||||
kelulusan: "Batal",
|
||||
mohonid: mohonid,
|
||||
namaoperasi: refer2.username,
|
||||
komen: result.value
|
||||
}).then(response => {
|
||||
if (response.data === 1) {
|
||||
refer2.$swal({
|
||||
icon: 'success',
|
||||
title: 'Berjaya',
|
||||
text: 'Berjaya mengemaskini maklumat pelanggan',
|
||||
allowOutsideClick: false
|
||||
}).then(function () {
|
||||
refer.getSenaraiMohon(refer.currentPage);
|
||||
});
|
||||
} else {
|
||||
refer2.$swal({
|
||||
icon: 'warning',
|
||||
title: 'Tidak Berjaya',
|
||||
text: 'Data pelanggan tidak berjaya dikemaskini',
|
||||
allowOutsideClick: false
|
||||
}).then(function () {
|
||||
refer.getSenaraiMohon(refer.currentPage);
|
||||
});
|
||||
}
|
||||
});
|
||||
} else if (refer2.userroles === "akaun") {
|
||||
refer2.axios.put(refer2.$hostname + '/admin/permohonan/updateakaun', {
|
||||
kelulusan: "Batal",
|
||||
mohonid: mohonid,
|
||||
namaakaun: refer2.username,
|
||||
komen: result.value
|
||||
}).then(response => {
|
||||
if (response.data === 1) {
|
||||
refer2.$swal({
|
||||
icon: 'success',
|
||||
title: 'Berjaya',
|
||||
text: 'Berjaya mengemaskini maklumat pelanggan',
|
||||
allowOutsideClick: false
|
||||
}).then(function () {
|
||||
refer.getSenaraiMohon(refer.currentPage);
|
||||
});
|
||||
} else {
|
||||
refer2.$swal({
|
||||
icon: 'warning',
|
||||
title: 'Tidak Berjaya',
|
||||
text: 'Data pelanggan tidak berjaya dikemaskini',
|
||||
allowOutsideClick: false
|
||||
}).then(function () {
|
||||
refer.getSenaraiMohon(refer.currentPage);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
} else {
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
} else {
|
||||
this.$swal({
|
||||
@@ -604,7 +688,7 @@ export default {
|
||||
}
|
||||
});
|
||||
|
||||
let route = window.route('permohonan.cetakanpb', {
|
||||
let route = window.route('permohonan.cetakanpenuh', {
|
||||
_query: {
|
||||
cawangan: caw,
|
||||
mohonid: mid
|
||||
|
||||
@@ -25,19 +25,19 @@
|
||||
|
||||
<li :class="this.permohonan.tarikh_permohonan !== null ? 'active' : ''" class="step0 w-1/4"></li>
|
||||
|
||||
<li :class="this.permohonan.tagcit === 1 ? 'active' : ''" class="step0 w-1/4"></li>
|
||||
|
||||
<li :class="this.permohonan.tagoperasi === 1 ? 'active' : ''" class="step0 w-1/4"></li>
|
||||
|
||||
<li :class="this.permohonan.tagakaun === 1 ? 'active' : ''" class="step0 w-1/4"></li>
|
||||
|
||||
<li :class="this.permohonan.tagpb === 1 ? 'active' : ''" class="step0 w-1/4"></li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div v-if="this.permohonan.jenismohon === 'bayaranbalik'" class="flex w-2/4">
|
||||
<div v-if="this.permohonan.jenismohon === 'bayaranbalik'" class="w-4/6 flex items-center mx-auto">
|
||||
|
||||
<div class="row flex flex-col justify-center items-center icon-content w-1/4"> <img class="icon mx-auto" src="/img/proposal.png">
|
||||
|
||||
@@ -280,6 +280,10 @@
|
||||
<p v-if="status.statusid === 7" class="text-gray-900 whitespace-no-wrap">
|
||||
{{ status.description }} <br> {{ 'KOMEN : ' + status[0].komen_batal }}
|
||||
</p>
|
||||
|
||||
<p v-if="status.statusid === 8" class="text-gray-900 whitespace-no-wrap">
|
||||
{{ status.description }} <br> {{ 'JENIS BANK : ' + status[0].jenisbank }}
|
||||
</p>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
@@ -28,19 +28,14 @@
|
||||
<body class="p-2">
|
||||
|
||||
<div class="mb-10">
|
||||
<div class="flex w-full">
|
||||
<div class="w-1/12 mt-4">
|
||||
<img src="{{ asset('img/ARRAHN1.png') }}" style="width:70px"/>
|
||||
</div>
|
||||
|
||||
<div class="ml-2 w-8/12 flex flex-col justify-end">
|
||||
<b>PERMODALAN KELANTAN BERHAD</b>
|
||||
<div class="w-full flex flex-col justify-end items-end text-right">
|
||||
|
||||
<div class="ml-2">
|
||||
<b>{{ $fullname }}</b>
|
||||
<p class="text-xs">{{ $cawangan_detail['namacaw'] }}</p>
|
||||
<p class="text-xs">{{ $cawangan_detail['alamat1'] }}</p>
|
||||
<p class="text-xs">{{ $cawangan_detail['alamat2'] }}</p>
|
||||
</div>
|
||||
|
||||
<div class="w-3/12 flex flex-col justify-end">
|
||||
|
||||
<p class="text-xs">No Tel : {{ $cawangan_detail['notel'] }}</p>
|
||||
<p class="text-xs">No Faks : {{ $cawangan_detail['nofaks'] }}</p>
|
||||
</div>
|
||||
@@ -48,126 +43,334 @@
|
||||
|
||||
</div>
|
||||
<div class="flex mb-6">
|
||||
<div class="ml-2 w-9/12 flex flex-col justify-end">
|
||||
<b class="text-sm">Kepada:</b>
|
||||
<p class="text-xs">Pengurus Besar Kumpulan PKB</p>
|
||||
<div class="ml-2 w-1/2 flex flex-col justify-end">
|
||||
<b class="text-xs border border-black pl-1">Kepada</b>
|
||||
<p class="text-xs">
|
||||
@php
|
||||
if($jeniscawangan === 'BMMB')
|
||||
{
|
||||
echo 'AHLI ' . $fullname;
|
||||
}else{
|
||||
echo 'Pengurus Besar Kumpulan PKB';
|
||||
}
|
||||
@endphp
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="ml-2 w-3/12 flex flex-col">
|
||||
<b class="text-sm">No Permohonan:</b>
|
||||
<p class="text-xs">{{ $permohonan['nopermohonan'] }}</p>
|
||||
<div class="ml-2 w-1/2 flex flex-col">
|
||||
<b class="text-xs border border-black pl-1 justify-end">No Permohonan</b>
|
||||
<p class="text-xs w-1/2 border border-gray-400 text-right">{{ $permohonan['nopermohonan'] }}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="flex mb-6">
|
||||
<div class="ml-2 w-9/12 flex flex-col justify-end">
|
||||
<b class="text-sm">Daripada:</b>
|
||||
<div class="ml-2 w-1/2 flex flex-col justify-end">
|
||||
<b class="text-xs border border-black pl-1">Daripada</b>
|
||||
<p class="text-xs">Pengurus Cawangan {{ $cawangan_detail['namacaw'] }}</p>
|
||||
<p class="text-xs">Nama : {{ $permohonan['nama_pemohon'] }}</p>
|
||||
{{-- <p class="text-xs">NO KP : 970403-03-5003</p> --}}
|
||||
|
||||
</div>
|
||||
|
||||
<div class="ml-2 w-3/12 flex flex-col">
|
||||
<b class="text-sm">Tarikh:</b>
|
||||
<p class="text-xs">{{ $tarikhcetakan }}</p>
|
||||
<div class="ml-2 w-1/2 flex flex-col">
|
||||
<b class="text-xs border border-black pl-1">Tarikh</b>
|
||||
<p class="text-xs w-1/2 border border-gray-400 text-right">{{ $tarikhcetakan }}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@if($permohonan['jenismohon'] === 'permohonanwang')
|
||||
<h4 class="ml-2 text-lg font-bold underline">PERMOHONAN WANG</h4>
|
||||
@else
|
||||
<h4 class="ml-2 text-lg font-bold underline">BAYARAN BALIK</h4>
|
||||
@endif
|
||||
<div class="flex mb-6">
|
||||
<div class="ml-2 w-1/2 flex flex-col justify-end">
|
||||
<b class="text-xs border border-black pl-1">PERMOHONAN WANG</b>
|
||||
@if($permohonan['jenismohon'] === 'permohonanwang')
|
||||
<div class="flex">
|
||||
<p class="text-xs w-full">Jumlah dipohon</p>
|
||||
<p class="text-xs w-2/3 border border-gray-400 text-right">RM {{ number_format($permohonan['amaun_mohon'],2) }}</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
|
||||
$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">
|
||||
RM {{ number_format($permohonan['baki_petibesi'],2) }}
|
||||
</p>
|
||||
</div>
|
||||
@else
|
||||
<div class="flex">
|
||||
<p class="text-xs w-full">Jumlah dipohon</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 serahan</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">Baki Peti Besi</p>
|
||||
<p class="text-xs w-2/3 border border-gray-400 text-right">
|
||||
|
||||
</p>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<div class="flex justify-content-center justify-center items-center mt-6">
|
||||
<table class="border-2 text-sm border-black p-2 w-full">
|
||||
<tr>
|
||||
@if($permohonan['jenismohon'] === 'permohonanwang')
|
||||
<td class="border-2 border-black p-2">Jumlah Dipohon</td>
|
||||
@else
|
||||
<td class="border-2 border-black p-2">Bayaran Balik</td>
|
||||
@endif
|
||||
<td class="border-2 border-black p-2 text-right">RM {{ number_format($permohonan['amaun_mohon'],2) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="border-2 border-black p-2">Tarikh Mohon</td>
|
||||
<td class="border-2 border-black p-2 text-right">
|
||||
<div class="ml-2 w-1/2 flex flex-col">
|
||||
<b class="text-xs border border-black pl-1 justify-end">BAYARAN BALIK</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 mb-6">
|
||||
<div class="ml-2 w-1/2 flex flex-col justify-end">
|
||||
<b class="text-xs border border-black pl-1">Disediakan oleh</b>
|
||||
<p class="h-14"></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-1/3 text-center">Pengurus Cawangan</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
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $permohonan['tarikh_permohonan']);
|
||||
$formattedweddingdate = $myDateTime->format('d-m-Y');
|
||||
echo($formattedweddingdate)
|
||||
@endphp
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="border-2 border-black p-2">Baki Peti Besi</td>
|
||||
<td class="border-2 border-black p-2 text-right">RM {{ number_format($permohonan['baki_petibesi'],2) }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="block">
|
||||
{{-- <div class="p-2 w-full h-100"></div> --}}
|
||||
</div>
|
||||
<div class="flex mb-6 mt-12 mx-auto justify-content-center items-center">
|
||||
<div class="ml-2 w-6/12 flex flex-col justify-end">
|
||||
<b class="text-sm">Disediakan oleh:</b>
|
||||
<p class="h-8"></p>
|
||||
<p class="text-xs font-bold ">Pengurus Cawangan {{ $cawangan_detail['namacaw'] }}</p>
|
||||
<p class="text-xs">Nama : {{ $permohonan['nama_pemohon'] }}</p>
|
||||
<p class="text-xs">Tarikh : {{ $tarikhcetakan }}</p>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="ml-2 w-6/12 flex flex-col justify-end">
|
||||
<b class="text-sm">Disahkan oleh:</b>
|
||||
<p class="h-8"></p>
|
||||
<p class="text-xs font-bold">Operasi Permodalan Kelantan Berhad</p>
|
||||
<p class="text-xs">Nama : {{ $permohonan['nama_operasi'] }}</p>
|
||||
<p class="text-xs">Tarikh : {{ $tarikhcetakan }}</p>
|
||||
<div class="ml-2 w-1/2 flex flex-col">
|
||||
<b class="text-xs border border-black pl-1">Disahkan oleh</b>
|
||||
|
||||
<p class="h-14"></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">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
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $permohonan['tarikh_pengesahanoperasi']);
|
||||
$formattedweddingdate = $myDateTime->format('d-m-Y');
|
||||
echo($formattedweddingdate)
|
||||
@endphp
|
||||
</p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h4 class="ml-2 text-lg font-bold underline">KELULUSAN DARIPADA PERMODALAN KELANTAN BERHAD</h4>
|
||||
|
||||
<p class="text-sm ml-2 font-bold mt-6">Jumlah yang diluluskan : RM {{ number_format($permohonan['jumlah_diluluskan'],2) }}</p>
|
||||
<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="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="flex mb-6">
|
||||
<div class="ml-2 w-1/2 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
|
||||
$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 class="flex mb-6 mx-auto justify-center items-center mt-10">
|
||||
<div class="ml-2 w-6/12 flex flex-col justify-end">
|
||||
<b class="text-sm">Disahkan oleh:</b>
|
||||
<p class="h-8"></p>
|
||||
<p class="text-xs font-bold ">Akaun Permodalan Kelantan Berhad</p>
|
||||
<p class="text-xs">Nama : {{ $permohonan['nama_akaun'] }}</p>
|
||||
<p class="text-xs">Tarikh : {{ $tarikhcetakan }}</p>
|
||||
</div>
|
||||
|
||||
<div class="ml-2 w-6/12 flex flex-col justify-end">
|
||||
<b class="text-sm">Diluluskan oleh:</b>
|
||||
<p class="h-8"></p>
|
||||
<p class="text-xs font-bold">Pengurus Besar<br> Permodalan Kelantan Berhad</p>
|
||||
<p class="text-xs">Tarikh : {{ $tarikhcetakan }}</p>
|
||||
<div class="ml-2 w-1/2 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="flex mb-6 mt-12">
|
||||
<div class="ml-2 w-6/12 flex flex-col justify-end">
|
||||
<b class="text-sm">Penerima Wang:</b>
|
||||
<p class="h-8"></p>
|
||||
<p class="text-xs font-bold ">Pengurus Cawangan {{ $cawangan_detail['namacaw'] }}</p>
|
||||
<p class="text-xs">Nama : {{ $permohonan['nama_penerima'] }}</p>
|
||||
<p class="text-xs">Tarikh Terima: {{ $permohonan['tarikh_terima'] }}</p>
|
||||
<div class="flex mb-6">
|
||||
<div class="ml-2 w-1/2 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 w-6/12 flex flex-col justify-end">
|
||||
<b class="text-sm">Bahagian Kewangan & Akaun PKB</b>
|
||||
<p class="h-8"></p>
|
||||
<p class="text-xs font-bold">Bank : {{ $permohonan['jenisbank'] }}</p>
|
||||
<p class="text-xs">Resit : {{ $permohonan['noresit'] }}</p>
|
||||
<p class="text-xs">Tarikh Kemasukan: {{ $permohonan['tarikh_bankin'] }}</p>
|
||||
<div class="ml-2 w-1/2 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">{{ $permohonan['jenisbank'] }}</p>
|
||||
</div>
|
||||
<div class="flex">
|
||||
<p class="text-xs w-full">No. Resit</p>
|
||||
<p class="text-xs w-2/3 border border-gray-400 text-right">{{ $permohonan['noresit'] }}</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();}
|
||||
|
||||
Reference in New Issue
Block a user