Commit 9ca0c2fa by Palti Sinaga

data

parent 849bd2de
......@@ -3,7 +3,7 @@
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: 23 Mei 2017 pada 03.12
-- Generation Time: 23 Mei 2017 pada 05.37
-- Versi Server: 10.1.16-MariaDB
-- PHP Version: 7.0.9
......@@ -29,6 +29,7 @@ SET time_zone = "+00:00";
CREATE TABLE `daftar_book` (
`id` int(10) UNSIGNED NOT NULL,
`homestay` int(10) UNSIGNED DEFAULT NULL,
`id_transaksi` int(10) UNSIGNED NOT NULL,
`nama_pemesan` varchar(255) DEFAULT NULL,
`jumlah_kamar` int(255) DEFAULT NULL,
`tanggal_mulai` date DEFAULT NULL,
......@@ -248,7 +249,7 @@ CREATE TABLE `pemilikhomestay` (
--
INSERT INTO `pemilikhomestay` (`id`, `id_Akun`, `nama`, `alamat`, `pekerjaan`, `noTelepon`, `noRekening`, `foto`, `created_at`, `updated_at`) VALUES
(6, 5, 'Palti Sinaga', 'Balige', 'Petani', '082145658976', '12345678981', '1469993_725963404098414_1076561403_n.jpg', '2017-04-29 08:07:38', '2017-05-01 05:49:21'),
(6, 5, 'Palti Sinaga', 'Balige', 'Petani', '6282272194654', '12345678981', '1469993_725963404098414_1076561403_n.jpg', '2017-04-29 08:07:38', '2017-05-22 20:27:04'),
(7, 6, 'Test', '--', '--', '--', '--', 'gravatar.png', '2017-05-03 01:52:34', '2017-05-03 01:52:34'),
(9, NULL, 'Testing', '--', '--', '--', '--', 'gravatar.png', '2017-05-08 19:36:39', '2017-05-08 19:36:39');
......@@ -283,7 +284,7 @@ INSERT INTO `pengajuan_homestay` (`id`, `idPemilikHomestay`, `idPgwDinasPariwisa
CREATE TABLE `requestfasilitas` (
`id` int(11) NOT NULL,
`id_pemilik_homestay` int(10) UNSIGNED NOT NULL,
`id_pemilik_homestay` int(10) UNSIGNED DEFAULT NULL,
`id_kategoriFasiltas` int(10) UNSIGNED DEFAULT NULL,
`namaRequestFasilitas` varchar(255) NOT NULL,
`deskripsi` varchar(255) NOT NULL,
......@@ -297,7 +298,8 @@ CREATE TABLE `requestfasilitas` (
--
INSERT INTO `requestfasilitas` (`id`, `id_pemilik_homestay`, `id_kategoriFasiltas`, `namaRequestFasilitas`, `deskripsi`, `jumlah`, `gambar`, `status`) VALUES
(8, 6, 2, 'Keramik Pecah', 'Terjadi Perang saudara', 100, 'Agar-Keramik-Tidak-Meledak.jpg', 2);
(8, 6, 2, 'Keramik Pecah', 'Terjadi Perang saudara', 100, 'Agar-Keramik-Tidak-Meledak.jpg', 2),
(12, 6, 2, 'Keramik Pecah', ' Tsunami dan pelanggan mati gan', 100, 'Agar-Keramik-Tidak-Meledak.jpg', 2);
-- --------------------------------------------------------
......@@ -319,13 +321,6 @@ CREATE TABLE `transaksi` (
`status` int(1) UNSIGNED ZEROFILL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `transaksi`
--
INSERT INTO `transaksi` (`id`, `id_pelanggan`, `id_homestay`, `tanggal_mulai`, `tanggal_berakhir`, `jumlah_kamar`, `lama_menginap`, `bukti_pembayaran`, `total_pembayaran`, `tanggal_konfirmasi`, `status`) VALUES
(22, 2, 9, '2017-05-31', '2017-06-01', 2, 2, 'bukulapak.PNG', 300000, NULL, 2);
-- --------------------------------------------------------
--
......@@ -350,11 +345,11 @@ CREATE TABLE `users` (
--
INSERT INTO `users` (`id`, `name`, `username`, `email`, `password`, `foto`, `role`, `remember_token`, `created_at`, `updated_at`) VALUES
(2, 'Juliper', 'admin', 'admin@del.ac.id', '$2y$10$nnnUgQAnb9FnDb3DNTlwaehkE5GiJ6piv8Yg/LXyXypdgaxigpHVe', 'gravatar.png', 'DinasPariwisata', '9BM2CvTAuR2myvSSUQtBRX8WGv3IA7jhWoct58IzU6Ql3LFz5n0UHxJ12EQl', '2017-04-22 02:30:14', '2017-05-20 02:06:31'),
(5, 'Palti Sinaga', 'palti', 'palti1@gmail.com', '$2y$10$YZNp2gw4amlEQWi4hvDA9OfGixdYx1AIsl0.El8TzQoo9IPed8E..', 'gravatar.png', 'Owner', 'NPhFExMYjdhcrgU74lg55v0862KlvCwYVLlXKdSZPVSmrAwWspyPgJuIGy2F', '2017-04-29 08:07:38', '2017-05-22 06:35:26'),
(2, 'Juliper', 'admin', 'admin@del.ac.id', '$2y$10$nnnUgQAnb9FnDb3DNTlwaehkE5GiJ6piv8Yg/LXyXypdgaxigpHVe', 'gravatar.png', 'DinasPariwisata', 'jMe4xrH61swuhqq65yICGZ10rJEAbabExOljq0XU2MgOWgRkkrwbMCUYCQyv', '2017-04-22 02:30:14', '2017-05-22 20:37:19'),
(5, 'Palti Sinaga', 'palti', 'palti1@gmail.com', '$2y$10$YZNp2gw4amlEQWi4hvDA9OfGixdYx1AIsl0.El8TzQoo9IPed8E..', 'gravatar.png', 'Owner', '9OBnclc2bJgTWEFa40SNojJMYs4p5tSn9zxkcVjlscqQvEHDjclWIZoHTpaS', '2017-04-29 08:07:38', '2017-05-22 20:36:50'),
(6, 'Test', 'test', 'test@gmail.com', '$2y$10$rkcPTvpujOZZFRs/libdZeIED53Ve67HM/3C9Zb0jQE8hqxzhsIxW', 'gravatar.png', 'Owner', 'AJIJRslmncu87OVMkJydqFkT41QjzjsSPpaMgDdPbZuRINHhkQ7WU7xf1hM8', '2017-05-03 01:52:34', '2017-05-15 01:55:41'),
(8, 'Testing', 'testing', 'testing@gmail.com', '$2y$10$tDOBcuve8EGi.k8.v9at5eYZRMRdOyXmqaahfwG2pwyMrbWd3B1Ra', 'gravatar.png', 'Owner', NULL, '2017-05-08 19:36:39', '2017-05-08 19:36:39'),
(14, 'Lesa Lesuu ', 'lesa', 'lesa@gmail.com', '$2y$10$zudTTxc6.lENGpFKwp093u9SuvEjidfYExLHk3vsOvZISDma1HChW', 'anonymous1.jpg', 'Customer', 'X86xStCPGExwPLzqmHcJ8VnnjzpskshUuAcklYJDGAhQVEandsce6e57MCjw', '2017-05-09 02:41:21', '2017-05-21 19:42:23'),
(14, 'Lesa Lesuu ', 'lesa', 'lesa@gmail.com', '$2y$10$zudTTxc6.lENGpFKwp093u9SuvEjidfYExLHk3vsOvZISDma1HChW', 'anonymous1.jpg', 'Customer', '3yJ1IwQV4QOUhEeXHyOlqql1KDkV2oUDOjF3NaQM7DPuWuMLHFb6adqUuxU0', '2017-05-09 02:41:21', '2017-05-22 20:01:35'),
(15, 'Parhuta', 'hutahuta', 'huta@gmail.com', '$2y$10$S/thLiTQUbpZ6/utPKPwDe7JGoScFnebDK6Vt6sm0I.7CIoQ9HrWe', 'gravatar.png', 'Customer', NULL, '2017-05-09 03:12:55', '2017-05-09 03:12:55');
--
......@@ -366,7 +361,8 @@ INSERT INTO `users` (`id`, `name`, `username`, `email`, `password`, `foto`, `rol
--
ALTER TABLE `daftar_book`
ADD PRIMARY KEY (`id`),
ADD KEY `homestay` (`homestay`);
ADD KEY `homestay` (`homestay`),
ADD KEY `id_transaksi` (`id_transaksi`);
--
-- Indexes for table `dinaspariwisata`
......@@ -447,8 +443,8 @@ ALTER TABLE `pengajuan_homestay`
--
ALTER TABLE `requestfasilitas`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `id_pemilik_homesaty` (`id_pemilik_homestay`),
ADD KEY `id_kategoriFasiltas` (`id_kategoriFasiltas`);
ADD KEY `id_kategoriFasiltas` (`id_kategoriFasiltas`),
ADD KEY `id_pemilik_homestay` (`id_pemilik_homestay`);
--
-- Indexes for table `transaksi`
......@@ -474,7 +470,7 @@ ALTER TABLE `users`
-- AUTO_INCREMENT for table `daftar_book`
--
ALTER TABLE `daftar_book`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `dinaspariwisata`
--
......@@ -524,12 +520,12 @@ ALTER TABLE `pengajuan_homestay`
-- AUTO_INCREMENT for table `requestfasilitas`
--
ALTER TABLE `requestfasilitas`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;
--
-- AUTO_INCREMENT for table `transaksi`
--
ALTER TABLE `transaksi`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=23;
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=25;
--
-- AUTO_INCREMENT for table `users`
--
......@@ -543,7 +539,8 @@ ALTER TABLE `users`
-- Ketidakleluasaan untuk tabel `daftar_book`
--
ALTER TABLE `daftar_book`
ADD CONSTRAINT `daftar_book_ibfk_1` FOREIGN KEY (`homestay`) REFERENCES `homestay` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
ADD CONSTRAINT `daftar_book_ibfk_1` FOREIGN KEY (`homestay`) REFERENCES `homestay` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
ADD CONSTRAINT `daftar_book_ibfk_2` FOREIGN KEY (`id_transaksi`) REFERENCES `transaksi` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Ketidakleluasaan untuk tabel `feedback`
......
......@@ -27,7 +27,7 @@
@endif
</div>
<div class="box-body">
<form action="{{ url('reqFasilitas') }}" method="post" enctype="multipart/form-data">
<form action="{{ url('reqFasilitas') }}" method="post" enctype="multipart/form-data" name="myForm" onsubmit="return(validate())">
<input type="hidden" name="_token" value="{{ csrf_token() }}">
<div class="form-group">
<label> Judul </label>
......@@ -35,8 +35,9 @@
<div class="input-group-addon">
<i class="fa fa-bookmark"></i>
</div>
<input type="text" class="form-control" placeholder="Nama Request Fasilitas" name="namaRequestFasilitas"/>
<input type="text" class="form-control" placeholder="Judul Request Fasilitas" name="namaRequestFasilitas"/>
</div>
<span id="errfn" style="color: red"></span>
</div>
<div class="form-group">
......@@ -45,8 +46,9 @@
<div class="input-group-addon">
<i class="fa fa-newspaper-o"></i>
</div>
<textarea class="form-control" placeholder="Deskripsi" name="deskripsi" style="height:200px;"> </textarea>
<textarea class="form-control" placeholder="Deskripsi" style="height:200px;" name="deskripsi"> </textarea>
</div>
<span id="errfn2" style="color: red"></span>
</div>
<div class="form-group">
......@@ -55,8 +57,9 @@
<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="text" class="form-control" placeholder="Jumlah" name="jumlah" />
</div>
<span id="errfn3" style="color: red"></span>
</div>
<div class="form-group">
......@@ -86,4 +89,20 @@
</form>
</div>
</div>
<script type="text/javascript">
function validate()
{
if(document.myForm.namaRequestFasilitas.value == "")
{
document.getElementById('errfn').innerHTML="Harap Isi Judul";
document.myForm.namaRequestFasilitas.focus();
return false;
}
return (true);
}
</script>
@endsection
......@@ -18,6 +18,7 @@
</ul>
</div>
@endif
@if(session()->has('message'))
<div class="alert alert-info">
{{session()->get('message')}}
......@@ -28,6 +29,7 @@
{{$succes}}
</div>
@endif
</div>
<div class="box-body">
<div class="col-md-4 col-sm-6 col-xs-12">
......
......@@ -5,7 +5,7 @@
@endsection
@section('main-content')
<div class="col-md-12">
<div class="box box-warning">
<div class="box-header with-border">
<h3 class="box-title"> Daftar Feedback </h3>
......@@ -53,7 +53,7 @@
</table>
</div>
</div>
</div>
......
......@@ -3,14 +3,14 @@
@section('main-content')
<!-- Banner -->
<div class="banner agileits w3layouts">
<img src="{{asset('img/banner.jpg')}}" alt="Agileits W3layouts">
<img src="/img/{{$data->gambar}}" alt="Agileits W3layouts" style="max-height:500px; width:">
<h1 class="wow agileits w3layouts fadeInDown">{{$data->namaHomestay}}</h1>
</div>
<!-- //Banner -->
<!-- Booking -->
<div class="details agileits w3layouts" style="margin-top: 10px; padding:0px">
<div class="details agileits w3layouts" style="margin-top: 30px; padding:0px">
<div class="container">
<br>
<div class="col-md-12 col-sm-12 agileits w3layouts contact-grid contact-grid-2 wow slideInLeft">
......@@ -39,17 +39,11 @@
</div>
</div>
<!-- Booking -->
<br><br>
<div class="details agilets w3layouts">
<h2 style="margin-bottom: 10px;"> Daftar Booking </h2>
<div class="details agilets w3layouts" style="margin-bottom:0px; margin-top:0px;">
<h2 > Daftar Booking di {{$data->namaHomestay}}</h2>
<div class="container">
<div class="cuisines agileits w3layouts">
<div class="container">
<table class="table table-striped">
<table class="table table-hover" style="background-color: white; margin-top:20px;">
<thead>
<tr>
<th> Nama Pemesan </th>
......@@ -69,8 +63,7 @@
@endforeach
</tbody>
</table>
</div>
</div>
</div>
</div>
......@@ -140,11 +133,6 @@
<!-- //Tooltip-Content -->
<!-- Kritik & Saran -->
<script>
$('#myModal').modal('');
</script>
<!-- Date-Picker-JavaScript -->
<script src="{{asset('js/jquery-ui.js')}}"></script>
......
......@@ -3,19 +3,18 @@
<div class="container">
<div class="col-md-4 agileits w3layouts footer-grids">
<div class="col-md-10 footer-grid agileits w3layouts footer-grid-1 wow fadeInUp">
<p>
<p>
<img src="{{asset('img\bulbulhomestay.png')}}" style="margin-top: 5px;">
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt.
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt.
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt.
<p>
Homestay Lumbanbulbul merupakan homestay yang berada di lokasi wisata pantai lumban bulbul
Homestay ini dibawah binaan Dinas Pariwisata dan Kebudayaan Toba Samosir
<p>
</div>
</div>
<div class="col-md-2 agileits w3layouts footer-grids" style="margin-right: 20px;">
<div class="col-md-12 footer-grid agileits w3layouts footer-grid-2 wow fadeInUp">
<ul class="agileits w3layouts">
<p style="font-size: 20px; color: white; margin-bottom: 10px"> Other Link </p>
<p style="font-size: 20px; color: white; margin-bottom: 10px"> Other Link </p>
<li><a href=""> Tobasamosir </a></li>
<li><a href=""> Institut Teknologi Del </a></li>
<li><a href=""> Dinasparisiwata Tobasa </a></li>
......@@ -26,9 +25,9 @@
<div class="col-md-4 agileits w3layouts footer-grids">
<div class="col-md-12 footer-grid agileits w3layouts footer-grid-3 wow fadeInUp">
<ul class="agileits w3layouts">
<p style="font-size: 20px; color: white;margin-bottom: 10px"> Contact Us </p>
<p>Jl. Pematang Siantar Balige No.2 Toba Samosir</p>
<p>paltigcsinaga@gmail.com</p>
<p style="font-size: 20px; color: white;margin-bottom: 10px"> Contact Us </p>
<p><span class="glyphicon agileits w3layouts glyphicon-map-marker" aria-hidden="true"></span> Pematang Siantar Balige No.2 Toba Samosir</p>
<p><span class="glyphicon agileits w3layouts glyphicon-envelope" aria-hidden="true"></span>paltigcsinaga@gmail.com</p>
<p>+6282174161231</p>
</ul>
</div>
......@@ -61,4 +60,4 @@
</div>
</div>
<!-- //Footer -->
\ No newline at end of file
<!-- //Footer -->
<!-- Custom-JavaScript-File-Links -->
<!-- Default-JavaScript -->
<!-- Default-JavaScript -->
<script type="text/javascript" src="{{asset('js/jquery-2.1.4.min.js')}}"></script>
<script type="text/javascript" src="{{asset('js/jquery-ui.js')}}"></script>
<!-- Bootstrap-JavaScript -->
<!-- Bootstrap-JavaScript -->
<script type="text/javascript" src="{{asset('js/bootstrap.min.js')}}"></script>
<!-- Sweealert-JavaScript -->
<script type="text/javascript" src="{{asset('js/sweet-alert.min.js')}}"></script>
......@@ -87,16 +87,16 @@
$("#datepicker1").datepicker({
dateFormat: "yy-mm-dd",
minDate: 0,
onSelect: function(date){
var date1 = $('#datepicker1').datepicker('getDate');
var date = new Date( Date.parse( date1 ) );
date.setDate( date.getDate() + 1 );
var newDate = date.toDateString();
newDate = new Date( Date.parse( newDate ) );
$('#datepicker2').datepicker("option","minDate",newDate);
onSelect: function(date){
var date1 = $('#datepicker1').datepicker('getDate');
var date = new Date( Date.parse( date1 ) );
date.setDate( date.getDate() + 1 );
var newDate = date.toDateString();
newDate = new Date( Date.parse( newDate ) );
$('#datepicker2').datepicker("option","minDate",newDate);
}
});
</script>
<!-- //Custom-JavaScript-File-Links -->
\ No newline at end of file
<!-- //Custom-JavaScript-File-Links -->
......@@ -6,15 +6,17 @@
<img src="img/danautoba.jpg" alt="Agileits W3layouts">
<div class="layer agileits w3layouts"></div>
<div class="caption agileits w3layouts">
<h3 >Welcome To <span>TROPICAL RESORTS</span></h3>
<h3 >Welcome To <span>Lumban bulbul Homestay</span></h3>
</div>
</li>
<li>
<img src="img/slide-11.jpg" alt="Agileits W3layouts">
<img src="img/slide-01.jpg" alt="Agileits W3layouts">
<div class="layer agileits w3layouts"></div>
<div class="caption agileits w3layouts">
<h3>Choose The Best Resort For You</h3>
<h3> STAY <span> AT OUR HOMESTAY</span></h3>
</div>
</li>
</ul>
</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