Commit 6a3b18ae by Juliper

reapir again

parent 2f2acab0
...@@ -160,8 +160,16 @@ class GuestController extends Controller ...@@ -160,8 +160,16 @@ class GuestController extends Controller
->where('kamar.id_homestay','=',$id) ->where('kamar.id_homestay','=',$id)
->get(); ->get();
$dataFeedback = DB::table('feedback')
->join('pelanggan','feedback.id_pelanggan','pelanggan.id')
->select('feedback.*','pelanggan.nama')
->where('feedback.id_pemilik_homestay','=',$data[0]->id_pemilik)
->orderBy('feedback.id', 'desc')
->get();
//dd($dataFeedback);
return view('adminlte::layouts.pages.detilSHomestay')->with('id',$id)->with('data',$data[0])->with('tm',$tm)->with('lm',$lm)->with('ts',$ts)->with('jt',$jt)->with('jk',$jk)->with('dataKamar',$dataKamar); return view('adminlte::layouts.pages.detilSHomestay')->with('id',$id)->with('data',$data[0])->with('tm',$tm)->with('lm',$lm)->with('ts',$ts)->with('jt',$jt)->with('jk',$jk)->with('dataKamar',$dataKamar)->with('feedback',$dataFeedback);
} }
public function cari(Request $request){ public function cari(Request $request){
......
...@@ -173,7 +173,7 @@ ...@@ -173,7 +173,7 @@
{{--frameborder="0" style="border:0"--}} {{--frameborder="0" style="border:0"--}}
{{--src="https://www.google.com/maps/embed/v1/place?key=AIzaSyBsbx4u_4cq_g-Qq7YCoPyYcO6A48YkOgQ=Pantai+Lumban+Bulbul,+Kabupaten+Toba+Samosir,+Sumatera+Utara" allowfullscreen>--}} {{--src="https://www.google.com/maps/embed/v1/place?key=AIzaSyBsbx4u_4cq_g-Qq7YCoPyYcO6A48YkOgQ=Pantai+Lumban+Bulbul,+Kabupaten+Toba+Samosir,+Sumatera+Utara" allowfullscreen>--}}
<img src="/img/map.jpg" alt="Agileits W3layouts" > <img src="/img/new_map.jpg" alt="Agileits W3layouts" >
</div> </div>
......
...@@ -119,11 +119,24 @@ ...@@ -119,11 +119,24 @@
<div class="cuisines agileits w3layouts"> <div class="cuisines agileits w3layouts">
<div class="container"> <div class="container">
<div class="col-md-6 col-sm-6 cuisines-grids agileits w3layouts cuisines-grids-1 "> <div class="col-md-8 col-sm-8 cuisines-grids agileits w3layouts cuisines-grids-1 ">
<h3 style="margin-bottom: 0px; font-weight:10px;"> Review Pengunjung </h3> <h3 style="margin-bottom: 0px; font-weight:10px;"> Review Pengunjung </h3>
<img style="width: 450px; margin-top: 3px;" src="{{asset('img/line1.png')}}"><br> <img style="width: 450px; margin-top: 3px;" src="{{asset('img/line1.png')}}"><br>
DISINI REVIEW <ul class="timeline">
@foreach($feedback as $a)
<li>
<i class="glyphicon glyphicon-envelope"></i>
<div class="timeline-item">
<span class="time"><i class="fa fa-clock-o"></i> {{$a->created_at}}</span>
<h3 class="timeline-header" style="border-bottom: 0px;"><a href="#">{{$a->nama}}</a> </h3>
<div class="timeline-body">
{{$a->feedback}}
</div>
</div>
</li>
@endforeach
</ul>
</div> </div>
</div> </div>
</div> </div>
......
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