create local format date

This commit is contained in:
KhatamNugraha
2023-08-23 13:30:01 +07:00
parent 9ae69c3a94
commit d8a9ee4d0c
3 changed files with 21 additions and 11 deletions

View File

@ -160,6 +160,8 @@
$ListLimits = $ViewAccount->getLimit($request['cus_no'],$request['periode']); $ListLimits = $ViewAccount->getLimit($request['cus_no'],$request['periode']);
$fasilitas = Fasilitas::where('nomor_cif',$request['cus_no'] )->where('status',1)->get(); $fasilitas = Fasilitas::where('nomor_cif',$request['cus_no'] )->where('status',1)->get();
$signer = Signer::where('id',$fasilitas[0]['signer_id'])->get(); $signer = Signer::where('id',$fasilitas[0]['signer_id'])->get();
$currentDate = Carbon::now();
$tanggalIndonesia = $currentDate->locale('id')->isoFormat('dddd, D MMMM YYYY');
$data['DataAccounts'] = $DataAccounts; $data['DataAccounts'] = $DataAccounts;
$data['DataPinjaman'] = $pinjaman; $data['DataPinjaman'] = $pinjaman;
@ -167,9 +169,10 @@
$data['DataFasilitas'] = $fasilitas; $data['DataFasilitas'] = $fasilitas;
// dd($data['DataLimit']); // dd($data['DataLimit']);
$data['DataSigner'] = $signer; $data['DataSigner'] = $signer;
$data['localDate'] = $tanggalIndonesia;
$currentDate = Carbon::now();
$html = View::make('konfirmasibank::exportPdf', ['data' => $data])->render(); $html = View::make('konfirmasibank::exportPdf', ['data' => $data])->render();
$pdf = new Dompdf(); $pdf = new Dompdf();

View File

@ -43,6 +43,13 @@
font-weight: normal; /* Ketebalan font (normal) */ font-weight: normal; /* Ketebalan font (normal) */
color: #333; /* Warna teks */ color: #333; /* Warna teks */
} }
.no-border-table {
border-collapse: collapse;
}
.no-border-table, .no-border-table th, .no-border-table td,.no-border-table tr {
border: none;
}
</style> </style>
<title>Konfirmasi Bank</title> <title>Konfirmasi Bank</title>
</head> </head>
@ -53,20 +60,20 @@
<div class="content"> <div class="content">
<p>Nomor &nbsp; : 577/SUBDIT.OPS/VIII/2023</p> <p>Nomor &nbsp; : 577/SUBDIT.OPS/VIII/2023</p>
<p>Tanggal : {{ date('Y/m/d') }}</p><br> <p>Tanggal : {{ $data['localDate'] }}</p><br>
<p>Kepada Yth</p> <p>Kepada Yth</p>
<P>{{$data['DataPinjaman'][0]['SHORT_NAME']}}</P> <P>{{$data['DataPinjaman'][0]['SHORT_NAME']}}</P>
<p>{{$data['DataPinjaman'][0]['STREET']}}, {{$data['DataPinjaman'][0]['ADDRESS']}}</p> <p>{{$data['DataPinjaman'][0]['STREET']}}, {{$data['DataPinjaman'][0]['ADDRESS']}}</p>
<p>Sesuai dengan surat saudara Nomor <span>150/KB-SENTRA1/II/2023</span> tanggal {{ date('Y/m/d') }} dengan ini kami smpaikan data data nasabah sesuai permintaan saudara sebagai berikut : </p> <p>Sesuai dengan surat saudara Nomor <span>150/KB-SENTRA1/II/2023</span> tanggal {{ $data['localDate'] }} dengan ini kami smpaikan data data nasabah sesuai permintaan saudara sebagai berikut : </p>
<p>Nama Nasabah : {{$data['DataPinjaman'][0]['SHORT_NAME']}}</p> <p>Nama Nasabah : {{$data['DataPinjaman'][0]['SHORT_NAME']}}</p>
<p>Nomor CIF &nbsp;&nbsp; : {{$data['DataAccounts'][0]['CUSTOMER_NO']}}</p><br> <p>Nomor CIF &nbsp;&nbsp; : {{$data['DataAccounts'][0]['CUSTOMER_NO']}}</p><br>
<p style="font-size: 12px;"> SIMPAMAN NASABAH YANG BERSANGKUTAN PADA BANK</p> <p style="font-size: 12px;"> SIMPAMAN NASABAH YANG BERSANGKUTAN PADA BANK</p>
<p style="font-size: 12px;">POSISI {{ date('Y/m/d') }}</p> <p style="font-size: 12px;">POSISI {{ $data['localDate'] }}</p>
<table class="space1" style="width:100%;"> <table class="space1" style="width:100%;">
<thead style="background-color: dimgrey"> <thead style="background-color: dimgrey">
<tr class="space1" > <tr class="space1" >
@ -107,7 +114,7 @@
</table><br> </table><br>
<p style="font-size: 12px;">PINJAMAN YANG DI BERIKAN OLEH BANK KEPADA NASABAH</p> <p style="font-size: 12px;">PINJAMAN YANG DI BERIKAN OLEH BANK KEPADA NASABAH</p>
<p style="font-size: 12px;">POSISI {{ date('Y/m/d') }}</p> <p style="font-size: 12px;">POSISI {{ $data['localDate'] }}</p>
<table class="space1" style="width:100%;"> <table class="space1" style="width:100%;">
<thead style="background-color: dimgrey"> <thead style="background-color: dimgrey">
<tr class="space1" > <tr class="space1" >
@ -147,7 +154,7 @@
</table><br> </table><br>
<p style="font-size: 12px;">FASILITAS LAIN YANG DI TERIMA OLEH NASABAH</p> <p style="font-size: 12px;">FASILITAS LAIN YANG DI TERIMA OLEH NASABAH</p>
<p style="font-size: 12px;">POSISI {{ date('Y/m/d') }}</p> <p style="font-size: 12px;">POSISI {{ $data['localDate'] }}</p>
<table class="space1" style="width:100%;"> <table class="space1" style="width:100%;">
<thead style="background-color: dimgrey"> <thead style="background-color: dimgrey">
<tr class="space1" > <tr class="space1" >
@ -204,8 +211,8 @@
</tbody> </tbody>
</table><br><br> </table><br><br>
<div style="width:300px"> <div style="width:300px" class>
<table style="width:100%;border: none;" class="space1"> <table style="width:100%;" class="space1 no-border-table">
<tr class="space1" style="height:500px"> <tr class="space1" style="height:500px">
<td class="space1" style="width:20%;font-size:12px;" > <td class="space1" style="width:20%;font-size:12px;" >
<p style="margin-top:100px; text-align: center;">{{$data['DataSigner'][0]['deputy_director_name']}}</p> <p style="margin-top:100px; text-align: center;">{{$data['DataSigner'][0]['deputy_director_name']}}</p>

View File

@ -40,7 +40,7 @@
</form> </form>
</div> </div>
<div class="col-md-3 "> <div class="col-md-3 d-flex justify-content-end">
<form class="form_customer2" method="POST" action="{{ route($route[0] . '.export') }}"> <form class="form_customer2" method="POST" action="{{ route($route[0] . '.export') }}">
@csrf @csrf