added pdf and fix surat wakil no pdf and added pdf for resit
This commit is contained in:
@@ -0,0 +1,93 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<title>{{ config('app.name') }} | Pembayaran Berjaya</title>
|
||||
|
||||
<!-- Tell the browser to be responsive to screen width -->
|
||||
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
|
||||
|
||||
|
||||
<link href="{{ mix('css/app.css') }}" rel="stylesheet">
|
||||
|
||||
|
||||
<style>
|
||||
.card_shadow{
|
||||
box-shadow:0 0 6px 0 rgb(0 0 0 / 20%);
|
||||
border-radius:4px;
|
||||
}
|
||||
|
||||
hr.dashed {
|
||||
border-top: 1px dashed;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div style="font-family: Arial, sans-serif; font-size: 12px; margin: 20px;">
|
||||
<div style="text-align: center; margin-bottom: 20px;">
|
||||
<img src="{{ asset('argon') }}/img/brand/arrahnlogo.png" height="50" alt="Logo Ar Rahn" />
|
||||
<img src="{{ asset('argon') }}/img/brand/nama.png" height="50" alt="Logo Ar Rahn" />
|
||||
</div>
|
||||
<div style="margin-bottom: 10px;">
|
||||
<small>Pelanggan yang dihargai,</small>
|
||||
</div>
|
||||
<div style="margin-bottom: 20px;">
|
||||
<small>Terima kasih kerana menggunakan perkhidmatan kami.</small>
|
||||
</div>
|
||||
<hr />
|
||||
<div style="display: flex; justify-content: space-between; margin-bottom: 10px;">
|
||||
<div>Status Bayaran</div>
|
||||
<div style="color: #4BB543;">Berjaya</div>
|
||||
</div>
|
||||
<hr style="border-style: dashed;" />
|
||||
<div style="display: flex; justify-content: space-between; margin-bottom: 10px;">
|
||||
<div>ID Transaksi</div>
|
||||
<div>{{ $payment_details['reference_no'] }}</div>
|
||||
</div>
|
||||
<hr style="border-style: dashed;" />
|
||||
<div style="display: flex; justify-content: space-between; margin-bottom: 10px;">
|
||||
<div>No. Surat Akuan Gadai</div>
|
||||
<div>{{ $payment_details['norujukan'] }}</div>
|
||||
</div>
|
||||
<hr style="border-style: dashed;" />
|
||||
<div style="display: flex; justify-content: space-between; margin-bottom: 10px;">
|
||||
<div>Nama Pelanggan</div>
|
||||
<div>{{ $payment_details['customer_name'] }}</div>
|
||||
</div>
|
||||
<hr style="border-style: dashed;" />
|
||||
<div style="display: flex; justify-content: space-between; margin-bottom: 10px;">
|
||||
<div>Tarikh Transaksi</div>
|
||||
@php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $payment_details['tarikh'] );
|
||||
$formattedweddingdate = $myDateTime->format('d/m/Y');
|
||||
@endphp
|
||||
<div>{{ $formattedweddingdate . ' ' . $payment_details['masa'] }}</div>
|
||||
</div>
|
||||
<hr style="border-style: dashed;" />
|
||||
<div style="display: flex; justify-content: space-between; margin-bottom: 10px;">
|
||||
<div>Jumlah Bayaran</div>
|
||||
<div>RM {{ number_format($payment_details['total_payment'], 2) }}</div>
|
||||
</div>
|
||||
@if($gadai['hargajualan'] == 0)
|
||||
<hr style="border-style: dashed;" />
|
||||
<div style="display: flex; justify-content: space-between; margin-bottom: 10px; color: red;">
|
||||
<div>Tarikh Lanjutan</div>
|
||||
<div>31/12/2021</div>
|
||||
</div>
|
||||
@endif
|
||||
<hr />
|
||||
<div style="color: red; margin-bottom: 10px;">
|
||||
<small>Sebarang pembayaran akan dikemaskini selepas <b>1 Jam</b> sebaik pembayaran dilakukan</small>
|
||||
</div>
|
||||
<div style="margin-bottom: 20px;">
|
||||
<small>Nota: Resit ini adalah cetakan komputer dan tandatangan tidak diperlukan.</small>
|
||||
</div>
|
||||
<div style="text-align: center; margin-top: 20px;">
|
||||
<small><b>{{ $cawangan_detail['namacaw'] }}</b></small><br />
|
||||
<small>{{ $cawangan_detail['alamat1'] . ' ' . $cawangan_detail['alamat2'] }}</small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -126,12 +126,17 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-12 text-center" id="rem">
|
||||
<a class="btn btn-primary"onclick="loadingbtn();" href="{{ route('home') }}">Kembali Muka Hadapan</a>
|
||||
<button class="btn btn-primary" onclick="cetakresit()">Cetak Resit</button>
|
||||
<form method="POST" name="generateresit" action="{{ route('resit.pdf') }}">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-12 text-center" id="rem">
|
||||
@csrf
|
||||
<input type="hidden" name="billplzid" value="{{ $payment_details['billplz_id'] }}">
|
||||
<input type="hidden" name="company" value="{{ $company }}">
|
||||
<a class="btn btn-primary"onclick="loadingbtn();" href="{{ route('home') }}">Kembali Muka Hadapan</a>
|
||||
<button class="btn btn-primary" onclick="cetakresit()">Cetak Resit</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -139,13 +144,11 @@
|
||||
<script>
|
||||
|
||||
function cetakresit()
|
||||
{
|
||||
let hiding = document.getElementById("rem");
|
||||
|
||||
hiding.style.display = "none";
|
||||
window.print();
|
||||
hiding.style.display = "block";
|
||||
}
|
||||
{
|
||||
let form = document.getElementById("myForm");
|
||||
|
||||
form.submit();
|
||||
}
|
||||
|
||||
</script>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user