add senarai lelong tak laku
This commit is contained in:
@@ -5,7 +5,6 @@
|
||||
<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>
|
||||
@@ -13,9 +12,10 @@
|
||||
@endif
|
||||
<form id="exportform" action="" method="POST">
|
||||
<input type="hidden" name="type" value="User">
|
||||
<table class="table table-striped table-xl" id="lelong" style="width:100%">
|
||||
<table class="table table-striped table-xl text-center" id="lelongtaklaku" style="width:100%">
|
||||
<thead class="bg-primary text-white">
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Tarikh Lelong</th>
|
||||
<th>Kod Cawangan</th>
|
||||
<th>Nama Cawangan</th>
|
||||
@@ -30,30 +30,45 @@
|
||||
<th>Baki Lelong (RM)</th>
|
||||
<th>Status Lelong (RM)</th>
|
||||
<th>Status Laporan Lelong (RM)</th>
|
||||
<th>Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($lelongtaklaku as $leltaklaku)
|
||||
<tr>
|
||||
<td>{{ $loop->iteration }}</td>
|
||||
<td>{{ $leltaklaku->t_lelong }}</td>
|
||||
<td class="text-center">{{ $leltaklaku->kodcaw }}</td>
|
||||
<td>{{ $leltaklaku->caw_name }}</td>
|
||||
<td></td>
|
||||
<td> {{ $leltaklaku['suratlelongtaklaku'] }} </td>
|
||||
<td>{{ $leltaklaku->pinjaman }}</td>
|
||||
<td>{{ $leltaklaku->berat }}</td>
|
||||
<td>{{ $leltaklaku->nilaimarhun }}</td>
|
||||
<td>{{ $leltaklaku->hargaasas }}</td>
|
||||
<td>{{ $leltaklaku->upahsimpan }}</td>
|
||||
<td>{{ $leltaklaku->cajlelong }}</td>
|
||||
<td></td>
|
||||
<td>{{ $leltaklaku->baki }}</td>
|
||||
|
||||
<?php
|
||||
$rugi = '';
|
||||
$baki = '';
|
||||
if(strpos($leltaklaku->baki, '-') !== false)
|
||||
{
|
||||
$rugi = $leltaklaku->baki;
|
||||
}
|
||||
else {
|
||||
$baki = $leltaklaku->baki;
|
||||
}
|
||||
?>
|
||||
<td>{{$rugi}}</td>
|
||||
<td>{{$baki}}</td>
|
||||
@if($leltaklaku->status_jual == 0)
|
||||
<td style = "color:red" ><b>TIDAK LAKU</b> </td>
|
||||
@endif
|
||||
<td class="text-center">
|
||||
<a href=" # " target = "blank" ><i class="fas fa-download"></i></a>
|
||||
</td>
|
||||
<td>
|
||||
<input type="checkbox" aria-label="Checkbox for following text input" >
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
@endforeach
|
||||
@@ -66,4 +81,57 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
var tablelelongtaklaku = $('#lelongtaklaku').DataTable({
|
||||
"columnDefs": [
|
||||
{
|
||||
"targets": 0,
|
||||
"orderable": false
|
||||
},
|
||||
{
|
||||
"targets": 14,
|
||||
"orderable": false
|
||||
},
|
||||
{
|
||||
"targets": 15,
|
||||
"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
|
||||
|
||||
Reference in New Issue
Block a user