update pembayaransag.blade
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
</div>
|
||||
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-xl-12 mb-5">
|
||||
<div class="col-md-10 col-sm-12">
|
||||
<div class="card shadow">
|
||||
<div class="card-header mb-4 bg-dark border-0">
|
||||
<div class="row align-items-center">
|
||||
@@ -39,56 +39,44 @@
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="tab-content" id="myTabContent">
|
||||
|
||||
<div class="tab-pane fade show active" id="tabs-icons-text-2" role="tabpanel" aria-labelledby="tabs-icons-text-2-tab">
|
||||
|
||||
<div class="table-responsive text-center">
|
||||
<table class="table align-items-center" id="selepas_tawarruq" style="width: 100%;">
|
||||
<div class="form" >
|
||||
<div style="overflow-x: auto;">
|
||||
<table class="table align-items-left" id="selepas_tawarruq" style="width: 100%;">
|
||||
<thead class="thead-light">
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>No Rujukan</th>
|
||||
<th>Pembiayaan Asal</th>
|
||||
<th>Baki Pembiayaan</th>
|
||||
<th>Tempoh</th>
|
||||
<th>Keuntungan</th>
|
||||
<th>Bayaran</th>
|
||||
<div style="margin-bottom: 15px; text-align: left;">
|
||||
<i class="text-danger" style="font-size:12px;">Klik 'Klik Di Sini' untuk Pilihan Bayaran</i><br>
|
||||
<i class="text-danger" style="font-size:12px;">Amaun Semasa -> Amaun Keuntungan Semasa Sahaja.</i><br>
|
||||
<i class="text-danger" style="font-size:12px;">Amaun Lain -> Amaun Ansuran Pembiayaan & Amaun Keuntungan Semasa, Sila Masukkan Amaun</i>
|
||||
</div>
|
||||
<tr style="text-align: center;">
|
||||
<!-- <th width="10%">No</th> -->
|
||||
<th width="10%">No <br>Rujukan</th>
|
||||
<th width="10%">Bayaran</th>
|
||||
<th width="10%">Keuntungan</th>
|
||||
<th width="10%">Baki <br>Pembiayaan</th>
|
||||
<th width="10%">Pembiayaan Asal</th>
|
||||
<th width="10%">Tempoh</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
@php $counter = 1;$jenisbayaran = 'tawarruq'; @endphp
|
||||
@foreach($arraybayar as $index=>$bayar)
|
||||
@if($bayar['hargajualan'] != '')
|
||||
<tbody class="list">
|
||||
<tbody class="list" style="text-align: center;">
|
||||
<tr>
|
||||
<td>
|
||||
<!-- <td>
|
||||
{{ $counter }}
|
||||
</td>
|
||||
</td> -->
|
||||
<td>
|
||||
{{ $bayar['norujukan'] }}
|
||||
</td>
|
||||
<td>
|
||||
{{ number_format($bayar['pinjaman'],2) }}
|
||||
</td>
|
||||
<td>
|
||||
{{ number_format($bayar['bakipjm'],2) }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $bayar['tempoh'] }}
|
||||
</td>
|
||||
<td>
|
||||
@php
|
||||
$upahtawarruq = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/upahtawarruq/'. $bayar['kodcaw'] . '/' . $bayar['norujukan'])->json();
|
||||
@endphp
|
||||
{{ $upahtawarruq }}
|
||||
</td>
|
||||
<td>
|
||||
|
||||
<select name="sltbayaran" value="{{ old('sltbayaran') ? old('sltbayaran') : '' }}" class="form-control mb-2" data-upah="{{ $upahtawarruq }}" data-jenis="tawarruq" style="text-align: center; border: revert;">
|
||||
<option selected disabled>Pilih Bayaran</option>
|
||||
<option selected disabled class="text-warning">Klik Di Sini</option>
|
||||
<option value="fixed">Amaun Semasa</option>
|
||||
<option value="otheramount">Amaun Lain</option>
|
||||
</select>
|
||||
@@ -98,23 +86,37 @@
|
||||
<input type="hidden" name="txtjenisbayaran[]" value="{{ $jenisbayaran }}" style="text-align: center;" />
|
||||
<input type="hidden" name="txtnorujukanhidden[]" value="{{ $bayar['norujukan'] }}" style="text-align: center;" />
|
||||
<input type="hidden" name="txtkodcawhidden[]" value="{{ $bayar['kodcaw'] }}" style="text-align: center;" />
|
||||
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $upahtawarruq }}
|
||||
</td>
|
||||
<td>
|
||||
{{ number_format($bayar['bakipjm'],2) }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ number_format($bayar['pinjaman'],2) }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $bayar['tempoh'] }}
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
</tbody>
|
||||
@php $counter++; @endphp
|
||||
@endif
|
||||
@endforeach
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
<hr>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="col-md-10 col-sm-12">
|
||||
<div class="card shadow">
|
||||
<div class="card-header bg-dark border-0">
|
||||
@@ -131,7 +133,7 @@
|
||||
<table class="table align-items-center" id="ringkasan_bayaran" style="width: 100%;">
|
||||
<thead class="thead-light">
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<!-- <th>No</th> -->
|
||||
<th>No Rujukan</th>
|
||||
<th>Bayaran</th>
|
||||
</tr>
|
||||
@@ -143,9 +145,9 @@
|
||||
@if($bayar['hargajualan'] != '')
|
||||
<tbody class="list">
|
||||
<tr>
|
||||
<td>
|
||||
<!-- <td>
|
||||
{{ $counter }}
|
||||
</td>
|
||||
</td> -->
|
||||
<td>
|
||||
{{ $bayar['norujukan'] }}
|
||||
</td>
|
||||
|
||||
Reference in New Issue
Block a user