Files
lelong/resources/views/marhun/sentangguhlelongsah.blade.php
AmalinTamizi 1eba9769dd update title
2022-07-04 09:12:00 +08:00

117 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">
@if ($message = Session::get('success'))
<div class="alert alert-success">
<p>{{ $message }}</p>
</div>
@endif
<h3 class="pt-3" style="margin-left:1%;">Senarai Tangguh Lelong Yang Telah Disahkan Oleh Operasi</h3>
<br>
<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>Cawangan :</b> {{ $lelong['caw_name'] }} </p>
<p><b>Tarikh Lelong : </b> {{ $lelong['tarikh_lelong'] }} </p>
</div>
</div>
</div>
<br>
<form id="exportform" action="" method="POST">
<input type="hidden" name="type" value="User">
<table class="table table-striped table-xl text-center" id="sentangguhlelongsah" style="width:100%">
<thead class="bg-primary text-white">
<tr>
<th>Bil</th>
<th>No Rujukan</th>
<th>Marhun</th>
<th>Berat</th>
<th>Tarikh Tangguh</th>
<th>Pinjaman</th>
<th>Nota</th>
</tr>
</thead>
<tbody>
@foreach ($sdhdisahkan as $sah)
<tr>
<td>{{ $loop->iteration }}</td>
<td>{{ $sah['norujukan'] }}</td>
<td>{{ $sah['marhun'] }}</td>
<td>{{ $sah['berat'] }}</td>
<td>{{ $sah['ditangguh_pada'] }}</td>
<td>{{ $sah['pinjaman'] }}</td>
<td>
<button class="btn btn-primary btn btn-primary" disabled>{{ $sah['nota'] }}</button>
</td>
</tr>
@endforeach
</tbody>
</table>
</form>
<div class="modal-footer" style="margin-top:2%;">
<a href="{{ route('marhun.senlelmarhun') }}" class="btn btn-primary">Kembali</a>
</div>
</div>
</div>
</div>
<script>
//Enable tooltips everywhere
$(function () {
$('[data-toggle="tooltip"]').tooltip()
})
var tablesentangguhlelongsah = $('#sentangguhlelongsah').DataTable({
"columnDefs": [
{
"targets": 0,
"orderable": false
},
{
"targets": 6,
"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: '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