148 lines
6.6 KiB
PHP
148 lines
6.6 KiB
PHP
@extends('layouts.app')
|
|
|
|
@section('content')
|
|
<div class="container-fluid">
|
|
<div class="row ">
|
|
<div class="col-md-12 mx-auto card">
|
|
<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('notistamatkontrak.senaraitemp')}}" id="formtlelong" method="POST">
|
|
<input type="hidden" name="t_lelong" value="{{ $tarikh_lelong }}">
|
|
@csrf
|
|
<div class="container">
|
|
<div class="row mb-2">
|
|
<div class="col-md-12 mx-auto card p-4" style="margin-top:2%; margin-bottom:2%;">
|
|
<p> <b>Tarikh Lelong : </b> {{ $t_lelongdisplay }}</p>
|
|
<p> <b>Tarikh Gadai Sehingga : </b> @php
|
|
$myDateTime = DateTime::createFromFormat('Y-m-d', $t_lelong );
|
|
$datez = $myDateTime->format('d-m-Y');
|
|
echo($datez);
|
|
@endphp</p>
|
|
<p> <b>Tarikh Perlu Blast Notis SMS(30 Hari) : </b> @php
|
|
$myDateTime = DateTime::createFromFormat('Y-m-d', $t_lelong );
|
|
$datez1 = $myDateTime->modify('-1 month')->format('d-m-Y');
|
|
echo($datez1);
|
|
@endphp</p>
|
|
<p> <b>Tarikh Perlu Daftar Batch Lelong(20 Hari) : </b>@php
|
|
$myDateTime = DateTime::createFromFormat('Y-m-d', $t_lelong );
|
|
$datez1 = $myDateTime->modify('-20 days')->format('d-m-Y');
|
|
echo($datez1);
|
|
@endphp</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<table class="table table-striped table-xl text-center" id="detailsgadai" style="width:100%; margin-top:1%;">
|
|
<thead class="bg-primary text-white">
|
|
<tr>
|
|
<th>Bil</th>
|
|
<th>No Rujukan</th>
|
|
<th>No Kad Pengenalan</th>
|
|
<th>Tempoh</th>
|
|
<th>Berat (gm)</th>
|
|
<th>Pembiayaan (RM)</th>
|
|
<th>Baki Pembiayaan (RM)</th>
|
|
<th>Keuntungan 6 Bulan (RM)</th>
|
|
<th>Keuntungan Telah Bayar (RM)</th>
|
|
<th>Nilai Marhun (RM)</th>
|
|
<th>Tamat Kontrak</th>
|
|
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach($getsurat as $surat)
|
|
<tr>
|
|
<td>{{ $loop->iteration }}</td>
|
|
<td>{{ $surat['list_norujukan'][0]['norujukan'] }}</td>
|
|
<td>{{ $surat['list_norujukan'][0]['nokp'] }}</td>
|
|
<td>{{ $surat['list_norujukan'][0]['tempoh'] }}</td>
|
|
<td>{{ $surat['list_norujukan'][0]['berat'] }}</td>
|
|
<td>{{ $surat['list_norujukan'][0]['pinjaman'] }}</td>
|
|
<td>{{ $surat['list_norujukan'][0]['bakipjm'] }}</td>
|
|
<td>{{ $surat['list_norujukan'][0]['bakiupah'] }}</td>
|
|
<td>{{ $surat['list_norujukan'][0]['ansakhir'] }}</td>
|
|
<td>{{ $surat['list_norujukan'][0]['nilaimarhun'] }}</td>
|
|
<td>{{ $surat['list_norujukan'][0]['t_matang1'] }}</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
<div class="modal-footer">
|
|
<button type="button" class="btn btn-primary" onclick="kembali()" style="margin-left:2%; width:9%;">Kembali</button>
|
|
</div>
|
|
</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
|