Merge pull request #203 from Ritikeshyadav/RitikeshFreeu

fixing issue
This commit is contained in:
Ritikeshyadav
2024-05-24 16:14:38 +05:30
committed by GitHub

View File

@@ -120,7 +120,7 @@ class MarketPlaceController extends Controller
// dd($offering);
// $status = MarketplaceBuyerForm::where(['associated_id'=>$offering['data']->id,'status'=>'Sold'])->exists() ? 'SOLD':'OPEN';
$status = '';
$checkBIDExist = MarketplaceBuyerForm::where('associated_id', $offering['data']->id)->get();
$checkBIDExist = MarketplaceBuyerForm::where('associated_id', $offering['data']->id)->first();
// dd($checkBIDExist);
if ($checkBIDExist) {
$buyerData = MarketplaceBuyerForm::where('associated_id', $offering['data']->id)->where('status', 'Sold')->get();