senarai tangguh lelong

This commit is contained in:
faiqahzaman
2022-03-16 13:23:30 +08:00
parent 60dd89b0ab
commit 35242fe8de
7 changed files with 366 additions and 8 deletions
+32 -4
View File
@@ -46,12 +46,12 @@ class MarhunController extends Controller
$user = Auth::user();
$caw = Cawangan::where('caw_code','=',$user->kodcaw)->first();
$lelongbid = LelongBid::where('caw_id','=',$caw->id)->get();
$lelongid = LelongBid::select('lelong_id')->where('caw_id','=',$caw->id)->groupBy('lelong_id')->get();
$lelong = Lelong::whereIn('id', $lelongid)->get();
$lelongbid = LelongBid::where('lelong_id', '=', $lelong_id)
->where('caw_id','=', $caw->id)
->get();
return view('marhun.senaraimarhun',compact('lelongbid','lelong'));
return view('marhun.senaraimarhun',compact('lelongbid','lelong_id'));
}
public function kemaskini(Request $request)
@@ -414,6 +414,34 @@ class MarhunController extends Controller
return redirect()->route('pengesahan.perubahanmutumarhun')
->with('success','Pengesahan Padam Marhun Telah Berjaya');
}
public function senarailelong()
{
$lelong = Lelong::where('sts_lelong', 0)
->get();
return view('pengesahan.senarailelong',compact('lelong'));
}
public function senaraitangguhlelong($id)
{
$tangguhlelong = TangguhLelong::join('lelongbid', 'tangguhlelong.lelongbid_id', '=', 'lelongbid.id')
->where('tangguhlelong.lelong_id', $id)
->get();
return view('pengesahan.senaraitangguhlelong',compact('tangguhlelong','id'));
}
public function lelbidmarhun($id)
{
$marhuns = LelongBidMarhun::join('tangguhlelong', 'lelongbidmarhun.lelongbid_id', '=', 'tangguhlelong.lelongbid_id')
->where('tangguhlelong.lelong_id', $id)
->get();
return view('pengesahan.lelbidmarhun',compact('marhuns'));
}
}