Commit 68ed2296 by Juliper
parents 7af4b3ef 9d375733
......@@ -55,10 +55,10 @@ class LoginController extends Controller
if (Auth::attempt(['username' => $request->username, 'password' => $request->password])) {
//dd(Auth::user()->role);
if (Auth::user()->role == 'Admin') {
return redirect()->intended('/home');
return redirect()->intended('/listowner');
}
else if(Auth::user()->role == 'Owner'){
return redirect()->intended('/owner');
return redirect()->intended('/pesanan');
}
else if(Auth::user()->role=='Customer'){
//dd("masuk gan");
......
......@@ -40,7 +40,7 @@ desired effect
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
@include('adminlte::layouts.partials.contentheader')
<!-- Main content -->
<section class="content">
......
......@@ -7,7 +7,7 @@
@section('main-content')
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title"> TAMBAH PEMESANAN </h3>
<h3 class="box-title"> TAMBAH PEMESANAN MANUAL</h3>
@if (count($errors) > 0)
<div class="alert alert-danger">
<strong>Whoops!</strong> {{ trans('adminlte_lang::message.someproblems') }}<br><br>
......@@ -56,7 +56,7 @@
<div class="input-group-addon">
<i class="fa fa-user"></i>
</div>
<input type="text" name="lama_menginap" value="" id="nama" class="form-control">
<input type="Number" name="lama_menginap" value="" id="nama" class="form-control">
</div>
</div>
<div class="form-group" align="right">
......
......@@ -7,7 +7,7 @@
@section('main-content')
<div class="box box-info">
<div class="box-header with-border">
<h3 clas="box-title"> Fasilitas </h3>
<h3 class="box-title"> EDIT KAMAR </h3>
@if(Session::has('alert-success'))
<div class="alert alert-success">
{{ Session::get('alert-success') }}
......
......@@ -7,7 +7,7 @@
@section('main-content')
<div class="box box-warning">
<div class="box-header with-border">
<h3 class="box-title"> Daftar Booked </h3>
<h3 class="box-title"> DAFTAR PESANAN </h3>
@if(Session::has('alert-success'))
<div class="alert alert-success">
{{ Session::get('alert-success') }}
......@@ -26,7 +26,7 @@
</div>
<div class="box-body">
<br>
<table class="table table-striped">
<tr>
<th>Nama Pelanggan</th>
......
......@@ -7,7 +7,7 @@
@section('main-content')
<div class="box box-warning">
<div class="box-header with-border">
<h3 class="box-title"> LIST PENGAJUAN FASILITAS </h3>
<h3 class="box-title"> DAFTAR PENGAJUAN FASILITAS </h3>
@if (count($errors) > 0)
<div class="alert alert-danger">
<strong>Whoops!</strong> {{ trans('adminlte_lang::message.someproblems') }}<br><br>
......@@ -22,13 +22,13 @@
<div class="box-body">
<!-- <div class="col-md-4 col-sm-6 col-xs-12">
</div> -->
<br>
<table class="table table-striped">
<tr>
<th>Judul</th>
<td>Keterangan</td>
<td>Gambar</td>
<td>Status</td>
<th>Keterangan</th>
<th>Gambar</th>
<th>Status</th>
</tr>
@foreach($data as $a)
<tr>
......
......@@ -7,7 +7,7 @@
@section('main-content')
<div class="box box-warning">
<div class="box-header with-border">
<h3 class="box-title"> LIST PENGAJUAN HOMESTAY </h3>
<h3 class="box-title"> DAFTAR PENGAJUAN HOMESTAY </h3>
@if (count($errors) > 0)
<div class="alert alert-danger">
<strong>Whoops!</strong> {{ trans('adminlte_lang::message.someproblems') }}<br><br>
......
......@@ -7,7 +7,7 @@
@section('main-content')
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title"> REQUEST FASILITAS </h3>
<h3 class="box-title"> PENGAJUAN HOMESTAY </h3>
@if (count($errors) > 0)
<div class="alert alert-danger">
<strong>Whoops!</strong> {{ trans('adminlte_lang::message.someproblems') }}<br><br>
......@@ -39,7 +39,7 @@
<div class="input-group-addon">
<i class="fa fa-bed"></i>
</div>
<input type="text" class="form-control" placeholder="Jumlah Kamar" name="jumlahKamar" >
<input type="Number" class="form-control" placeholder="Jumlah Kamar" name="jumlahKamar" >
</div>
</div>
......
......@@ -55,7 +55,7 @@
<div class="input-group-addon">
<i class="fa fa-newspaper-o"></i>
</div>
<input type="text" class="form-control" placeholder="Jumlah" name="jumlah" />
<input type="Number" class="form-control" placeholder="Jumlah" name="jumlah" />
</div>
<span id="errfn3" style="color: red"></span>
</div>
......
......@@ -7,7 +7,7 @@
@section('main-content')
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title"> UPDATE HOMESTAY </h3>
<h3 class="box-title"> UPDATE DATA HOMESTAY </h3>
@if (count($errors) > 0)
<div class="alert alert-danger">
<strong>Whoops!</strong> {{ trans('adminlte_lang::message.someproblems') }}<br><br>
......@@ -51,7 +51,7 @@
</div>
<div class="form-group">
<label> Harga Homestay </label>
<label> Harga per Kamar </label>
<div class="input-group">
<div class="input-group-addon">
<i class="fa fa-dollar"></i>
......
......@@ -7,7 +7,7 @@
@section('main-content')
<div class="box box-warning">
<div class="box-header with-border">
<h3 class="box-title"> Daftar Pesanan </h3>
<h3 class="box-title">DAFTAR PESANAN BARU</h3>
@if(Session::has('alert-success'))
<div class="alert alert-success">
{{ Session::get('alert-success') }}
......@@ -29,7 +29,7 @@
<!-- /.info-box -->
</div>
<br>
<table class="table table-striped">
<tr>
<th>Nama Pelanggan</th>
......
......@@ -7,7 +7,7 @@
@section('main-content')
<div class="box box-warning">
<div class="box-header with-border">
<h3 class="box-title"> LIST KAMAR </h3>
<h3 class="box-title"> DAFTAR KAMAR </h3>
@if (count($errors) > 0)
<div class="alert alert-danger">
<strong>Whoops!</strong> {{ trans('adminlte_lang::message.someproblems') }}<br><br>
......@@ -41,14 +41,14 @@
</div>
</div> -->
</div>
<br>
<table class="table table-striped">
<tr>
<th>No Kamar</th>
<th>Jumlah Bed</th>
<td>Detail</td>
<td>Foto</td>
<td colspan="2">Aksi</td>
<th>Jumlah Kasur</th>
<th>Deskripsi</th>
<th>Foto</th>
<th colspan="2">Aksi</th>
</tr>
@foreach($data as $a)
<tr>
......@@ -56,24 +56,22 @@
<td>{{$a->jumlah_bed}}</td>
<td>{{$a->fasilitas}}</td>
<td>@if($a->gambar == null)
<img alt="Belum ada foto">
<img alt="Belum ada foto" >
@else
<a href="/img/{{$a->gambar}}" data-lightbox="roadtrip"><img src="/img/{{$a->gambar}}" style="max-height: 150px"></a>
<a href="/img/{{$a->gambar}}" data-lightbox="roadtrip"><img src="/img/{{$a->gambar}}" style="max-height: 150px; width:200px;"></a>
@endif
</td>
<td>
<a href="{{url('editRoom/'.$a->id)}}" class="btn btn-primary"><i class="glyphicon glyphicon-edit"></i> Edit Kamar</a>
<a href="{{url('editRoom/'.$a->id)}}" class="btn btn-primary"><i class="glyphicon glyphicon-edit"></i> </a>
<form action="{{url('room/'.$a->id)}}" method="POST">
{{csrf_field()}}
<input type="hidden" name="_method" value="DELETE">
<br>
<button type="submit" class="btn btn-danger"><i class="glyphicon glyphicon-trash"></i>Hapus Kamar</button>
</form>
</td>
<td>
<button type="submit" class="btn btn-danger"><i class="glyphicon glyphicon-trash"></i></button>
</td>
</tr>
@endforeach
......
......@@ -8,7 +8,7 @@
<div class="box box-warning">
<div class="box-header with-border">
<h3 class="box-title"> Daftar Feedback </h3>
<h3 class="box-title"> DAFTAR FEEDBACK </h3>
@if(Session::has('alert-success'))
<div class="alert alert-success">
{{ Session::get('alert-success') }}
......
......@@ -11,7 +11,7 @@
<div class="col-md-10 col-md-offset-1">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-heading">Profil Anda</h3>
<h3 class="panel-heading">PROFIL ANDA</h3>
</div>
<div class="panel-body">
<div class="row">
......
@extends('adminlte::layouts.app')
@section('htmlheader_title')
{{ trans('adminlte_lang::message.home') }}
@endsection
@section('main-content')
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title"> UPDATE PROFIL</h3>
@if (count($errors) > 0)
<div class="alert alert-danger">
<strong>Whoops!</strong> {{ trans('adminlte_lang::message.someproblems') }}<br><br>
<ul>
@foreach ($errors->all() as $error)
<li>{{ $error }}</li>
@endforeach
</ul>
</div>
@if(session()->has('message'))
<div class="alert alert-info">
{{session()->get('message')}}
</div>
@endif
@endif
</div>
<div class="box-body">
<form action="{{ url('profileupdate/'.$data->id) }}" method="post" enctype="multipart/form-data">
<input type="hidden" name="_method" value="PUT">
{{csrf_field()}}
<div class="form-group">
<label> Nama </label>
<div class="input-group">
<div class="input-group-addon">
<i class="fa fa-bookmark"></i>
</div>
<input type="text" class="form-control" placeholder="nama" name="nama" value="{{$data->nama}}"/>
</div>
</div>
<div class="form-group">
<label> Alamat </label>
<div class="input-group">
<div class="input-group-addon">
<i class="fa fa-building"></i>
</div>
<input type="text" class="form-control" placeholder="Alamat" name="alamat" value="{{$data->alamat}}"/>
</div>
</div>
<div class="form-group">
<label> Perkerjaan </label>
<div class="input-group">
<div class="input-group-addon">
<i class="fa fa-dollar"></i>
</div>
<input type="text" class="form-control" value="{{$data->pekerjaan}}" placeholder="pekerjaan" name=""/>
</div>
</div>
<div class="form-group">
<label> No Telepon </label>
<div class="input-group">
<div class="input-group-addon">
<i class="fa fa-dollar"></i>
</div>
<input type="Number" class="form-control" value="{{$data->no_telepon}}" placeholder="noTelepon" name=""/>
</div>
</div>
<div class="form-group">
<label>No Rekening </label>
<div class="input-group">
<div class="input-group-addon">
<i class="fa fa-dollar"></i>
</div>
<input type="Number" class="form-control" value="{{$data->no_rekening}}" placeholder="noRekening" name=""/>
</div>
</div>
<div class="form-group" align="right" style="color: black;">
<button type="submit" class="btn btn-primary ">Update</button>
</div>
</form>
</div>
</div>
@endsection
......@@ -27,7 +27,7 @@
<!-- List Homestay -->
<div id ="2">
<div id ="DaftarHomestay">
<div class="details agileits w3layouts">
<div class="container">
<h3>Daftar Homestay</h3>
......@@ -108,7 +108,7 @@
<!-- //List Homestay -->
<!-- Lokasi -->
<div id ="3">
<div id ="Lokasi">
<div class="services agileits w3layouts" style="padding-top: 10px">
<h1> Lokasi Kami</h1>
<div class="banner agileits w3layouts">
......
......@@ -61,17 +61,14 @@
<table class="table table-hover " style="background-color: white; margin-top:20px;">
<thead>
<tr>
<th style="color:white;"> Tanggal Mulai </th>
<th style="color:white;"> Tanggal Berakhir </th>
<th style="color:white;"> Jumlah Kamar</th>
</tr>
</thead>
<tbody>
@foreach($daftarBook as $a)
<tr>
<td>{{$a->tanggal_mulai}}</td>
<td>{{$a->tanggal_berakhir}}</td>
<td>{{$a->jumlah_kamar}}</td>
......@@ -82,17 +79,16 @@
</div>
</div>
<!-- Informations -->
<div class="cuisines agileits w3layouts">
<div class="container">
<div class="col-md-6 col-sm-6 cuisines-grids agileits w3layouts cuisines-grids-1 ">
<h2 style="margin-bottom: 10px;"> Fasilitas </h2>
<h3 style="margin-bottom: 10px; font-weight:10px;"> Fasilitas </h3>
<ul style="list-style-type: none;">
<p>{{$data->fasilitas}}</p>
</ul>
<img style="width: 450px; margin-top: 10px;" src="{{asset('img/line1.png')}}">
<h2 style="margin-bottom: 10px;"> Info Pemilik </h2>
<h3 style="margin-bottom: 10px;"> Info Pemilik </h3>
<table class="table-condensed" style="font-size: 16px; margin-left: -3px; color: #777;">
<tr>
......@@ -110,11 +106,7 @@
<td>:</td>
<td>{{$data->alamat}}</td>
</tr>
<tr>
<td> Pekerjaan </td>
<td>:</td>
<td>{{$data->pekerjaan}}</td>
</tr>
<tr>
<td> No Rekening </td>
<td>:</td>
......
......@@ -3,10 +3,14 @@
<!-- To the right -->
<div class="pull-right hidden-xs">
<!-- <a href="https://github.com/acacha/adminlte-laravel"></a><b>admin-lte-laravel</b></a>. {{ trans('adminlte_lang::message.descriptionpackage') }} -->
<a href="https://github.com/acacha/adminlte-laravel"></a><b>admin-lte-laravel</b></a>
<!-- <a href="https://github.com/acacha/adminlte-laravel"></a><b>admin-lte-laravel</b></a> -->
</div>
<!-- Default to the left -->
<!-- <strong>Copyright &copy; 2015 <a href="http://acacha.org">Acacha.org</a>.</strong> {{ trans('adminlte_lang::message.createdby') }} <a href="http://acacha.org/sergitur">Sergi Tur Badenas</a>. {{ trans('adminlte_lang::message.seecode') }} <a href="https://github.com/acacha/adminlte-laravel">Github</a> -->
<strong>Copyright &copy; 2015 <a href="http://acacha.org">Acacha.org</a>.</strong> All rights reserved.
@if(Auth::user()->role =="DinasPariwisata")
<strong>Copyright &copy; 2017 <a href="{{ url('/listowner') }}">Sistem Informasi Pemesanan Homestay</a>
@elseif(Auth::user()->role=="Owner")
<strong>Copyright &copy; 2017 <a href="{{ url('/pesanan') }}">Sistem Informasi Pemesanan Homestay</a>
@endif
</footer>
......@@ -2,13 +2,23 @@
<header class="main-header">
<!-- Logo -->
<a href="{{ url('/home') }}" class="logo">
@if(Auth::user()->role =="DinasPariwisata")
<a href="{{ url('/listowner') }}" class="logo">
<!-- mini logo for sidebar mini 50x50 pixels -->
<span class="logo-mini"><b>SI</b>PH</span>
<!-- logo for regular state and mobile devices -->
<span class="logo-lg"><b>SI </b>Pemesanan Homestay </span>
<span class="logo-lg" style="font-size: 17px;"><b>SI </b>Pemesanan Homestay </span>
</a>
@elseif(Auth::user()->role=="Owner")
<a href="{{ url('/pesanan') }}" class="logo">
<!-- mini logo for sidebar mini 50x50 pixels -->
<span class="logo-mini"><b>SI</b>PH</span>
<!-- logo for regular state and mobile devices -->
<span class="logo-lg" style="font-size: 17px;"><b>SI </b>Pemesanan Homestay </span>
</a>
@endif
<!-- Header Navbar -->
<nav class="navbar navbar-static-top" role="navigation">
......@@ -71,7 +81,7 @@
<img src="/img/{{Auth::user()->foto}}" class="img-circle" alt="User Image" />
<p>
{{ Auth::user()->name }}
<small>{{ trans('adminlte_lang::message.login') }} </small>
</p>
</li>
<!-- Menu Body -->
......
......@@ -12,7 +12,7 @@
@if(Auth::user()->role =="DinasPariwisata")
<!-- Optionally, you can add icons to the links -->
<li class="treeview"><a href="#"><i class='fa fa-list'></i> <span> List Request </span> </a>
<li class="treeview "><a href="#"><i class='fa fa-list'></i> <span> List Request </span> </a>
<ul class="treeview-menu" style="display: none;">
<li><a href="{{url('requestFasilitas')}}"><i class='fa fa-television'></i> <span>Acc Request Fasilitas</span></a></li>
<li><a href="{{url('requestHomestay')}}"><i class='fa fa-home'></i> <span>Acc Pengajuan Homestay</span></a></li>
......@@ -28,27 +28,33 @@
<li><a href="{{url('listPemesanan')}}"><i class='fa fa-list'></i> <span> Data Pemesanan</span></a></li>
@elseif(Auth::user()->role=="Owner")
<li class="treeview"><a href="#"><i class='fa fa-television'></i> <span> FASILITAS </span></a>
<li class="treeview"><a href="#"><i class='fa fa-television'></i> <span> FASILITAS </span><span class="pull-right-container">
<i class="fa fa-angle-left pull-right"></i>
</span></a>
<ul class="treeview-menu" style="display : none;">
<li><a href="{{url('reqFasilitas')}}"><i class='fa fa-external-link-square'></i> <span>Request Fasilitas</span></a></li>
<li><a href="{{url('listPengajuanFasilitas')}}"><i class='fa fa-list'></i> <span>Daftar Pengajuan Fasilitas</span></a></li>
</ul>
</li>
<li class="treeview"><a href="#"><i class='fa fa-bed'></i> <span> Homestay </span></a>
<li class="treeview"><a href="#"><i class='fa fa-bed'></i> <span> HOMESTAY </span><span class="pull-right-container">
<i class="fa fa-angle-left pull-right"></i>
</span></a>
<ul class="treeview-menu" style="display : none;">
<li><a href="{{url('daftarKamar')}}"><i class='fa fa-list'></i> <span>Daftar Kamar</span></a></li>
<li><a href="{{url('pengajuanHomestay')}}"><i class='fa fa-external-link-square'></i> <span> Pengajuan Homestay </span></a></li>
<li><a href="{{url('listFeedback')}}"><i class='fa fa-list'></i> <span> Feedback </span></a></li>
<li><a href="{{url('updateHomestay')}}"><i class='fa fa-edit'></i> <span>Update Homestay</span></a></li>
<li><a href="{{url('listPengajuan')}}"><i class='fa fa-list'></i> <span>List Pengajuan Homestay</span></a></li>
<li><a href="{{url('listPengajuan')}}"><i class='fa fa-list'></i> <span> Pengajuan Homestay</span></a></li>
</ul>
</li>
<li class="treeview"><a href="#"><i class='fa fa-inbox'></i> <span> PESANAN </span></a>
<li class="treeview"><a href="#"><i class='fa fa-inbox'></i> <span> PESANAN </span><span class="pull-right-container">
<i class="fa fa-angle-left pull-right"></i>
</span></a>
<ul class="treeview-menu" style="display : none;">
<li><a href="{{url('pesanan')}}"><i class='fa fa-list'></i> <span>Pesanan Baru</span></a></li>
<li><a href="{{url('daftarBooking')}}"><i class='fa fa-list'></i> <span>Daftar Booked</span></a></li>
<li><a href="{{url('daftarBooking')}}"><i class='fa fa-list'></i> <span>Daftar Pesanan</span></a></li>
<li><a href="{{url('AddBook')}}"><i class='fa fa-plus'></i> <span>Tambah Pesanan Manual</span></a></li>
</ul>
</li>
......
<!-- Footer -->
<div class="footer agileits w3layouts">
<div class="footer agileits w3layouts">
<div class="container">
<div class="col-md-4 agileits w3layouts footer-grids" style="margin-left:24px; ">
......@@ -13,14 +13,12 @@
</div>
</div>
<div class="col-md-3 agileits w3layouts footer-grids" style="margin-left:70px;padding:0px;">
<div class="col-md-12 footer-grid agileits w3layouts footer-grid-2 ">
<ul class="agileits w3layouts">
<p style="font-size: 20px; color: white; margin-bottom: 10px"> Other Link </p>
<li><a href="{{ url('/howtobook') }}"> Cara Memesan </a></li>
<li><a href="{{ url('/gallery') }}"> Gallery Lumban Bulbul </a></li>
<li><a href="http://wisatatobasa.com/berita/">Wisata Tobasamosir </a></li>
<li><a href="http://www.del.ac.id/"> Institut Teknologi Del </a></li>
<li><a href="http://www.tobasamosirkab.go.id/"> Pemkab Tobasa </a></li>
......@@ -32,20 +30,16 @@
<div class="col-md-12 footer-grid agileits w3layouts footer-grid-3 ">
<ul class="agileits w3layouts">
<p style="font-size: 20px; color: white;margin-bottom: 10px"> Kontak Kami </p>
<li><p><span class="glyphicon agileits w3layouts glyphicon-map-marker" aria-hidden="true"></span> Pematang Siantar Balige No.2 Toba Samosir</p></li>
<li><p><span class="glyphicon agileits w3layouts glyphicon-map-marker" aria-hidden="true"></span> Jl. Pematang Siantar No.2 Balige Toba Samosir</p></li>
<li><p><span class="glyphicon agileits w3layouts glyphicon-envelope" aria-hidden="true"></span> paltigcsinaga@gmail.com</p></li>
<li><p><span class="glyphicon agileits w3layouts glyphicon-phone" aria-hidden="true"></span> +6282174161231</p></li>
<br>
<li>Template by W3layouts
</ul>
</div>
<br>
<br>
</div>
</div>
</div>
<!-- //Footer -->
......@@ -15,12 +15,13 @@
<div id="navbar" class="navbar-collapse agileits w3layouts navbar-right collapse">
<ul class="nav agileits w3layouts navbar-nav">
<li class="active"><a href="{{ url('/') }}">BERANDA</a></li>
<li><a href="{{ url('/#2') }}">DAFTAR HOMESTAY</a></li>
<li><a href="{{ url('/#3') }}">LOKASI</a></li>
<li><a href="{{ url('/#DaftarHomestay') }}">DAFTAR HOMESTAY</a></li>
<li><a href="{{ url('/#Lokasi') }}">LOKASI</a></li>
<!-- <li><a href="gallery.html">PROFILE</a></li> -->
@if (Auth::guest())
<li><a href="{{ url('/login') }}"> LOGIN </a></li>
<li><a href="{{ url('/login') }}"> MASUK </a></li>
<li><a href="{{ url('/daftar') }}"> DAFTAR </a></li>
@else
<!-- User Account Menu -->
<li class="dropdown user user-menu">
......
......@@ -6,14 +6,14 @@
<img src="{{asset('/img/pantaiBulubul2.jpg')}}" alt="Agileits W3layouts">
<div class="layer agileits w3layouts"></div>
<div class="caption agileits w3layouts">
<h3 >Welcome To <span>Lumban bulbul Homestay</span></h3>
<h3 >Welcome To <span>Lumban Bulbul Homestay</span></h3>
</div>
</li>
<li>
<img src="{{asset('/img/slide-01.jpg')}}" alt="Agileits W3layouts">
<div class="layer agileits w3layouts"></div>
<div class="caption agileits w3layouts">
<h3> STAY <span> AT OUR HOMESTAY</span></h3>
<h3> Stay <span> At Our Homestay</span></h3>
</div>
</li>
</ul>
......
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