This commit is contained in:
hafifierahman
2021-02-27 12:38:10 +08:00
parent c1553704f8
commit 39582925a3
4 changed files with 53 additions and 16 deletions
+26 -11
View File
@@ -129,7 +129,7 @@
<div class="tab-content" id="nav-tabContent">
<div class="tab-pane fade show active" id="nav-home" role="tabpanel" aria-labelledby="nav-home-tab">
<table class="table" id="tableaddtunai">
<table class="table text-center" id="tableaddtunai">
<thead>
<tr>
<th>Bil</th>
@@ -143,23 +143,39 @@
</div>
<div class="tab-pane fade" id="nav-profile" role="tabpanel" aria-labelledby="nav-profile-tab">
<table class="table" id="tablegadaitebus">
<table class="table text-center" id="tablegadaitebus">
<thead>
<tr>
<th>Bil</th>
<th>Masa</th>
<th>Debit</th>
<th>Kredit</th>
<th>Nota</th>
<th>No Rujukan</th>
<th>Pinjaman</th>
<th>Nilai Marhun</th>
<th>Jenis Transaksi</th>
</tr>
</thead>
<tbody>
<tr>
@foreach($gadai_tebus as $gt)
<td> {{ $loop->iteration }} </td>
<td> {{ $gt['norujukan'] }} </td>
<td> {{ $gt['pinjaman'] }} </td>
<td> {{ $gt['nilaimarhun'] }} </td>
<td> @php if($gt['jenistebus'] == ''){
echo '<h4><span class="badge badge-success">Gadai</span></h4>';
}else{
echo '<h4><span class="badge badge-danger">Tebus</span></h4>';
}
@endphp </td>
</tr>
@endforeach
</tbody>
</table>
</div>
<div class="tab-pane fade" id="nav-contact" role="tabpanel" aria-labelledby="nav-contact-tab">
<table class="table" id="tabletuntutbaki">
<table class="table text-center" id="tabletuntutbaki">
<thead>
<tr>
<th>Bil</th>
@@ -186,11 +202,11 @@
// "scrollX": true
});
var tableaddtunai = $('#tablegadaitebus').DataTable({
var tablegadaitebus = $('#tablegadaitebus').DataTable({
// "scrollX": true
});
var tableaddtunai = $('#tabletuntutbaki').DataTable({
var tabletuntutbaki = $('#tabletuntutbaki').DataTable({
// "scrollX": true
});
@@ -210,7 +226,6 @@
});
}
getData();
setInterval(function () {
getData();
@@ -177,6 +177,20 @@
</div>
</div>
<div class="col-lg-6 col-xl-4 col-12">
<!-- small box -->
<div class="small-box bg-primary">
<div class="inner">
<h3>RM {{ number_format($komuditicheck['unit_komuditi'],2) }}</h3>
<p>Baki Komuditi</p>
</div>
<div class="icon">
</div>
{{-- <a href="{{ route('home.gadaian6bulan') }}" class="small-box-footer">More info <i class="fas fa-arrow-circle-right"></i></a> --}}
</div>
</div>
{{-- End Fourth Column --}}
</div>