update error

This commit is contained in:
Azfar Arsyad
2022-03-02 15:20:38 +08:00
parent 294270ca8c
commit 2adbe06e90
2 changed files with 5 additions and 15 deletions
+4 -8
View File
@@ -39,21 +39,17 @@ class SerahanController extends Controller
public function laporanserahan()
{
$user = Auth::user();
$caw = Cawangan::where('caw_code','=',$user->kodcaw)
->first();
$lelongbid = LelongBid::where('caw_id','=',$caw->id)
->get();
$lelongid = CawanganLelong::join('lelong','cawangan_lelong.lelong_id','=','lelong.id')
->join('cawangan','cawangan_lelong.caw_id','=','cawangan.id')
->where('cawangan.caw_code','=',$user->kodcaw)
->get();
$lelong = Lelong::where('id', $lelongid)->get();
return view('serahan.laporanserahan',compact('lelongbid','lelongid'));
return view('serahan.laporanserahan',compact('lelongid'));
}
public function pembayaran($id){