Commit 876cb435 by Juliper

no message

parent c10e552f
...@@ -20,9 +20,26 @@ class OwnerController extends Controller ...@@ -20,9 +20,26 @@ class OwnerController extends Controller
public function daftarKamar(){ public function daftarKamar(){
$data = DB::table('') /*$dataTrans = DB::table('homestay')
->join('transaksi','homestay.id','=','transaksi.id_homestay')
->join('pemilikhomestay','homestay.idPemilik','=','pemilikhomestay.id')
->select('transaksi.*','pemilikhomestay.nama','pemilikhomestay.noRekening')
->where('transaksi.id_pelanggan','=',$data[0]->id)
->get();
*/
$pem = DB::table('pemilikhomestay')
->select('pemilikhomestay.*')
->where('pemilikhomestay.id_Akun','=',Auth::user()->id)
->get();
$data = DB::table('homestay')
->join('pemilikhomestay','homestay.idPemilik','pemilikhomestay.id')
->join('kamar','homestay.id','=','kamar.idHomestay')
->select('kamar.*','homestay.*','pemilikhomestay.*')
->where('pemilikhomestay.id','=',$pem[0]->id)
->get();
dd("masuk gan",Auth::user()->id); dd("masuk gan",Auth::user()->id,$data,$pem);
} }
public function listTransaction(){ public function listTransaction(){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment