Merged in atie (pull request #3)

update senarai ranking bidaan pembida pdf
This commit is contained in:
izzati zulkifli
2023-06-11 03:59:04 +00:00
2 changed files with 5 additions and 1 deletions
@@ -320,6 +320,8 @@ class ReportController extends Controller
public function senarailapbidaanpdf ($lelong_id, $kodcaw){
$lel = Lelong::with('cawangan')->find($lelong_id);
$datebida = $lel->tarikh_lelong;
$arraydetails = [];
$arrayinfocaw = [];
@@ -347,6 +349,7 @@ class ReportController extends Controller
$laporanpembida= LelongBid::join('lelongbidder','lelongbid.id','=','lelongbidder.lelongbid_id')
->select('lelongbid_id','norujukan','hargaasas')
->where('masa_bidaan', 'LIKE', '%'.$datebida.'%')
->where('lelongbid.kodcaw',$kodcaw)
->where('lelongbid.lelong_id','=',$lelong_id)
->groupBy('lelongbid_id')
@@ -362,6 +365,7 @@ class ReportController extends Controller
foreach($laporanpembida as $laporan)
{
$details = LelongBidder::where('lelongbid_id',$laporan['lelongbid_id'])
->where('masa_bidaan', 'LIKE', '%'.$datebida.'%')
->orderBy('hargabida','desc')
->orderBy('masa_bidaan','asc')
->get()
@@ -173,7 +173,7 @@ tr:nth-child(even) {
@foreach ($arraydetails as $laporan)
<tr>
<td>{{ $loop->iteration }}</td>
<td>{{ $laporan['laporan']['norujukan']}}</td>
<td style="white-space: nowrap;">{{ $laporan['laporan']['norujukan']}}</td>
<td style="white-space: nowrap;">
@foreach($laporan['details'] as $details)