senarai tangguh lelong
This commit is contained in:
@@ -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'));
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user