121 lines
4.5 KiB
PHP
121 lines
4.5 KiB
PHP
@extends('layouts.app')
|
|
|
|
@section('content')
|
|
<div class="container-fluid">
|
|
<div class="row ">
|
|
<div class="col-md-11 mx-auto card p-4">
|
|
<div class="nav nav-tabs" id="nav-tab" role="tablist">
|
|
<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>
|
|
</div>
|
|
|
|
@if ($message = Session::get('success'))
|
|
<div class="alert alert-success">
|
|
<p>{{ $message }}</p>
|
|
</div>
|
|
@endif
|
|
|
|
<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>No rujukan : </b> {{ $tangguhlelong[0]['norujukan'] }}</p>
|
|
<p> <b>Pembiayaan : </b> {{ $tangguhlelong[0]['pinjaman'] }}</p>
|
|
<p> <b>Nota : </b> {{ $tangguhlelong[0]['tangguh_nota'] }}</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<form id="exportform" action="" method="POST">
|
|
<input type="hidden" name="type" value="User">
|
|
<table class="table table-striped table-xl text-center" id="tablelelong" style="width:100%">
|
|
<thead class="bg-primary text-white">
|
|
<tr>
|
|
<th>Bil</th>
|
|
<th>Marhun</th>
|
|
<th>Karat</th>
|
|
<th>Berat</th>
|
|
<th>Harga (RM)</th>
|
|
<th>Nilai Marhun</th>
|
|
<th>Nota</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach ($tangguhlelong as $index1=>$tangguhlel)
|
|
<tr>
|
|
<td>{{ $loop->iteration }}</td>
|
|
<td>{{ $tangguhlel->marhun }}</td>
|
|
<td>{{ $tangguhlel->karat }}</td>
|
|
<td>{{ $tangguhlel->berat }}</td>
|
|
<td>{{ $tangguhlel->harga }}</td>
|
|
<td>{{ $tangguhlel->n_marhun }}</td>
|
|
<td>{{ $tangguhlel->gadai_nota }}</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
</form>
|
|
<div class="modal-footer" style="margin-top:2%;">
|
|
{{-- <a href="{{ route('pengesahan.senaraitangguhlelong', [$id, 'caw_name'=>$caw_names->caw_name, 'caw_code'=>$caw_names->caw_code]) }}" class="btn btn-primary">Kembali</a> --}}
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
<script>
|
|
//Enable tooltips everywhere
|
|
$(function () {
|
|
$('[data-toggle="tooltip"]').tooltip()
|
|
})
|
|
|
|
var tablelelong = $('#tablelelong').DataTable( {
|
|
"columnDefs": [
|
|
{
|
|
"targets": 0,
|
|
"orderable": false
|
|
},
|
|
{
|
|
"targets": 8,
|
|
"orderable": false
|
|
}
|
|
],
|
|
order: [[1, 'asc']],
|
|
// "ordering": false,
|
|
"info": false,
|
|
"lengthChange": false,
|
|
"pageLength": 15,
|
|
dom: 'Bfrtip',
|
|
buttons: [
|
|
// 'copy', 'excel', 'pdf'
|
|
// { text: 'copy', className: 'btn btn-primary' },
|
|
{
|
|
className: 'btn btn-outline-success pl-4 pr-4 btn-sm addsim',
|
|
text: '<i class="fas fa-plus" id="test"></i>',
|
|
titleAttr: 'Tambah Simulasi',
|
|
action: function ( e, dt, node, config ) {
|
|
alert( 'Button activated' );
|
|
}
|
|
},
|
|
{
|
|
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();
|
|
}
|
|
}
|
|
]
|
|
});
|
|
|
|
$('.addsim').tooltip();
|
|
$('.export').tooltip();
|
|
// $( '.dt-buttons').addClass('btn-group');
|
|
$( '.addsim').removeClass('dt-button');
|
|
$( '.export').removeClass('dt-button');
|
|
|
|
function selectall(cb) {
|
|
tablelelong.rows().nodes().to$().find('input[type="checkbox"]').each(function(){
|
|
$(this).prop('checked', cb.checked);
|
|
})
|
|
}
|
|
</script>
|
|
|
|
@endsection
|