Commit 13d2bd29 by Palti Sinaga
parents c10cb286 e6270e20
......@@ -2,6 +2,7 @@
namespace App\Http\Controllers;
use App\Homestay;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use App\User;
......@@ -63,4 +64,10 @@ class CustomerController extends Controller
}
public function detailhomestay($id){
$data = Homestay::find($id);
//dd($data);
return view('adminlte::layouts.pages.Homestay')->with('data',$data);
}
}
......@@ -33,6 +33,7 @@ class HomeController extends Controller
*/
public function index()
{
dd("masuk gan");
return view('adminlte::home');
}
}
\ No newline at end of file
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
class webController extends Controller
{
public function index()
{
return view('adminlte::layouts.pages.Home');
}
public function detailhomestay(){
return view('adminlte::layouts.pages.Homestay');
}
}
......@@ -64,42 +64,21 @@
<div class="container">
<h3>Daftar Homestay</h3>
<div class="details-grids agileits w3layouts">
<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="img/project-1.jpg" alt="Agileits W3layouts">
</div>
<div class="details-grid-info agileits w3layouts">
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua ut enim ad minim veniam.</p>
</div>
<a href ="/Homestay.blade.php"><button class="btn btn-primary wow agileits w3layouts fadeInLeft"> EXPLORE<span class="glyphicon agileits w3layouts glyphicon-arrow-right" aria-hidden="true"></span></button></a>
<div class="clearfix"></div>
</div>
</div>
@foreach($data as $a)
<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="img/project-6.jpg" alt="Agileits W3layouts" >
</div>
<div class="details-grid-info agileits w3layouts">
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua ut enim ad minim veniam.</p>
<h3>{{$a->nama}}</h3>
<p>Mari Menginap di Homestay kami</p>
</div>
<a href ="{{url('detailhomestay')}}" ><button class="btn btn-primary wow agileits w3layouts fadeInLeft" data-toggle="modal" > EXPLORE<span class="glyphicon agileits w3layouts glyphicon-arrow-right" aria-hidden="true"></span></button> </a>
<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="img/project-7.jpg" alt="Agileits W3layouts">
</div>
<div class="details-grid-info agileits w3layouts">
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua ut enim ad minim veniam.</p>
</div>
<button class="btn btn-primary agileits w3layouts wow fadeInLeft" data-toggle="modal" data-target="#myModal3">EXPLORE<span class="glyphicon agileits w3layouts glyphicon-arrow-right" aria-hidden="true"></span></button>
<a href ="{{url('detailhomestay/'.$a->id)}}" ><button class="btn btn-primary wow agileits w3layouts fadeInLeft" data-toggle="modal" > EXPLORE<span class="glyphicon agileits w3layouts glyphicon-arrow-right" aria-hidden="true"></span></button> </a>
<div class="clearfix"></div>
</div>
</div>
@endforeach
<div class="clearfix"></div>
</div>
......@@ -170,9 +149,6 @@
<h1 class="wow agileits w3layouts fadeInDown">ABOUT</h1>
</div>
</div>
</div>
<!-- //Lokasi -->
@endsection
@endsection
......@@ -11,8 +11,8 @@
<!-- //Meta-Tags -->
<!-- Custom-Stylesheet-Links -->
<!-- Bootstrap-CSS --> <link rel="stylesheet" href="css/bootstrap.min.css" type="text/css" media="all">
<!-- Index-Page-CSS --> <link rel="stylesheet" href="css/style.css" type="text/css" media="all">
<!-- Bootstrap-CSS --> <link rel="stylesheet" href="{{asset('css/bootstrap.min.css')}}" type="text/css" media="all">
<!-- Index-Page-CSS --> <link rel="stylesheet" href="{{asset('css/style.css')}}" type="text/css" media="all">
<!-- Animate.CSS --> <link rel="stylesheet" href="css/animate.css" type="text/css" media="all">
<!-- Tanggal --> <link rel="stylesheet" href="css/jquery-ui.css" type="text/css" media="all">
<!-- <!-- All css --> <!-- <link href="{{ asset('/css/all.css') }}" rel="stylesheet" type="text/css" /> -->
......
<?php
use App\Homestay;
/*
|--------------------------------------------------------------------------
| Web Routes
......@@ -12,7 +12,9 @@
*/
Route::get('/', function () {
return view('index');
$data = Homestay::all();
//dd($data);
return view('index')->with('data',$data);
});
Route::get('test', function(){
......@@ -29,8 +31,7 @@ Route::get('editprofiles', function(){
});
//web
Route::resource('Web', 'WebController');
Route::get('detailhomestay','webController@detailhomestay');
......@@ -47,6 +48,7 @@ Route::group(['middleware' => 'auth'], function () {
#adminlte_routes
});
Route::get('detailhomestay/{id}','CustomerController@detailhomestay');
Route::get('daftar','CustomerController@register');
Route::post('daftar','CustomerController@registerStore');
Route::get('editProfileCustomer','CustomerController@editProfile');
......
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