Commit bfa31925 by Juliper

Commit all to complete

parent fafd808f
......@@ -135,7 +135,14 @@ class CustomerController extends Controller
->where('daftar_book.homestay','=',$id)
->get();
return view('adminlte::layouts.pages.Homestay')->with('data',$data[0])->with('daftarBook',$daftarBook);
$dataKamar = DB::table('kamar')
->select('kamar.*')
->where('kamar.idHomestay','=',$id)
->get();
//dd("masuk agan",$id,$dataKamar);
return view('adminlte::layouts.pages.Homestay')->with('data',$data[0])->with('daftarBook',$daftarBook)->with('dataKamar',$dataKamar);
}
public function updateProfile(Request $request,$id){
......
......@@ -97,30 +97,16 @@
<div class="container">
<div class="details-grids agileits w3layouts">
<!--Homestay pict -->
<div class="col-md-4 col-sm-4 details-grid agileits w3layouts details-grid-1 wow slideInUp">
<div class=" details-grid1 agileits w3layouts">
<div class="details-grid-image agileits w3layouts">
<img src="{{asset('img/project-1.jpg')}}" alt="Agileits W3layouts" data-toggle="modal" data-target="#myModal" style="cursor: pointer;">
@foreach($dataKamar as $dk)
<div class="col-md-3 col-sm-4 details-grid agileits w3layouts details-grid-1 wow slideInUp">
<div class=" details-grid1 agileits w3layouts">
<div class="details-grid-image agileits w3layouts">
<img src="/img/{{$dk->gambar}}" alt="Agileits W3layouts" data-toggle="modal" data-target="#myModal" style="cursor: pointer;">
</div>
<div class="clearfix"></div>
</div>
<div class="clearfix"></div>
</div>
</div>
<div class="col-md-4 col-sm-4 details-grid details-grid-2 wow agileits w3layouts slideInUp">
<div class="details-grid2 agileits w3layouts">
<div class="details-grid-image agileits w3layouts">
<img src="{{asset('img/project-6.jpg')}}" alt="Agileits W3layouts" data-toggle="modal" data-target="#myModal" style="cursor: pointer;">
</div>
<div class="clearfix"></div>
</div>
</div>
<div class="col-md-4 col-sm-4 details-grid agileits w3layouts details-grid-3 wow slideInUp">
<div class="details-grid3 agileits w3layouts">
<div class="details-grid-image agileits w3layouts">
<img src="{{asset('img/project-7.jpg')}}" alt="Agileits W3layouts" data-toggle="modal" data-target="#myModal" style="cursor: pointer;">
</div>
<div class="clearfix"></div>
</div>
</div>
@endforeach
<div class="clearfix"></div>
</div>
<!--Homestay pict -->
......
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