Commit b4c902e7 by Palti Sinaga

test

parent 26f71e3c
...@@ -43,7 +43,7 @@ class CustomerController extends Controller ...@@ -43,7 +43,7 @@ class CustomerController extends Controller
//Pemberian/Pengiriman Feedback //Pemberian/Pengiriman Feedback
public function sendFeedback(Request $request, $id){ public function sendFeedback(Request $request, $id){
if(Auth::guest()){ if(Auth::guest()){
dd("maaf nggak bisa banf"); dd("maaf nggak bisa bang");
} }
$dataPelanggan = DB::table('pelanggan') $dataPelanggan = DB::table('pelanggan')
......
...@@ -24,7 +24,39 @@ class OwnerController extends Controller ...@@ -24,7 +24,39 @@ class OwnerController extends Controller
public function index() public function index()
{ {
return view('adminlte::layouts.owner.home');
//coba
$dataPemilik = DB::table('pemilikhomestay')
->select('pemilikhomestay.*')
->where('pemilikhomestay.id_akun','=',Auth::user()->id)
->get();
$data = DB::table('homestay')
->join('pemilikhomestay','homestay.id_pemilik','pemilikhomestay.id')
->join('kamar','homestay.id','=','kamar.id_homestay')
->select('kamar.*')
->where('pemilikhomestay.id','=',$dataPemilik[0]->id)
->get();
$dataHomestay = DB::table('homestay')
->join('pemilikhomestay','homestay.id_pemilik','pemilikhomestay.id')
->select('homestay.id')
->where('pemilikhomestay.id','=',$dataPemilik[0]->id)
->get();
$dataListOfBook = DB::table('daftar_book')
->select('daftar_book.*')
->where('daftar_book.homestay','=',$dataHomestay[0]->id)
->get();
$dataFeedback = DB::table('feedback')
->join('pelanggan','feedback.id_pelanggan','pelanggan.id')
->select('feedback.*','pelanggan.nama')
->where('feedback.id_pemilik_homestay','=',$dataPemilik[0]->id)
->get();
//coba
return view('adminlte::layouts.owner.home')->with('count',$data->count())->with('count1',$dataListOfBook->count())->with('count2',$dataFeedback->count());
} }
......
...@@ -765,7 +765,7 @@ ul.callbacks_tabs li { ...@@ -765,7 +765,7 @@ ul.callbacks_tabs li {
/*--w3layouts--*/ /*--w3layouts--*/
/*--agileits--*/ /*--agileits--*/
padding: 50px 0 50px; padding: 50px 0 50px;
background: url("../img/bulbul.jpg"); background: url("../img/20170528_084214.jpg");
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: center; background-position: center;
background-size: cover; background-size: cover;
...@@ -1840,6 +1840,7 @@ div#showLess:after { ...@@ -1840,6 +1840,7 @@ div#showLess:after {
background: #000; background: #000;
text-align: center; text-align: center;
cursor: pointer; cursor: pointer;
margin: 10px 10px 20px 10px;
} }
figure.effect-apollo { figure.effect-apollo {
...@@ -4768,3 +4769,114 @@ p.contact-p { ...@@ -4768,3 +4769,114 @@ p.contact-p {
.w3-animate-zoom{ .w3-animate-zoom{
-webkit-animation: -webkit-animation:
} }
.online_reservation{
z-index: 999;
}
.b_room{
display: inline-flex;
box-shadow: 0px 0px 4px rgb(97, 97, 97);
-webkit-box-shadow: 0px 0px 4px rgb(97, 97, 97);
-moz-box-shadow: 0px 0px 4px rgb(97, 97, 97);
-o-box-shadow: 0px 0px 4px rgb(97, 97, 97);
width: 70%;
position:absolute;
}
.booking_room {
width: 100%;
position:absolute;
top:-3em;
left:18%;
z-index:1;
}
.booking_room h4{
font-size: 1.5em;
color: #202020;
text-transform: capitalize;
font-weight: 600;
margin-bottom: 10px;
}
.booking_room p{
font-size: 0.8725em;
color: #6b6b6b;
line-height: 1.8em;
}
.reservation{
font-family: 'Open Sans', sans-serif;
padding:16px 10px;
float: left;
width:100%;
background: #2A2E33;
box-shadow: 2px 26px 37px -12px;
}
.reservation ul li{
float: left;
list-style:none;
}
.reservation ul li.left{
margin-left: 15px;
}
.reservation ul li.span1_of_1{
width: 24.33333%;
margin-left: 1em;
}
.reservation ul li.span1_of_2{
width: 9.33333%;
}
.reservation ul li.span1_of_3{
width: 18.33333%;
margin-left: 20px;
}
.reservation h5{
font-size: 15px;
color: #FFD700;
text-transform: capitalize;
margin-bottom: 6px;
}
select {
width: 100%;
color: #858585;
font-size: 0.8725em;
padding: 7px;
outline: none;
font-family: 'Open Sans', sans-serif;
background: #ffffff;
border: 1px solid #DFDFDF;
border-radius: 9px;
-webkit-border-radius: 9px;
-moz-border-radius: 9px;
-o-border-radius: 9px;
}
select option{
border: 1px solid #DFDFDF;
outline: none;
-webkit-transition: all 0.3s ease-in-out;
-moz-transition: all 0.3s ease-in-out;
-o-transition: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out;
}
.book_date input[type="text"]{
width: 100% !important;
color: #858585;
font-size: 0.8725em;
padding: 8px 30px;
outline: none;
font-family: 'Open Sans', sans-serif;
border: 1px solid #DFDFDF;
box-shadow: inset 0 0 2px rgb(236, 236, 236);
-webkit-box-shadow: inset 0 0 2px rgb(236, 236, 236);
-moz-box-shadow: inset 0 0 2px rgb(236, 236, 236);
-o-box-shadow: inset 0 0 2px rgb(236, 236, 236);
-webkit-appearance: none;
border-radius: 9px;
-webkit-border-radius: 9px;
-moz-border-radius: 9px;
-o-border-radius: 9px;
}
.portfolio col-md-4{
padding: 10px;
background-color: none;
}
...@@ -9,48 +9,55 @@ ...@@ -9,48 +9,55 @@
<!-- Small boxes (Stat box) --> <!-- Small boxes (Stat box) -->
<div class="row"> <div class="row">
<div class="col-lg-3 col-xs-6"> <div class="col-lg-3 col-xs-6">
<!-- small box -->
<div class="small-box bg-aqua"> <div class="small-box bg-aqua">
<div class="inner"> <div class="inner">
<h3>150</h3> <h3>{{$count}}</h3>
<p>Pemesanan</p> <p>Jumlah Kamar</p>
</div> </div>
<div class="icon"> <div class="icon">
<i class="ion ion-bag"></i> <i class="fa fa-bed"></i>
</div> </div>
<a href="#" class="small-box-footer">More info <i class="fa fa-arrow-circle-right"></i></a> <a href="#" class="small-box-footer">Lihat <i class="fa fa-arrow-circle-right"></i></a>
</div> </div>
</div> </div>
<!-- ./col --> <!-- ./col -->
<div class="col-lg-3 col-xs-6"> <div class="col-lg-3 col-xs-6">
<!-- small box --> <!-- small box -->
<div class="small-box bg-green"> <div class="small-box bg-green">
<div class="inner"> <div class="inner">
<h3>53<sup style="font-size: 20px">%</sup></h3> <h3>{{$count1}}</h3>
<p>Bounce Rate</p> <p>Pemesanan baru</p>
</div> </div>
<div class="icon"> <div class="icon">
<i class="ion ion-stats-bars"></i> <i class="fa fa-list"></i>
</div> </div>
<a href="#" class="small-box-footer">More info <i class="fa fa-arrow-circle-right"></i></a> <a href="#" class="small-box-footer">Lihat <i class="fa fa-arrow-circle-right"></i></a>
</div> </div>
</div> </div>
<!-- ./col --> <!-- ./col -->
<div class="col-lg-3 col-xs-6"> <div class="col-lg-3 col-xs-6">
<!-- small box --> <!-- small box -->
<div class="small-box bg-yellow"> <div class="small-box bg-yellow">
<div class="inner"> <div class="inner">
<h3>44</h3> <h3>{{$count1}}</h3>
<p>Feedback</p>
<p>User Registrations</p>
</div> </div>
<div class="icon"> <div class="icon">
<i class="ion ion-person-add"></i> <i class="fa fa-edit"></i>
</div> </div>
<a href="#" class="small-box-footer">More info <i class="fa fa-arrow-circle-right"></i></a> <a href="#" class="small-box-footer">More info <i class="fa fa-arrow-circle-right"></i></a>
</div> </div>
</div> </div>
<!-- ./col --> <!-- ./col -->
<div class="col-lg-3 col-xs-6"> <div class="col-lg-3 col-xs-6">
<!-- small box --> <!-- small box -->
......
...@@ -144,9 +144,16 @@ ...@@ -144,9 +144,16 @@
<div class="services agileits w3layouts" style="padding-top: 10px"> <div class="services agileits w3layouts" style="padding-top: 10px">
<h1> Lokasi Kami</h1> <h1> Lokasi Kami</h1>
<div class="banner agileits w3layouts"> <div class="banner agileits w3layouts">
<img src="{{asset('img/lokasi bul-bul.JPG')}}" alt="Agileits W3layouts"> <iframe
<h1 class=" agileits w3layouts ">Tobasamosir</h1> width="100%"
height="500"
frameborder="0" style="border:0"
src="https://www.google.com/maps/embed/v1/place?key=AIzaSyDgZqmVOxZDK2qWwAFdHz0ty4Rjz7jHrpA&q=Pantai+Lumban+Bulbul,+Kabupaten+Toba+Samosir,+Sumatera+Utara" allowfullscreen>
</iframe>
</div> </div>
</div> </div>
</div> </div>
<!-- //Lokasi --> <!-- //Lokasi -->
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
<a class="example-image-link agileits w3layouts" href="/img/gallery-1.jpg" data-lightbox="example-set" data-title=""> <a class="example-image-link agileits w3layouts" href="/img/gallery-1.jpg" data-lightbox="example-set" data-title="">
<div class="grid agileits w3layouts"> <div class="grid agileits w3layouts">
<figure class="effect-apollo agileits w3layouts"> <figure class="effect-apollo agileits w3layouts">
<img src="/img/gallery-1.jpg" alt="Agileits W3layouts" id="data"> <img src="/img/gallery-1.jpg" alt="Agileits W3layouts" id="data" style="max-width: 100%; height: auto;">
<figcaption></figcaption> <figcaption></figcaption>
</figure> </figure>
</div> </div>
...@@ -28,10 +28,10 @@ ...@@ -28,10 +28,10 @@
<div class="col-md-4 col-sm-4 agileits w3layouts portfolio-top"> <div class="col-md-4 col-sm-4 agileits w3layouts portfolio-top">
<div class="portfolio-item agileits w3layouts wow zoomIn"> <div class="portfolio-item agileits w3layouts wow zoomIn">
<a class="example-image-link agileits w3layouts" href="/img/danautoba.jpg" data-lightbox="example-set" data-title=""> <a class="example-image-link agileits w3layouts" href="/img/danautoba.jpg" data-lightbox="example-set" data-title="" >
<div class="grid agileits w3layouts"> <div class="grid agileits w3layouts">
<figure class="effect-apollo agileits w3layouts"> <figure class="effect-apollo agileits w3layouts">
<img src="/img/danautoba.jpg" alt="Agileits W3layouts"> <img src="/img/danautoba.jpg" alt="Agileits W3layouts" style="max-width: 100%; height: auto;">
<figcaption></figcaption> <figcaption></figcaption>
</figure> </figure>
</div> </div>
...@@ -82,18 +82,137 @@ ...@@ -82,18 +82,137 @@
</div> </div>
</div> </div>
</div> </div>
<div class="container">
<div class="row">
<h1>Bootstrap 3 Lightbox image gallery using Modal</h1>
<div class="col-lg-3 col-sm-4 col-xs-6"><a title="Image 1" href="#"><img class="thumbnail img-responsive" src="/img/gallery-1.jpg"></a></div> <div class="gallery">
<div class="col-lg-3 col-sm-4 col-xs-6"><a title="Image 2" href="#"><img class="thumbnail img-responsive" src="/img/danautoba.jpg"></a></div> <div class="container">
<h2 class="tittle">Gallery</h2>
<div class="gal-btm">
<div class="col-md-4 gal-gd wow fadeInLeft animated" data-wow-delay=".5s">
<a href="#image-1" >
<div class="nd-wrap nd-style-8">
<img src="/img/danautoba.jpg" class="img-responsive" alt=" " />
<div class="nd-content">
<div class="nd-content_inner">
<div class="nd-content_inner1">
<h4 class="nd-title">Gallery</h4>
</div>
</div>
</div>
</div>
</a>
</div>
<div class="col-md-4 gal-gd wow fadeInLeft animated" data-wow-delay=".5s">
<a href="#image-1" >
<div class="nd-wrap nd-style-8">
<img src="/img/danautoba.jpg" class="img-responsive" alt=" " />
<div class="nd-content">
<div class="nd-content_inner">
<div class="nd-content_inner1">
<h4 class="nd-title">Gallery</h4>
</div>
</div>
</div>
</div>
</a>
</div>
<div class="col-md-4 gal-gd wow fadeInLeft animated" data-wow-delay=".5s">
<a href="#image-1" >
<div class="nd-wrap nd-style-8">
<img src="/img/danautoba.jpg" class="img-responsive" alt=" " />
<div class="nd-content">
<div class="nd-content_inner">
<div class="nd-content_inner1">
<h4 class="nd-title">Gallery</h4>
</div>
</div>
</div>
</div>
</a>
</div>
<div class="col-md-4 gal-gd wow fadeInLeft animated" data-wow-delay=".5s">
<a href="#image-1" >
<div class="nd-wrap nd-style-8">
<img src="/img/danautoba.jpg" class="img-responsive" alt=" " />
<div class="nd-content">
<div class="nd-content_inner">
<div class="nd-content_inner1">
<h4 class="nd-title">Gallery</h4>
</div>
</div>
</div>
</div>
</a>
</div>
<div class="col-md-4 gal-gd wow fadeInLeft animated" data-wow-delay=".5s">
<a href="#image-1" >
<div class="nd-wrap nd-style-8">
<img src="/img/danautoba.jpg" class="img-responsive" alt=" " />
<div class="nd-content">
<div class="nd-content_inner">
<div class="nd-content_inner1">
<h4 class="nd-title">Gallery</h4>
</div>
</div>
</div>
</div>
</a>
</div>
<hr> <div class="col-md-4 gal-gd wow fadeInLeft animated" data-wow-delay=".5s">
<a href="#image-1" >
<div class="nd-wrap nd-style-8">
<img src="/img/danautoba.jpg" class="img-responsive" alt=" " />
<div class="nd-content">
<div class="nd-content_inner">
<div class="nd-content_inner1">
<h4 class="nd-title">Gallery</h4>
</div>
</div>
</div>
</div>
</a>
</div>
<hr> <div class="col-md-4 gal-gd wow fadeInLeft animated" data-wow-delay=".5s">
<a href="#image-1" >
<div class="nd-wrap nd-style-8">
<img src="/img/danautoba.jpg" class="img-responsive" alt=" " />
<div class="nd-content">
<div class="nd-content_inner">
<div class="nd-content_inner1">
<h4 class="nd-title">Gallery</h4>
</div>
</div>
</div>
</div>
</a>
</div>
<div class="col-md-4 gal-gd wow fadeInLeft animated" data-wow-delay=".5s">
<a href="#image-1" >
<div class="nd-wrap nd-style-8">
<img src="/img/danautoba.jpg" class="img-responsive" alt=" " />
<div class="nd-content">
<div class="nd-content_inner">
<div class="nd-content_inner1">
<h4 class="nd-title">Gallery</h4>
</div>
</div>
</div>
</div>
</a>
</div>
<div class="clearfix"></div>
</div>
</div> </div>
</div> </div>
<div tabindex="-1" class="modal fade" id="myModal" role="dialog"> <div tabindex="-1" class="modal fade" id="myModal" role="dialog">
<div class="modal-dialog"> <div class="modal-dialog">
<div class="modal-content"> <div class="modal-content">
......
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