Fix at server 21/02/23
This commit is contained in:
@@ -217,7 +217,7 @@ class LelongMobileController extends Controller
|
||||
$total_hargabida = 0;
|
||||
$total_berat = 0;
|
||||
foreach ($lelongBidder as $index1 => $data) {
|
||||
$fileMarhun = FileMarhun::where('lelongbid_id', $data['id'])->get();
|
||||
$fileMarhun = FileMarhun::where('lelongbid_id', $data['id'])->where('photo_type', 1)->get();
|
||||
if ($fileMarhun->isNotEmpty()) {
|
||||
$lelongBidder[$index1]['filemarhun'] = $fileMarhun;
|
||||
}
|
||||
@@ -399,7 +399,7 @@ class LelongMobileController extends Controller
|
||||
|
||||
$lelongbid['lelongbidmarhun'] = $lelongbidmarhun;
|
||||
|
||||
$fileMarhun = FileMarhun::where('lelongbid_id', $lelongbid['id'])->get();
|
||||
$fileMarhun = FileMarhun::where('lelongbid_id', $lelongbid['id'])->where('photo_type', 1)->get();
|
||||
// dd($fileMarhun);
|
||||
|
||||
// foreach ($fileMarhun as $index) {
|
||||
@@ -666,7 +666,7 @@ class LelongMobileController extends Controller
|
||||
|
||||
$total_hargabida = 0;
|
||||
foreach ($groupBycaw as $index => $hargabida) {
|
||||
$fileMarhun = FileMarhun::where('lelongbid_id', $hargabida->id)->get();
|
||||
$fileMarhun = FileMarhun::where('lelongbid_id', $hargabida->id)->where('photo_type', 1)->get();
|
||||
if ($fileMarhun->isNotEmpty()) {
|
||||
$groupBycaw[$index]['filemarhun'] = $fileMarhun;
|
||||
}
|
||||
@@ -1363,7 +1363,7 @@ class LelongMobileController extends Controller
|
||||
public function portalApi(Request $request)
|
||||
{
|
||||
$lelong = LelongBid::select('fasa', 't_lelong')
|
||||
->where([['norujukan', $request->norujukan], ['status_jual', '=', 0]])
|
||||
->where([['norujukan', $request->norujukan]])
|
||||
->first();
|
||||
return response()->json(['lelong' => $lelong]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user