Fix cannot update upload overall marhun photo

This commit is contained in:
afiq.hamzah
2022-11-24 14:19:24 +08:00
parent f6f0cca41c
commit 50ca8f58bf
3 changed files with 9 additions and 9 deletions
+4 -6
View File
@@ -515,6 +515,7 @@ class MarhunController extends Controller
public function show($id, $lelong_id)
{
$lelongbid = LelongBid::where('id', '=', $id)->first();
$filemarhun = FileMarhun::where('lelongbid_id', '=', $lelongbid['id'])
->where('photo_type', '=', '1')
@@ -540,16 +541,13 @@ class MarhunController extends Controller
$index->eachmarhun_id = $eachmarhun->id;
}
/**
* FIXME:
* Status here need to clarify
*/
$status = Pengesahan::where('lelongbid_id', $id)
->where('lelong_id', $lelongbid['lelong_id'])
->first();
// dd($status);
// $marhun[$index->status_semak] = $status;
// dd($status);
$index->status = $status;
}