Update index.blade.php
This commit is contained in:
@@ -249,7 +249,7 @@
|
|||||||
</section>
|
</section>
|
||||||
<section>
|
<section>
|
||||||
<div class="modal fade" id="approveModal" tabindex="-1" role="dialog" aria-labelledby="approveModalLabel" aria-hidden="true">
|
<div class="modal fade" id="approveModal" tabindex="-1" role="dialog" aria-labelledby="approveModalLabel" aria-hidden="true">
|
||||||
<div class="modal-dialog modal-xl" role="document">
|
<div class="modal-dialog modal-lg" role="document">
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
<form id="approveForm" method="POST" action="">
|
<form id="approveForm" method="POST" action="">
|
||||||
@csrf
|
@csrf
|
||||||
@@ -270,33 +270,40 @@
|
|||||||
|
|
||||||
<!-- Modal content (hidden initially) -->
|
<!-- Modal content (hidden initially) -->
|
||||||
<div id="modalContent" class="d-none">
|
<div id="modalContent" class="d-none">
|
||||||
<table class="table table-bordered">
|
<p>Please review the details below:</p>
|
||||||
<thead>
|
<ul class="list-group">
|
||||||
<tr>
|
<li class="list-group-item">
|
||||||
<th>User</th>
|
<strong>Expense Number:</strong> <span id="expense_number"></span>
|
||||||
<th>Rayon</th>
|
</li>
|
||||||
<th>Tanggal</th>
|
<li class="list-group-item">
|
||||||
<th>Tujuan</th>
|
<strong>User:</strong> <span id="user"></span>
|
||||||
<th>Jarak</th>
|
</li>
|
||||||
<th>Bukti 1</th>
|
<li class="list-group-item">
|
||||||
<th>Bukti 2</th>
|
<strong>Tipe:</strong> Up Country
|
||||||
<th>Bukti 3</th>
|
</li>
|
||||||
</tr>
|
<li class="list-group-item">
|
||||||
</thead>
|
<strong>Rayon:</strong> <span id="rayon"></span>
|
||||||
<tbody>
|
</li>
|
||||||
<tr>
|
<li class="list-group-item">
|
||||||
<td id="user"></td>
|
<strong>Tanggal:</strong> <span id="tanggal"></span>
|
||||||
<td id="rayon"></td>
|
</li>
|
||||||
<td id="tanggal"></td>
|
<li class="list-group-item">
|
||||||
<td id="tujuan"></td>
|
<strong>Tujuan:</strong> <span id="tujuan"></span>
|
||||||
<td id="jarak"></td>
|
</li>
|
||||||
<td id="bukti1"></td>
|
<li class="list-group-item">
|
||||||
<td id="bukti2"></td>
|
<strong>Jarak:</strong> <span id="jarak"></span>
|
||||||
<td id="bukti3"></td>
|
</li>
|
||||||
</tr>
|
<li class="list-group-item">
|
||||||
</tbody>
|
<strong>Bukti 1:</strong> <span id="bukti1"></span>
|
||||||
</table>
|
</li>
|
||||||
<p>Please select the items you want to approve:</p>
|
<li class="list-group-item">
|
||||||
|
<strong>Bukti 2:</strong> <span id="bukti2"></span>
|
||||||
|
</li>
|
||||||
|
<li class="list-group-item">
|
||||||
|
<strong>Bukti 3:</strong> <span id="bukti3"></span>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<p class="mt-2">Please select the items you want to approve:</p>
|
||||||
<ul class="list-group list-unstyled">
|
<ul class="list-group list-unstyled">
|
||||||
<li>
|
<li>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@@ -397,6 +404,7 @@
|
|||||||
|
|
||||||
// Detail data
|
// Detail data
|
||||||
$('#user').text(data.user.name);
|
$('#user').text(data.user.name);
|
||||||
|
$('#expense_number').text(data.expense_number);
|
||||||
$('#rayon').text(data.rayon.code);
|
$('#rayon').text(data.rayon.code);
|
||||||
$('#tanggal').text(new Date(data.tanggal).toLocaleDateString('id-ID', {
|
$('#tanggal').text(new Date(data.tanggal).toLocaleDateString('id-ID', {
|
||||||
year: 'numeric',
|
year: 'numeric',
|
||||||
|
|||||||
Reference in New Issue
Block a user