132 lines
5.3 KiB
PHP
132 lines
5.3 KiB
PHP
@extends('layouts.app')
|
|
@section('content')
|
|
<div class="container-fluid">
|
|
<div class="row ">
|
|
<div class="col">
|
|
<div class="card">
|
|
<div class="card-header header-style">
|
|
<div class="header-style-title">
|
|
Kebenaran Bayaran Tunai
|
|
</div>
|
|
</div>
|
|
<div class="card-body">
|
|
@if ($message = Session::get('success'))
|
|
<div class="alert alert-success">
|
|
<p>{{ $message }}</p>
|
|
</div>
|
|
@endif
|
|
<table class="table table-bordered text-center" id="senarailelongonline" style="width:100%">
|
|
<thead class="bg-primary text-white">
|
|
<tr>
|
|
<th>No</th>
|
|
<th>Batch Lelong</th>
|
|
<th>Tarikh Lelong</th>
|
|
<th>Cawangan</th>
|
|
<th>Status Export</th>
|
|
<th>Harga Emas Semasa</th>
|
|
<th>Tempoh</th>
|
|
<th>Caj Lelong</th>
|
|
<th>Status Lelong</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach($arrayinfo as $lel)
|
|
<tr>
|
|
<td>{{ $loop->iteration }}</td>
|
|
<td>{{ $lel['detail']['lelong_id']}}</td>
|
|
<td>@php
|
|
$myDateTime = DateTime::createFromFormat('Y-m-d', $lel['detail']['tarikh_lelong'] );
|
|
$t_lelong = $myDateTime->format('d-m-Y');
|
|
echo($t_lelong);
|
|
@endphp</td>
|
|
<td class="text-left">
|
|
@foreach($lel['detailsinfo'] as $details)
|
|
<a class="btn btn-primary btn-sm m-1" href=" {{ route('pembida.senaraipemenangbycaw', ['lelong_id'=>$lel['detail']['lelong_id'], 'kodcaw'=>$details['caw_code']]) }} " data-toggle="tooltip" data-placement="top" title="Butiran Bidaan"><i class="far fa-edit"></i></a>
|
|
<span class="m-2">{{ $details['caw_name']}}
|
|
</span><br>
|
|
@endforeach
|
|
</td>
|
|
<td class="text-left">
|
|
@foreach($lel['detailsinfo'] as $details)
|
|
<span class="m-2"> @if($details['export_data_sts'] == 'SUCCESS')
|
|
<button class="btn btn-success btn-sm m-1" disabled>Selesai Export</button>
|
|
@elseif($details['export_data_sts'] == 'SUCCESS')
|
|
<button class="btn btn-danger btn-sm m-1" disabled>Belum Export</button>
|
|
@endif
|
|
|
|
</span><br>
|
|
@endforeach
|
|
</td>
|
|
<td>{{ $lel['detail']['harga_emas_asas'] }}</td>
|
|
<td>{{ $lel['detail']['jbg'] }}</td>
|
|
<td>{{ $lel['detail']['cajlelong'] }}</td>
|
|
<td>
|
|
@if($lel['detail']['sts_lelong'] == 3)
|
|
<button class="btn btn-success btn-sm" disabled>LELONG SELESAI</button>
|
|
@endif
|
|
</td>
|
|
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
//Enable tooltips everywhere
|
|
$(function () {
|
|
$('[data-toggle="tooltip"]').tooltip()
|
|
})
|
|
var tablesenarailelongonline = $('#senarailelongonline').DataTable({
|
|
"columnDefs": [
|
|
{
|
|
"targets": 0,
|
|
"orderable": false
|
|
},
|
|
{
|
|
"targets": 7,
|
|
"orderable": false
|
|
}
|
|
],
|
|
order: [[0, '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 |