fasa2lelong

This commit is contained in:
hafifierahman
2022-04-07 06:21:55 +08:00
parent 28b985f72b
commit 2d455e2ab0
5 changed files with 77 additions and 68 deletions
+21 -5
View File
@@ -22,31 +22,47 @@
<div class="row">
<div class="col-md-12">
@if(sizeof($senaraibatch) !== 0)
@if(sizeof($senaraibatchfasa1) !== 0 || sizeof($senaraibatchfasa2) !== 0)
<table class="table table-bordered table-striped">
<thead class="bg-dark">
<tr>
<th scope="col">No.</th>
<th scope="col">Batch No.</th>
<th scope="col">Fasa</th>
<th scope="col">Bilangan Aktif</th>
<th scope="col">Tarikh Lelong</th>
<th scope="col">Action</th>
</tr>
</thead>
<tbody>
@foreach($senaraibatch as $index=>$sb)
@foreach($senaraibatchfasa1 as $index=>$sb)
<tr>
<td>{{ $loop->iteration }}</td>
<td>{{ $sb['batchno'] }}</td>
<td>Fasa 1</td>
<td class="text-danger font-weight-bold">{{ $sb['total'] }}</td>
<td>{{ $sb['t_lelong'] }}</td>
<td class="text-center">
<a href="{{ route('lelongan.laporancetak', ['jeniscetakan' => 'cetak','batchno' => $sb['batchno']]) }}" class="btn btn-info text-white">Cetak</a>
<a href="{{ route('lelongan.laporancetak', ['jeniscetakan' => 'excel','batchno' => $sb['batchno']]) }}" target="_blank" class="btn btn-success text-white">Excel</a>
<a href="{{ route('lelongan.laporancetak', ['jeniscetakan' => 'pdf','batchno' => $sb['batchno']]) }}" target="_blank" class="btn btn-danger text-white">PDF</a>
<a href="{{ route('lelongan.laporancetak', ['jeniscetakan' => 'cetak','batchno' => $sb['batchno'],'fasa' => 1]) }}" class="btn btn-info text-white">Cetak</a>
<a href="{{ route('lelongan.laporancetak', ['jeniscetakan' => 'excel','batchno' => $sb['batchno'],'fasa' => 1]) }}" target="_blank" class="btn btn-success text-white">Excel</a>
<a href="{{ route('lelongan.laporancetak', ['jeniscetakan' => 'pdf','batchno' => $sb['batchno'],'fasa' => 1]) }}" target="_blank" class="btn btn-danger text-white">PDF</a>
</td>
</tr>
@endforeach
@foreach($senaraibatchfasa2 as $index=>$sb)
<tr>
<td>{{ $loop->iteration }}</td>
<td>{{ $sb['batchno'] }}</td>
<td>Fasa 2</td>
<td class="text-danger font-weight-bold">{{ $sb['total'] }}</td>
<td>{{ $sb['t_lelong'] }}</td>
<td class="text-center">
<a href="{{ route('lelongan.laporancetak', ['jeniscetakan' => 'cetak','batchno' => $sb['batchno'],'fasa' => 2]) }}" class="btn btn-info text-white">Cetak</a>
<a href="{{ route('lelongan.laporancetak', ['jeniscetakan' => 'excel','batchno' => $sb['batchno'],'fasa' => 2]) }}" target="_blank" class="btn btn-success text-white">Excel</a>
<a href="{{ route('lelongan.laporancetak', ['jeniscetakan' => 'pdf','batchno' => $sb['batchno'],'fasa' => 2]) }}" target="_blank" class="btn btn-danger text-white">PDF</a>
</td>
</tr>
@endforeach
</tbody>
</table>
@else