update error
This commit is contained in:
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user