179 lines
7.3 KiB
PHP
179 lines
7.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">
|
|
<a href="{{ route('pembayaran.SenaraiLelongBayar') }}" class="header-style-icon">
|
|
<i class="fas fa-arrow-left"></i>
|
|
</a>
|
|
<div class="header-style-title">
|
|
Senarai Lelong : @foreach($datacaw as $data1)
|
|
{{$data1['caw_name']}}
|
|
@endforeach
|
|
</div>
|
|
</div>
|
|
<div class="card-body">
|
|
@if ($message = Session::get('success'))
|
|
<div class="alert alert-success">
|
|
<p>{{ $message }}</p>
|
|
</div>
|
|
@endif
|
|
<ul class="nav mb-2 nav-tabs" id="myTab" role="tablist">
|
|
<li class="nav-item">
|
|
<a class="nav-link active" id="sedang-lelong-tab" data-toggle="tab" href="#sedang-lelong" role="tab" aria-controls="sedang-lelong" aria-selected="false">
|
|
Lelongan Semasa
|
|
</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link" id="selesai-lelong-tab" data-toggle="tab" href="#selesai-lelong" role="tab" aria-controls="selesai-lelong" aria-selected="false">
|
|
Lelongan Selesai
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
<div class="tab-content" style="overflow-x: auto;" id="myTabContent">
|
|
<div class="tab-pane fade show active" id="sedang-lelong" role="tabpanel" aria-labelledby="sedang-lelong-tab">
|
|
<div style="overflow-x: auto;">
|
|
<table class="table table-bordered text-center" id="tablestatussedanglelong" style="width:100%">
|
|
<thead class="bg-primary text-white">
|
|
<tr>
|
|
<th>No</th>
|
|
<th>Batch Lelong</th>
|
|
{{-- <th>Cawangan</th> --}}
|
|
<th>Fasa</th>
|
|
<th>Tarikh Lelong</th>
|
|
<th>Status Lelong</th>
|
|
<th class="text-center">Tindakan</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@forelse($arraysms as $data)
|
|
<tr>
|
|
<td>{{$loop->iteration}}</td>
|
|
<td>{{ $data['info']['lelong_id'] }}</td>
|
|
{{-- <td align = 'left'>
|
|
@foreach($data['detailsinfo'] as $details)
|
|
<span class="m-2">{{$details['caw_name']}}</span><br>
|
|
@endforeach
|
|
</td> --}}
|
|
<td>{{ $data['info']['fasa'] }}</td>
|
|
<td>@php
|
|
$myDateTime = DateTime::createFromFormat('Y-m-d', $data['info']['tarikh_lelong'] );
|
|
$t_lelong = $myDateTime->format('d-m-Y');
|
|
echo($t_lelong);
|
|
@endphp</td>
|
|
<td>
|
|
@if($data['info']['sts_lelong'] == 3)
|
|
<button class="btn btn-success btn-sm" disabled>LELONG SELESAI</button>
|
|
@endif
|
|
</td>
|
|
<td><a class="btn m-1 btn-primary" href=" {{ route('pembayaran.kaunterpembayaran', ['lelong_id'=>$data['info']['lelong_id']]) }} " data-toggle="tooltip" data-placement="top" title="Butiran Bidaan"><i class="far fa-edit"></i></a></td>
|
|
</tr>
|
|
@empty
|
|
<td colspan="6">No Data Available</td>
|
|
@endforelse
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="tab-pane fade" id="selesai-lelong" role="tabpanel" aria-labelledby="selesai-lelong-tab">
|
|
<div style="overflow-x: auto;">
|
|
<table class="table table-bordered text-center" id="tablestatusselesailelong" style="width:100%">
|
|
<thead class="bg-primary text-white">
|
|
<tr>
|
|
<th>No</th>
|
|
<th>Batch Lelong</th>
|
|
{{-- <th>Cawangan</th> --}}
|
|
<th>Fasa</th>
|
|
<th>Tarikh Lelong</th>
|
|
<th>Status Lelong</th>
|
|
<th class="text-center">Tindakan</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach($arraysls as $data)
|
|
<tr>
|
|
<td>{{$loop->iteration}}</td>
|
|
<td>{{ $data['info']['lelong_id'] }}</td>
|
|
{{-- <td align = 'left'>
|
|
@foreach($data['detailsinfo'] as $details)
|
|
<span class="m-2">{{$details['caw_name']}}</span><br>
|
|
@endforeach
|
|
</td> --}}
|
|
<td>{{ $data['info']['fasa'] }}</td>
|
|
<td>@php
|
|
$myDateTime = DateTime::createFromFormat('Y-m-d', $data['info']['tarikh_lelong'] );
|
|
$t_lelong = $myDateTime->format('d-m-Y');
|
|
echo($t_lelong);
|
|
@endphp</td>
|
|
<td>
|
|
@if($data['info']['sts_lelong'] == 3)
|
|
<button class="btn btn-success btn-sm" disabled>LELONG SELESAI</button>
|
|
@endif
|
|
</td>
|
|
<td><a class="btn m-1 btn-primary" href=" {{ route('pembayaran.kaunterpembayaran', ['lelong_id'=>$data['info']['lelong_id']]) }} " data-toggle="tooltip" data-placement="top" title="Butiran Bidaan"><i class="far fa-edit"></i></a></td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
//Enable tooltips everywhere
|
|
$(function () {
|
|
$('[data-toggle="tooltip"]').tooltip()
|
|
})
|
|
var tablestatussedanglelong = $('#tablestatussedanglelong').DataTable({
|
|
"columnDefs": [
|
|
{
|
|
"targets": 0,
|
|
"orderable": false
|
|
},
|
|
{
|
|
"targets": 7,
|
|
"orderable": false
|
|
}
|
|
],
|
|
order: [[1, 'asc']],
|
|
// "ordering": false,
|
|
"info": false,
|
|
"lengthChange": false,
|
|
"pageLength": 15,
|
|
dom: 'Bfrtip',
|
|
|
|
});
|
|
|
|
var tablestatusselesailelong = $('#tablestatusselesailelong').DataTable({
|
|
"columnDefs": [
|
|
{
|
|
"targets": 0,
|
|
"orderable": false
|
|
},
|
|
{
|
|
"targets": 7,
|
|
"orderable": false
|
|
}
|
|
],
|
|
order: [[1, 'asc']],
|
|
// "ordering": false,
|
|
"info": false,
|
|
"lengthChange": false,
|
|
"pageLength": 15,
|
|
dom: 'Bfrtip',
|
|
|
|
});
|
|
|
|
// $('.addcaw').tooltip();
|
|
// $('.export').tooltip();
|
|
// // $( '.dt-buttons').addClass('btn-group');
|
|
// $( '.addcaw').removeClass('dt-button');
|
|
// $( '.export').removeClass('dt-button');
|
|
|
|
</script>
|
|
|
|
@endsection |