account: bayaran atas talian group by lelong id, date format

This commit is contained in:
Amirah22
2022-06-21 21:29:45 +08:00
parent e8ae3950cb
commit 3c551afd47
5 changed files with 61 additions and 30 deletions
@@ -15,22 +15,36 @@
<thead class="bg-primary text-white">
<tr>
<th>No</th>
<th>Cawangan</th>
<th>ID Lelong</th>
<th>Tarikh Lelong</th>
<th>Cawangan</th>
<th>Fasa</th>
<th>Status Lelong</th>
<th class="text-center">Tindakan</th>
</tr>
</thead>
<tbody>
@foreach($senarai as $data)
@foreach($arrayinfo as $data)
<tr>
<td>{{$loop->iteration}}</td>
<td>{{ $data->caw_name }}</td>
<td>{{ $data->tarikh_lelong }}</td>
<td>{{ $data->sts_lelong }}</td>
<td>
<a href=" {{ route('account.listbayaranonline', ['lelong_id'=>$data['lelong_id'], 'caw_code'=>$data['caw_code']]) }} " data-toggle="tooltip" data-placement="top" title="Senarai Pembida"><i class="far fa-edit"></i></a>
<td>{{ $loop->iteration }}</td>
<td>{{ $data['detail']['lelong_id']}}</td>
<td>@php
$myDateTime = DateTime::createFromFormat('Y-m-d', $data['detail']['tarikh_lelong'] );
$t_lelong = $myDateTime->format('d-m-Y');
echo($t_lelong);
@endphp</td>
<td align='left'>
@foreach($data['detailsinfo'] as $details)
<a href=" {{ route('account.listbayaranonline', ['lelong_id'=>$data['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>{{ $data['detail']['fasa'] }}</td>
<td>
@if($data['detail']['sts_lelong'] == 3)
<button class="btn btn-success btn-sm" disabled>LELONG SELESAI</button>
@endif
</td>
</tr>
@endforeach
</tbody>
@@ -13,7 +13,7 @@
<table class="table table-striped table-xl text-center" id="senarailelongonline" style="width:100%">
<thead class="bg-primary text-white">
<tr>
<th>Bil</th>
<th>No</th>
<th>ID Lelong</th>
<th>Tarikh Lelong</th>
<th>Cawangan</th>
@@ -21,10 +21,6 @@
<th>Tempoh</th>
<th>Caj Lelong</th>
<th>Status Lelong</th>
<<<<<<< Updated upstream
=======
<th class="text-center">Tindakan</th>
>>>>>>> Stashed changes
</tr>
</thead>
<tbody>
@@ -32,7 +28,11 @@
<tr>
<td>{{ $loop->iteration }}</td>
<td>{{ $lel['detail']['lelong_id']}}</td>
<td>{{ $lel['detail']['tarikh_lelong'] }}</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 align='left'>
@foreach($lel['detailsinfo'] as $details)
<a href=" {{ route('pembida.pembayaranbidaan', ['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>