butiran bidaan
This commit is contained in:
@@ -202,7 +202,7 @@ class PembidaController extends Controller
|
||||
->where('lelongbidder.status_bidder', 1)
|
||||
->where('lelongbid.lelong_id', $request->lelong_id)
|
||||
->get();
|
||||
// dd($SAGWin);
|
||||
// dd($userdetails);
|
||||
|
||||
foreach($SAGWin as $index2=>$sag)
|
||||
{
|
||||
@@ -232,17 +232,19 @@ class PembidaController extends Controller
|
||||
$listwinner[$index1]['total_surat'] = sizeof($SAGWin);
|
||||
$listwinner[$index1]['totalBid'] = $SAGWin->sum('hargabida');
|
||||
$listwinner[$index1]['totalPay'] = $total_payment;
|
||||
$listwinner[$index1][$index2]['remarks'] = $detailspayment['remark'];
|
||||
$listwinner[$index1][$index2]['status_payment'] = $sag->status_payment;
|
||||
$listwinner[$index1][$index2]['status'] = $detailspayment['status'];
|
||||
$listwinner[$index1]['paymentid'] = $payment_id;
|
||||
$listwinner[$index1]['jenisbayaran']['remarks'] = $detailspayment['remark'];
|
||||
$listwinner[$index1]['jenisbayaran']['status_payment'] = $sag->status_payment;
|
||||
$listwinner[$index1]['jenisbayaran']['status'] = $detailspayment['status'];
|
||||
|
||||
}
|
||||
|
||||
return view('pembida.pembayaranbidaan',compact('listwinner'));
|
||||
}
|
||||
|
||||
public function detailsbidaan(Request $request)
|
||||
public function detailsbidaan($user_id, $payment_id)
|
||||
{
|
||||
dd($user_id);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<div class="alert alert-success">
|
||||
<p>{{ $message }}</p>
|
||||
</div>
|
||||
@endif
|
||||
@endif
|
||||
<form action="{{ route('pembida.update') }}" method="POST" id="formkemaskini">
|
||||
@csrf
|
||||
<input type="hidden" value="{{$user->id}}" class="form-control" name="userid" id="userid" readonly>
|
||||
|
||||
@@ -10,55 +10,58 @@
|
||||
<p>{{ $message }}</p>
|
||||
</div>
|
||||
@endif
|
||||
<table class="table table-striped table-xl text-center" id="senarailelongonline" style="width:100%">
|
||||
<thead class="bg-primary text-white">
|
||||
<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>Nama Pembida</th>
|
||||
<th>No Kad Pengenalan</th>
|
||||
<th>Bilangan Surat</th>
|
||||
<th> Jumlah Bidaan (RM)</th>
|
||||
<th> Amaun Telah Dibayar (RM)</th>
|
||||
<th>Status Pembayaran</th>
|
||||
<th>Remark</th>
|
||||
<th>Status</th>
|
||||
<th class="text-center">Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($listwinner as $index1=>$winner)
|
||||
<tr>
|
||||
<th>Bil</th>
|
||||
<th>Nama Pembida</th>
|
||||
<th>No Kad Pengenalan</th>
|
||||
<th>Bilangan Surat</th>
|
||||
<th> Jumlah Bidaan (RM)</th>
|
||||
<th> Amaun Telah Dibayar (RM)</th>
|
||||
<th>Status Pembayaran</th>
|
||||
<th>Remark</th>
|
||||
<th>Status</th>
|
||||
<th class="text-center">Action</th>
|
||||
<td>{{ $loop->iteration }}</td>
|
||||
<td>{{ $winner['details']['name'] }}</td>
|
||||
<td>{{ $winner['details']['nokp'] }}</td>
|
||||
<td>{{ $winner['total_surat'] }}</td>
|
||||
<td>{{ $winner['totalBid'] }}</td>
|
||||
<td>{{ $winner['totalPay'] }}</td>
|
||||
<td>
|
||||
@if($winner['jenisbayaran']['status'] == 1)
|
||||
<button class="btn btn-info btn-sm" disabled>FEE</button>
|
||||
@elseif($winner['jenisbayaran']['status'] == 2)
|
||||
<button class="btn btn-info btn-sm" disabled>BIDAAN MENANG</button>
|
||||
@endif
|
||||
</td>
|
||||
<td>
|
||||
<button class="btn btn-info btn-sm" disabled>{{ $winner['jenisbayaran']['remarks'] }}</button>
|
||||
</td>
|
||||
<td>
|
||||
@if($winner['jenisbayaran']['status_payment'] == 1)
|
||||
<button class="btn btn-success btn-sm" disabled>BERJAYA</button>
|
||||
@endif
|
||||
</td>
|
||||
<td>
|
||||
{{ dd($winner['paymentid']) }}
|
||||
<a href="{{ route('pembida.detailsbidaan', [ 'userid'=>$winner['details']['id'], 'paymentid'=>$winner['paymentid'] ]) }}" data-toggle="tooltip" data-placement="top" title="Butiran Bidaan"><i class="far fa-list-alt"></i></a>
|
||||
</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($listwinner as $index1=>$winner)
|
||||
<tr>
|
||||
<td>{{ $loop->iteration }}</td>
|
||||
<td>{{ $winner['details']['name'] }}</td>
|
||||
<td>{{ $winner['details']['nokp'] }}</td>
|
||||
<td>{{ $winner['total_surat'] }}</td>
|
||||
<td>{{ $winner['totalBid'] }}</td>
|
||||
<td>{{ $winner['totalPay'] }}</td>
|
||||
<td>
|
||||
@if($winner[$index1]['status'] == 1)
|
||||
<button class="btn btn-info btn-sm" disabled>FEE</button>
|
||||
@elseif($winner[$index1]['status'] == 2)
|
||||
<button class="btn btn-info btn-sm" disabled>BIDAAN MENANG</button>
|
||||
@endif
|
||||
</td>
|
||||
<td>
|
||||
<button class="btn btn-info btn-sm" disabled>{{ $winner[$index1]['remarks'] }}</button>
|
||||
</td>
|
||||
<td>
|
||||
@if($winner[$index1]['status_payment'] == 1)
|
||||
<button class="btn btn-success btn-sm" disabled>BERJAYA</button>
|
||||
@endif
|
||||
</td>
|
||||
<td>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="modal-footer" style="margin-top:2%;">
|
||||
<a href="{{ route('pembida.senlelpembayaranbidaan') }}" class="btn btn-primary">Kembali</a>
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="modal-footer" style="margin-top:2%;">
|
||||
<a href="{{ route('pembida.senlelpembayaranbidaan') }}" class="btn btn-primary">Kembali</a>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -184,6 +184,7 @@ Route::group(['middleware' => ['permission:pengesahanpembida'],'prefix'=>'pembid
|
||||
Route::post('/update',['as'=>'pembida.update','uses'=>'PembidaController@update']);
|
||||
Route::get('/senlelpembayaranbidaan',['as'=>'pembida.senlelpembayaranbidaan','uses'=>'PembidaController@senlelpembayaranbidaan']);
|
||||
Route::get('/pembayaranbidaan',['as'=>'pembida.pembayaranbidaan','uses'=>'PembidaController@pembayaranbidaan']);
|
||||
Route::get('/detailsbidaan/{userid}/{paymentid}',['as'=>'pembida.detailsbidaan','uses'=>'PembidaController@detailsbidaan']);
|
||||
});
|
||||
|
||||
Route::group(['middleware' => ['permission:pengesahan'],'prefix'=>'pengesahan'], function () {
|
||||
|
||||
Reference in New Issue
Block a user