fix cetakan

This commit is contained in:
hafifierahman
2022-07-22 23:22:26 +08:00
parent 061d99c166
commit fe597de656
+210 -84
View File
@@ -79,88 +79,13 @@
</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">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 mohon</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 mohon</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="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 class="ml-2 w-full flex flex-col">
<b class="text-xs border border-black pl-1 text-center bg-gray-300 font-bold"> PENYEDIA PERMOHONAN</b>
</div>
</div>
<div class="flex mb-6">
<div class="flex mb-2">
<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>
@@ -189,12 +114,196 @@
</div>
</div>
<div class="flex mb-3">
<div class="ml-2 w-full flex flex-col">
<b class="text-xs border border-black pl-1 text-center bg-gray-300 font-bold">PERMOHONAN PENDAHULUAN / SERAHAN WANG PETI BESI</b>
</div>
</div>
<div class="flex mb-2">
<div class="ml-2 w-1/2 flex flex-col justify-end">
<b class="text-xs border border-black pl-1">PERMOHONAN PENDAHULUAN WANG PETI BESI</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 mohon</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>
<div class="flex">
<p class="text-xs w-full">Pendahuluan terkumpul sehingga kini</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 Pembiayaan</p>
<p class="text-xs w-2/3 border border-gray-400 text-right">
</p>
</div>
<div class="flex">
<p class="text-xs w-1/5">Nama</p>
<p class="text-xs w-4/5 border border-gray-400 text-right">
</p>
</div>
<div class="flex">
<p class="text-xs w-full">No. KP</p>
<p class="text-xs w-2/3 border border-gray-400 text-right">
</p>
</div>
<div class="flex flex-col">
<p class="text-xs w-full">Penerima Telegrafic Transfer (TT)</p>
<p class="text-xs w-full h-4 border border-gray-400 text-right">
</p>
<p class="text-xs w-full h-4 border border-gray-400">
Nota:
</p>
</div>
<div class="mt-2 flex mb-3">
<div class="w-full 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> --}}
<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">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
</p>
</div>
</div>
</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 mohon</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="ml-2 w-1/2 flex flex-col">
<b class="text-xs border border-black pl-1 justify-end">SERAHAN WANG PETI BESI</b>
@if($permohonan['jenismohon'] === 'permohonanwang')
<div class="flex">
<p class="text-xs w-full">Jumlah Serahan</p>
<p class="text-xs w-2/3 border border-gray-400"></p>
</div>
<div class="flex">
<p class="text-xs w-full">Tarikh Transaksi</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>
<div>
<div>
<label class="inline-flex items-center">
<input type="checkbox" class="form-checkbox h-4 w-4">
<span class="text-xs ml-1">Terminal</span>
</label>
</div>
<div>
<label class="inline-flex items-center">
<input type="checkbox" class="form-checkbox h-4 w-4">
<span class="text-xs ml-1">Bank In</span>
</label>
</div>
<div>
<label class="inline-flex items-center">
<input type="checkbox" class="form-checkbox h-4 w-4">
<span class="text-xs ml-1">Cash In Transit (CIT)</span>
</label>
</div>
</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-full flex flex-col">
<b class="text-xs border border-black pl-1 text-center bg-gray-300 font-bold">PENGESAHAN BAHAGIAN OPERASI AR-RAHN</b>
</div>
</div>
<div class="flex mb-2">
<div class="ml-2 w-1/2 flex flex-col">
</div>
<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> --}}
<p class="text-xs w-full text-right italic">{{ $permohonan['nama_operasi'] }}</p>
</div>
<div class="flex">
@@ -217,11 +326,11 @@
</div>
</div>
</div>
<div class="w-full text-center border border-black pl-1">
<b class="text-xs">@php if($jeniscawangan === 'PKB')
<div class="ml-2 w-full flex flex-col">
<b class="text-xs border border-black pl-1 text-center bg-gray-300 font-bold">@php if($jeniscawangan === 'PKB')
{
echo 'KELULUSAN ' . $fullname;
}else{
@@ -261,7 +370,24 @@
@endphp
</p>
</div>
{{-- <p class="text-xs">NO KP : 970403-03-5003</p> --}}
<div class="block">
<span class="text-gray-700 font-bold">Kaedah Penghantaran:</span>
<div>
<div>
<label class="inline-flex items-center">
<input type="checkbox" class="form-checkbox" checked>
<span class="text-xs ml-2">Cash In Transit (CIT)</span>
</label>
</div>
<div>
<label class="inline-flex items-center">
<input type="checkbox" class="form-checkbox">
<span class="text-xs ml-2">Telegrafic Transfer (TT)</span>
</label>
</div>
</div>
</div>
</div>