140 lines
6.6 KiB
PHP
140 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">
|
|
@if ($message = Session::get('failed'))
|
|
<div class="alert alert-danger" style="margin-top:1%;">
|
|
<p>{{ $message }}</p>
|
|
</div>
|
|
@endif
|
|
<h3 class="pt-3" style="margin-left:1%;">Butiran Gadaian Mengikut Cawangan</h3>
|
|
<form action="{{route('notistamatkontrak.janadatatamatkontrak')}}" method="POST" enctype="multipart/form-data">
|
|
@csrf
|
|
|
|
<div class="container">
|
|
<div class="row mb-2">
|
|
<div class="col-md-11 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 );
|
|
$tarikhlelong = $myDateTime->modify('-12 month')->format('d-m-Y');
|
|
$t_gadai = $myDateTime->modify('-12 month')->format('Y-m-d');
|
|
echo($tarikhlelong);
|
|
@endphp</p>
|
|
<p> <b>Tarikh Perlu Blast Notis SMS(30 Hari) : </b> @php
|
|
$myDateTime = DateTime::createFromFormat('Y-m-d', $t_lelong );
|
|
$trkh_lelong = $myDateTime->format('Y-m-d');
|
|
$tblastnotis = $myDateTime->modify('-1 month')->format('d-m-Y');
|
|
echo($tblastnotis);
|
|
@endphp</p>
|
|
<p> <b>Tarikh Perlu Daftar Batch Lelong(20 Hari) : </b>@php
|
|
$myDateTime = DateTime::createFromFormat('Y-m-d', $t_lelong );
|
|
$tdaftarbatch = $myDateTime->modify('-20 days')->format('d-m-Y');
|
|
echo($tdaftarbatch);
|
|
@endphp</p>
|
|
<input type="hidden" class="form-control" id="trkh_lelong" name="trkh_lelong" value="@php echo($trkh_lelong) @endphp">
|
|
<input type="hidden" class="form-control" id="t_gadai" name="t_gadai" value="@php echo($t_gadai) @endphp">
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<table class="table table-striped table-xl text-center" id="senaraitemp" style="width:100%">
|
|
<thead class="bg-primary text-white">
|
|
<tr>
|
|
<th><input type="checkbox" aria-label="Checkbox for following text input" onclick="selectall(this)"></th>
|
|
<th>Kod Cawangan</th>
|
|
<th>Cawangan</th>
|
|
<th>Bil Lelong</th>
|
|
<th>Berat (gm)</th>
|
|
<th>Nilai Marhun</th>
|
|
<th>Pembiayaan (RM)</th>
|
|
<th>Baki Pembiayaan (RM)</th>
|
|
<th class="text-center">Tindakan</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach($senarai as $send)
|
|
<tr>
|
|
<td><input type="checkbox" aria-label="Checkbox for following text input" name="caw[]" id="caw" value = "{{ $send['kodcaw'] }}"></td>
|
|
<td>{{ $send['kodcaw'] }}</td>
|
|
<td>{{ $send['caw_name'] }}</td>
|
|
<td>{{ $send['bil_lelong'] }} </td>
|
|
<td>{{ $send['total_berat'] }} </td>
|
|
<td>{{ $send['total_nilaimarhun'] }} </td>
|
|
<td>{{ $send['total_pembiayaan'] }} </td>
|
|
<td>{{ $send['total_bakipjm'] }} </td>
|
|
<td>
|
|
<a href=" {{ route('notistamatkontrak.tempbycaw', [$send['kodcaw'], $t_lelong]) }} " data-toggle="tooltip" data-placement="top" title="Butiran Gadaian"><i class="far fa-edit"></i></a>
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
|
|
<div class="modal-footer; text-center" style="margin-top:2%; margin-bottom:2%;">
|
|
<a href="{{ route('notistamatkontrak.sebelumtamatkont') }}" class="btn btn-primary" style="width:8%;">Kembali</a>
|
|
<button type="submit" class="btn btn-success">Jana Simulasi</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script>
|
|
//Enable tooltips everywhere
|
|
$(function () {
|
|
$('[data-toggle="tooltip"]').tooltip()
|
|
})
|
|
var tablesenaraitemp = $('#senaraitemp').DataTable({
|
|
"columnDefs": [
|
|
{
|
|
"targets": 0,
|
|
"orderable": false
|
|
},
|
|
{
|
|
"targets": 8,
|
|
"orderable": false
|
|
}
|
|
],
|
|
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: 'Tambah Cawangan',
|
|
// 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: 'Export to CSV',
|
|
// 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
|