pembetulan filter utk tangguh
This commit is contained in:
@@ -553,14 +553,18 @@ class TangguhLelongController extends Controller
|
||||
$bidmarhun['percents'] = round(($bidmarhun->pinjaman / $bidmarhun->nmarhuns * 100),2);
|
||||
|
||||
$history = TangguhLelong::where('lelongbid_id',$bidmarhun->id)
|
||||
->first();
|
||||
//dd($bidmarhun->id);
|
||||
->first();
|
||||
|
||||
if($history)
|
||||
{
|
||||
return redirect()->route('tangguhlelong.carian', $request->lelong_id)->with('failed','Maaf No Rujukan Telah Wujud Dalam Senarai Mohon Tangguh');
|
||||
|
||||
} else {
|
||||
} elseif($bidmarhun->fasa == 2)
|
||||
{
|
||||
//block tangguh sekiranya telah masuk fasa 2
|
||||
return redirect()->route('tangguhlelong.carian', $request->lelong_id)->with('failed','Maaf No Rujukan Telah Berada Dalam Fasa 2');
|
||||
|
||||
}else {
|
||||
$tangguhlelong = new TangguhLelong(); //pastikan hanya 1 kali insert utk lelong_id & norujukan yg sama
|
||||
$tangguhlelong->kodcaw = $bidmarhun->kodcaw;
|
||||
$tangguhlelong->lelong_id = $request->lelong_id;
|
||||
|
||||
Reference in New Issue
Block a user