fixing client bugs

This commit is contained in:
Ritikesh yadav
2024-05-29 16:29:37 +05:30
parent 794dc7129a
commit 3e9eb27da3
23 changed files with 114 additions and 234 deletions

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)->first();
$checkBIDExist = MarketplaceBuyerForm::where('associated_id', $offering['data']->id)->where('status', 'Sold')->first();
// dd($checkBIDExist);
if ($checkBIDExist) {
$buyerData = MarketplaceBuyerForm::where('associated_id', $offering['data']->id)->where('status', 'Sold')->get();