tambah column 1% dan ujrah
This commit is contained in:
@@ -72,6 +72,8 @@
|
||||
<th>Nilai Marhun Asal (RM)</th>
|
||||
<th>Pembiayaan (RM)</th>
|
||||
<th>Keuntungan (RM)</th>
|
||||
<th>1% (RM)</th>
|
||||
<th>Ujrah (RM)</th>
|
||||
<th>Caj Lelong (RM)</th>
|
||||
<th>Harga Asas (RM)</th>
|
||||
<th>Baki Lelong (RM)</th>
|
||||
@@ -91,7 +93,9 @@
|
||||
<td>{{ $marhun['berat'] }}</td>
|
||||
<td>{{ number_format($marhun['nilaimarhun'], 2, '.', ',') }}</td>
|
||||
<td>{{ number_format($marhun['pinjaman'] , 2, '.', ',') }}</td>
|
||||
<td>{{ number_format($marhun['bakiupah'], 2, '.', ',') }}</td>
|
||||
<td>{{ number_format($marhun['bakiupah'], 2, '.', ',') }}</td>
|
||||
<td>{{ number_format($marhun['onepercent'], 2, '.', ',') }}</td>
|
||||
<td>{{ number_format($marhun['ujrah'], 2, '.', ',') }}</td>
|
||||
<td>{{ number_format($marhun['cajlelong'], 2, '.', ',') }}</td>
|
||||
<td>{{ number_format($marhun['hargaasas'], 2, '.', ',') }}</td>
|
||||
@php
|
||||
@@ -124,7 +128,9 @@
|
||||
<td><b>{{ number_format($total_berat, 2, '.', ',') }}</b></td>
|
||||
<td><b>{{ number_format($total_nilaimarhun, 2, '.', ',') }}</b></td>
|
||||
<td><b>{{ number_format($total_pinjaman, 2, '.', ',') }}</b></td>
|
||||
<td><b>{{ number_format($total_bakiupah, 2, '.', ',') }}</b></td>
|
||||
<td><b>{{ number_format($total_bakiupah, 2, '.', ',') }}</b></td>
|
||||
<td><b>{{ number_format($total_onepercent, 2, '.', ',') }}</b></td>
|
||||
<td><b>{{ number_format($total_ujrah, 2, '.', ',') }}</b></td>
|
||||
<td><b>{{ number_format($total_cazlelong, 2, '.', ',') }}</b></td>
|
||||
<td><b>{{ number_format($total_hargaasas, 2, '.', ',') }}</b></td>
|
||||
<td align = 'right'><b>@if($bakilelong > 0)
|
||||
|
||||
@@ -63,7 +63,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<table class="table text-right table-bordered" id="senaraitemp" style="width:100%">
|
||||
<thead class="bg-primary text-white">
|
||||
<thead class="bg-success text-white">
|
||||
<tr>
|
||||
<th><input type="checkbox" aria-label="Checkbox for following text input" id="checkall"></th>
|
||||
<th>Bil</th>
|
||||
@@ -93,7 +93,7 @@
|
||||
<td>{{ number_format($send['total_pembiayaan'] , 2) }} </td>
|
||||
<td>{{ number_format($send['total_bakipjm'] , 2) }} </td>
|
||||
<td>
|
||||
<a href=" {{ route('analisa.tempbycawsimulasi', [$send['kodcaw'],$t_gadai1,$fasa]) }} " data-toggle="tooltip" data-placement="top" title="Butiran Gadaian"><i class="far fa-edit"></i></a>
|
||||
<a href=" {{ route('analisaujrah.tempbycawsimulasi', [$send['kodcaw'],$t_gadai1,$fasa]) }} " data-toggle="tooltip" data-placement="top" title="Butiran Gadaian"><i class="far fa-edit"></i></a>
|
||||
</td>
|
||||
</tr>
|
||||
@endif
|
||||
@@ -102,7 +102,7 @@
|
||||
</table>
|
||||
|
||||
<div class="modal-footer; text-center" style="margin-top:2%; margin-bottom:2%;">
|
||||
<a href="{{ route('analisa.janasimulasi') }}" class="btn btn-primary" style="width:8%;">Kembali</a>
|
||||
<a href="{{ route('analisaujrah.janasimulasi') }}" class="btn btn-primary" style="width:8%;">Kembali</a>
|
||||
<button type="submit" class="btn btn-success">Jana Simulasi</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
@@ -181,8 +181,9 @@
|
||||
<th>Berat (gm)</th>
|
||||
<th>Nilai Marhun Asal (RM)</th>
|
||||
<th>Pembiayaan (RM)</th>
|
||||
<th>K.Ujrah(RM)</th>
|
||||
{{--<th>Harga Asas (RM)</th>--}}
|
||||
<th>Keuntungan (RM)</th>
|
||||
<th>1% (RM)</th>
|
||||
<th>Ujrah (RM)</th>
|
||||
<th>Caj (RM)</th>
|
||||
<th>Harga Asas (RM)</th>
|
||||
<th>Baki (RM)</th>
|
||||
@@ -200,7 +201,8 @@
|
||||
<td>{{ number_format($caw['n_marhun'], 2, '.', ',') }}</td>
|
||||
<td>{{ number_format($caw['pinjaman'], 2, '.', ',') }}</td>
|
||||
<td>{{ number_format($caw['upahsimpan'], 2, '.', ',') }}</td>
|
||||
{{--<td>{{ number_format($caw['hargaasas'], 2, '.', ',') }}</td>--}}
|
||||
<td>{{ number_format($caw['onepercent'], 2, '.', ',') }}</td>
|
||||
<td>{{ number_format($caw['ujrah'], 2, '.', ',') }}</td>
|
||||
<td>{{ number_format($caw['cajlelong'], 2, '.', ',') }}</td>
|
||||
<td>{{ number_format($caw['hargaasas'], 2, '.', ',') }}</td>
|
||||
<td>{{ number_format($caw['bakilelong'], 2, '.', ',') }}</td>
|
||||
@@ -216,7 +218,9 @@
|
||||
<td><b>{{ number_format($total_nilaimarhun, 2, '.', ',') }}</b></td>
|
||||
<td><b>{{ number_format($total_pinjaman, 2, '.', ',') }}</b></td>
|
||||
<td><b>{{ number_format($total_bakiupah, 2, '.', ',') }}</b></td>
|
||||
<td><b>{{ number_format($total_cazlelong, 2, '.', ',') }}</b></td>
|
||||
<td><b>{{ number_format($total_onepercent, 2, '.', ',') }}</b></td>
|
||||
<td><b>{{ number_format($total_ujrah, 2, '.', ',') }}</b></td>
|
||||
<td><b>{{ number_format($total_cazlelong, 2, '.', ',') }}</b></td>
|
||||
<td><b>{{ number_format($total_hargaasas, 2, '.', ',') }}</b></td>
|
||||
{{--<td><b>{{ number_format($total_cazlelong, 2, '.', ',') }}</b></td>--}}
|
||||
<td><b>{{ number_format($total_bakilelong, 2, '.', ',') }}</b></td>
|
||||
|
||||
@@ -0,0 +1,136 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('content')
|
||||
<div class="container-fluid">
|
||||
<div class="row ">
|
||||
<div class="col mx-auto p-4">
|
||||
<div class="card">
|
||||
<div class="card-header header-style">
|
||||
<a href="javascript:window.history.go(-1);" class="header-style-icon">
|
||||
<i class="fas fa-arrow-left"></i>
|
||||
</a>
|
||||
<div class="header-style-title">
|
||||
Butiran Gadaian Ujrah Cawangan {{ $details }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
{{-- <button type="button" class="btn btn-light" ><a href="javascript:window.history.go(-1);"><h3><i class="fas fa-arrow-alt-circle-left"></i></h3></a></button>
|
||||
|
||||
<h3 class="pt-3" style="margin-bottom:2%; margin-top:1%;">Butiran Gadaian Cawangan {{ $details }}</h3> --}}
|
||||
|
||||
@if ($message = Session::get('failed'))
|
||||
<div class="alert alert-danger">
|
||||
<p>{{ $message }}</p>
|
||||
</div>
|
||||
@endif
|
||||
<form action="{{route('analisaujrah.senaraitempsimulasi')}}" id="formtlelong" method="POST">
|
||||
|
||||
@csrf
|
||||
<table class="table text-right table-bordered" id="detailsgadai" style="width:100%; margin-top:1%;">
|
||||
<thead class="bg-success text-white">
|
||||
<tr>
|
||||
<th>Bil</th>
|
||||
<th>No Rujukan</th>
|
||||
<th>No Kad Pengenalan</th>
|
||||
<th>Tempoh</th>
|
||||
<th>Berat (gm)</th>
|
||||
<th>Nilai Marhun Asal (RM)</th>
|
||||
<th>Pembiayaan (RM)</th>
|
||||
<th>Baki Pembiayaan (RM)</th>
|
||||
<th>Jumlah Bayaran (RM)</th>
|
||||
<th>Keuntungan 6 Bulan (RM)</th>
|
||||
<th>Keuntungan Semasa (RM)</th>
|
||||
<th>Tamat Kontrak</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($getsurat as $surat)
|
||||
<tr>
|
||||
<td>{{ $loop->iteration }}</td>
|
||||
<td style='white-space:nowrap;'>{{ $surat['list_norujukan'][0]['norujukan'] }}</td>
|
||||
<td>{{ $surat['list_norujukan'][0]['nokp'] }}</td>
|
||||
<td>{{ $surat['list_norujukan'][0]['tempoh'] }}</td>
|
||||
<td>{{ number_format($surat['list_norujukan'][0]['berat'] , 2, '.', ',') }}</td>
|
||||
<td>{{ number_format($surat['list_norujukan'][0]['nilaimarhun'], 2, '.', ',') }}</td>
|
||||
<td>{{ number_format($surat['list_norujukan'][0]['pinjaman'] , 2, '.', ',') }}</td>
|
||||
<td>{{ number_format($surat['list_norujukan'][0]['bakipjm'] , 2, '.', ',') }}</td>
|
||||
<td>{{ number_format($surat['ktlhbyr'] , 2, '.', ',')}}</td>
|
||||
<td>{{ number_format($surat['list_norujukan'][0]['bakiupah'], 2, '.', ',') }}</td>
|
||||
<td>{{ number_format($surat['keuntungan'] , 2, '.', ',') }}</td>
|
||||
<td style='white-space:nowrap;'>{{ $surat['list_norujukan'][0]['t_matang1'] }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
//Enable tooltips everywhere
|
||||
$(function () {
|
||||
$('[data-toggle="tooltip"]').tooltip()
|
||||
})
|
||||
function kembali() {
|
||||
$("#formtlelong").submit();
|
||||
}
|
||||
var tabledetailsgadai = $('#detailsgadai').DataTable({
|
||||
"columnDefs": [
|
||||
{
|
||||
"targets": 0,
|
||||
"orderable": false
|
||||
},
|
||||
{
|
||||
"targets": 8,
|
||||
"orderable": true
|
||||
}
|
||||
],
|
||||
order: [[1, 'asc']],
|
||||
"info": false,
|
||||
"lengthChange": false,
|
||||
"pageLength": 15,
|
||||
dom: 'Bfrtip',
|
||||
buttons: [
|
||||
// {
|
||||
// className: 'btn btn-outline-success pl-4 pr-4 btn-sm addcaw',
|
||||
// text: '<i class="fas fa-plus" id="test"></i>',
|
||||
// titleAttr: 'PDF Senarai Gadaian',
|
||||
// action: function ( e, dt, node, config ) {
|
||||
// // alert( 'Button activated' );
|
||||
// // console.log('hye');
|
||||
|
||||
// $('#myModal').modal("show");
|
||||
// $('#myModal').on('shown.bs.modal', function () {
|
||||
// $('#rolename').trigger('focus')
|
||||
// })
|
||||
// }
|
||||
// },
|
||||
// {
|
||||
// className: 'btn btn-outline-secondary pl-4 pr-4 btn-sm export',
|
||||
// titleAttr: 'Senarai Gadaian Excel',
|
||||
// text: '<i class="fas fa-download"></i>',
|
||||
// action: function ( e, dt, node, config ) {
|
||||
// $("#exportform").submit();
|
||||
// }
|
||||
// },
|
||||
// {
|
||||
// className: 'btn btn-outline-secondary pl-4 pr-4 btn-sm export',
|
||||
// titleAttr: 'Senarai Gadaian PDF',
|
||||
// text: '<i class="fas fa-download"></i>',
|
||||
// action: function ( e, dt, node, config ) {
|
||||
// $("#exportform").submit();
|
||||
// }
|
||||
// }
|
||||
]
|
||||
});
|
||||
|
||||
$('.addcaw').tooltip();
|
||||
$('.export').tooltip();
|
||||
// $( '.dt-buttons').addClass('btn-group');
|
||||
$( '.addcaw').removeClass('dt-button');
|
||||
$( '.export').removeClass('dt-button');
|
||||
</script>
|
||||
|
||||
@endsection
|
||||
Reference in New Issue
Block a user