pembetulan filter utk tangguh

This commit is contained in:
nishaMuhd
2022-11-08 10:46:43 +08:00
parent a50b1a81e4
commit d7ee12afca
2 changed files with 8 additions and 4 deletions
@@ -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;
@@ -58,7 +58,7 @@
@endif
</td>
<td>
@if($lel['info']['sts_lelong'] == 0 && $lel['info']['tarikh_lelong'] < $currentdate)
@if($lel['info']['sts_lelong'] == 0 && $lel['info']['tarikh_lelong'] > $currentdate)
{{-- @foreach($lel['detailsinfo'] as $details) --}}
<a href="{{ route('tangguhlelong.carian', $lel['info']['lelong_id']) }}" data-toggle="tooltip" data-placement="top" title="Carian" style="margin-right:40px"><i class="fas fa-search"></i></a>
<!-- <a href="{{ route('tangguhlelong.listtangguh', [$lel['info']['lelong_id'], $details['caw_code']]) }}" data-toggle="tooltip" data-placement="top" title="Senarai Tangguh" style="margin-right:40px"><i class="fas fa-list"></i></a> -->