93 lines
3.8 KiB
PHP
93 lines
3.8 KiB
PHP
@extends('layouts.app')
|
|
|
|
@section('content')
|
|
|
|
<div class="container-fluid">
|
|
<div class="row ">
|
|
<div class="col mx-auto p-4">
|
|
<div class="card">
|
|
<div class="card-header header-style">
|
|
<a href="{{ route('marhun.senarailelongscan') }}" class="header-style-icon">
|
|
<i class="fas fa-arrow-left"></i>
|
|
</a>
|
|
<div class="header-style-title">
|
|
Senarai Lelongan Scan
|
|
</div>
|
|
</div>
|
|
<div class="card-body">
|
|
<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>Status Lelong</th>
|
|
<th>Tindakan</th>
|
|
<th>Scan Keluar</th>
|
|
<th>Scan Masuk</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach($arrayinfo as $lel)
|
|
<tr>
|
|
<td>{{$loop->iteration}}</td>
|
|
<td>{{ $lel['info']['lelong_id']}}</td>
|
|
<td>@php
|
|
$myDateTime = DateTime::createFromFormat('Y-m-d', $lel['info']['tarikh_lelong'] );
|
|
$t_lelong = $myDateTime->format('d-m-Y');
|
|
echo($t_lelong);
|
|
@endphp</td>
|
|
<td>
|
|
@if($lel['info']['sts_lelong'] == 0)
|
|
<button class="btn btn-warning btn-sm" disabled>LELONG BELUM BERMULA</button>
|
|
@endif
|
|
</td>
|
|
<td>
|
|
@if($lel['info']['sts_lelong'] == 0)
|
|
<a class="btn btn-warning btn-sm" href="{{ route('marhun.exportmarhundetails', ['lelong_id'=>$lel['info']['lelong_id']]) }}" data-toggle="tooltip" data-placement="top" title="Muat Turun Senarai Marhun" style="margin-right:40px"><i class="fas fa-download"></i></a>
|
|
@endif
|
|
</td>
|
|
<td>
|
|
@if($lel['info']['sts_lelong'] == 0)
|
|
<a class="btn btn-info btn-sm" href=" {{ route('marhun.scanbarcode', ['lelong_id'=>$lel['info']['lelong_id']]) }} " data-toggle="tooltip" data-placement="top" title="Senarai Lelong Marhun"><i class="far fa-edit"></i></a>
|
|
@endif
|
|
</td>
|
|
<td>
|
|
@if($lel['info']['sts_lelong'] == 0)
|
|
<a class="btn btn-info btn-sm" href=" {{ route('marhun.scanbarcodemasuk', ['lelong_id'=>$lel['info']['lelong_id']]) }} " data-toggle="tooltip" data-placement="top" title="Senarai Lelong Marhun"><i class="far fa-edit"></i></a>
|
|
@endif
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
$(function() {
|
|
$('[data-toggle="tooltip"]').tooltip()
|
|
})
|
|
|
|
var tablesenarailelongonline = $('#senarailelongonline').DataTable({
|
|
"columnDefs": [{
|
|
"targets": 0,
|
|
"orderable": false
|
|
},
|
|
{
|
|
"targets": 3,
|
|
"orderable": false
|
|
}
|
|
],
|
|
order: [
|
|
[1, 'asc']
|
|
],
|
|
"info": false,
|
|
"lengthChange": false,
|
|
"pageLength": 15,
|
|
dom: 'Bfrtip',
|
|
});
|
|
</script>
|
|
|
|
@endsection |