Commit 19d4353b by Palti Sinaga

12345678

parent 9174037e
......@@ -64,6 +64,8 @@ class AdminController extends Controller
return view('adminlte::layouts.admin.listhomestay')->with('data',$data);
}
public function cariPesanan(Request $request){
$dataHomestay = Homestay::where('nama_homestay',$request['nama_homestay'])->get();
......@@ -104,10 +106,15 @@ class AdminController extends Controller
$penghasilan += $biaya;
}
dd($data,$data2,$penghasilan);
// dd($data,$data2,$penghasilan);
// dd('masuk',$request['bulan'],$request['nama_homestay'],$data);
return view('adminlte::layouts.admin.resultlistpesanan')->with('data',$data);
}
public function resultlistpesanan(){
dd('masuk',$request['bulan'],$request['nama_homestay'],$data);
return view('');
}
public function Allfeedback(){
......@@ -131,9 +138,9 @@ class AdminController extends Controller
$dataFeedback = DB::table('feedback')
->join('pemilikhomestay','feedback.id_pemilik_homestay','=','pemilikhomestay.id')
->join('pelanggan','feedback.id_pelanggan','=','pelanggan.id')
->select('pemilikhomestay.id','feedback.feedback','pelanggan.nama')
->select('pemilikhomestay.id','feedback.feedback','pelanggan.nama','feedback.created_at','feedback.id')
->where('pemilikhomestay.id','=',$id)
->paginate(4);
->paginate(10);
//dd($dataFeedback);
return view('adminlte::layouts.admin.feedback')->with('data',$dataFeedback);
......@@ -151,7 +158,10 @@ class AdminController extends Controller
public function owner($id){
$data = Owner::where('id_akun',$id)->get();
$data = Owner::where('id_akun',$id)
->join('users','pemilikhomestay.id_akun','=','users.id')
->select('users.username','pemilikhomestay.*')
->get();
// dd($data[0]);
return view('adminlte::layouts.admin.updateOwner')->with('data',$data[0]);
......@@ -182,7 +192,7 @@ class AdminController extends Controller
$dataUs = User::find($dataOw->id_akun);
$dataUs->username = $request['username'];
$dataUs->password = bcrypt($request['password']);
......
......@@ -3,7 +3,7 @@
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: 11 Jun 2017 pada 16.38
-- Generation Time: 14 Jun 2017 pada 04.57
-- Versi Server: 10.1.16-MariaDB
-- PHP Version: 7.0.9
......@@ -34,6 +34,7 @@ CREATE TABLE `daftar_book` (
`jumlah_kamar` int(255) DEFAULT NULL,
`tanggal_mulai` date DEFAULT NULL,
`tanggal_berakhir` date DEFAULT NULL,
`lama_menginap` int(10) DEFAULT NULL,
`status` tinyint(1) DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
......@@ -41,12 +42,17 @@ CREATE TABLE `daftar_book` (
-- Dumping data untuk tabel `daftar_book`
--
INSERT INTO `daftar_book` (`id`, `homestay`, `id_transaksi`, `nama_pemesan`, `jumlah_kamar`, `tanggal_mulai`, `tanggal_berakhir`, `status`) VALUES
(9, 9, 9, 'Lesa Lesuu ', 1, '2017-06-16', '2017-06-18', 0),
(11, 9, 11, 'Sudarsono Sianipar', 2, '2017-06-15', '2017-06-18', 0),
(13, 9, NULL, '5', 1, '2017-06-27', '2017-06-27', 1),
(14, 9, NULL, 'asda', 10, '2017-06-14', '2017-06-14', 1),
(15, 9, 13, 'Lesa Lesuu ', 2, '2017-06-22', '2017-06-25', 1);
INSERT INTO `daftar_book` (`id`, `homestay`, `id_transaksi`, `nama_pemesan`, `jumlah_kamar`, `tanggal_mulai`, `tanggal_berakhir`, `lama_menginap`, `status`) VALUES
(11, 9, 11, 'Sudarsono Sianipar', 2, '2017-06-15', '2017-06-18', 3, 0),
(13, 9, NULL, '5', 1, '2017-06-27', '2017-06-28', 1, 1),
(14, 9, NULL, 'asda', 1, '2017-06-14', '2017-06-15', 1, 1),
(15, 9, 13, 'Lesa Lesuu ', 2, '2017-06-22', '2017-06-25', 3, 1),
(20, 9, 19, 'Seminar', 2, '2017-07-20', '2017-07-22', 2, 1),
(21, 13, 20, 'Seminar', 1, '2017-06-24', '2017-06-25', 1, 1),
(23, 9, 22, 'Sudarsono Sianipar', 2, '2017-05-01', '2017-05-02', 1, 1),
(24, 9, 23, 'Sudarsono Sianipar', 3, '2017-05-04', '2017-05-07', 3, 1),
(25, 13, 24, 'Lesa Lesuu', 2, '2017-05-12', '2017-05-14', 2, 1),
(26, 13, 25, 'Lesa Lesuu', 2, '2017-05-22', '2017-05-25', 3, 1);
-- --------------------------------------------------------
......@@ -121,9 +127,8 @@ CREATE TABLE `homestay` (
--
INSERT INTO `homestay` (`id`, `id_pemilik`, `nama_homestay`, `owner`, `alamat`, `jumlah_kamar`, `harga`, `fasilitas`, `gambar`, `status`, `created_at`, `updated_at`) VALUES
(9, 6, 'Mawar Homestay', 'Palti Sinaga', 'Balige', 4, 150000, ' ', 'slide-01.jpg', '----', '2017-05-08 02:51:28', '2017-05-24 05:36:49'),
(11, 13, 'Blessing Homestay', 'Op.Balata', 'Lumban Bul Bul', 3, 150000, NULL, 'balata_slide-01.jpg', '----', '2017-05-25 21:25:28', '2017-05-25 23:15:01'),
(12, 16, 'Ririn Homestay', 'rinto harahap', 'Lumban bulbul', 4, 150000, NULL, 'ririn_slide.jpg', '----', '2017-05-25 23:37:47', '2017-05-25 23:42:06');
(9, 6, 'Mawar Homestay', 'Palti Sinaga', 'Balige', 4, 150000, 'Homestay kami menyediakan jasa transportasi yaitu rental kereta, juga bahan-bahan untuk bakar ikan. kami juga menyediakan air panas untuk air mandi. Terdapat juga kasur tambahan jika anda ingin menambah kasur.', 'slide-01.jpg', '----', '2017-05-08 02:51:28', '2017-06-12 07:00:00'),
(13, 18, 'Dion Homestay', 'Dion Marpaung', 'Lumban Bul Bul', 4, 150000, NULL, 'ririn_slide.jpg', '----', '2017-06-12 06:35:42', '2017-06-12 06:43:40');
-- --------------------------------------------------------
......@@ -138,25 +143,23 @@ CREATE TABLE `kamar` (
`nomor_kamar` int(10) UNSIGNED NOT NULL,
`jumlah_bed` int(10) DEFAULT NULL,
`fasilitas` varchar(255) DEFAULT NULL,
`gambar` varchar(255) DEFAULT NULL
`gambar` varchar(255) DEFAULT NULL,
`tamu_per_kamar` int(10) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `kamar`
--
INSERT INTO `kamar` (`id`, `id_homestay`, `id_transaksi`, `nomor_kamar`, `jumlah_bed`, `fasilitas`, `gambar`) VALUES
(8, 9, 1, 1, 3, 'ada deh', 'big251436.jpg'),
(9, 9, 1, 2, 2, 'adu adu adu', '20150901_172049.jpg'),
(10, 9, 1, 3, 1, 'Ada Speed Boat', 'bougenville4.JPG'),
(11, 9, NULL, 4, 2, 'Ada SpringBed', 'wisma-intan-kamar-tidur.jpg'),
(15, 11, NULL, 1, 2, '', 'kamarA.png'),
(16, 11, NULL, 2, 2, '', 'kamarB.jpg'),
(17, 11, NULL, 3, 2, '', 'kamarC.jpg'),
(18, 12, NULL, 1, 2, '', 'kamarR1.jpg'),
(19, 12, NULL, 2, 2, '', 'kamarR2.jpg'),
(20, 12, NULL, 3, 2, '', 'kamarR3.jpg'),
(21, 12, NULL, 4, 2, '', 'kamarR4.jpg');
INSERT INTO `kamar` (`id`, `id_homestay`, `id_transaksi`, `nomor_kamar`, `jumlah_bed`, `fasilitas`, `gambar`, `tamu_per_kamar`) VALUES
(8, 9, 1, 1, 3, '', '20170506_121535.jpg', 3),
(9, 9, 1, 2, 2, '', '20170506_121556.jpg', 3),
(10, 9, 1, 3, 1, '', '20170506_121048.jpg', 3),
(11, 9, NULL, 4, 2, '', '20170506_121311.jpg', 3),
(22, 13, NULL, 1, 2, '', '20170506_124200.jpg', NULL),
(23, 13, NULL, 2, 2, 'Tempat tidur untuk 2 orang', '20170506_124225.jpg', NULL),
(24, 13, NULL, 3, 2, '', '20170506_124239.jpg', NULL),
(25, 13, NULL, 4, 2, '', '20170506_124121.jpg', NULL);
-- --------------------------------------------------------
......@@ -250,7 +253,8 @@ INSERT INTO `pelanggan` (`id`, `id_Akun`, `nama`, `alamat`, `no_telepon`, `peker
(2, 14, 'Lesa Lesuu ', 'Medan Bung', '082134657865', 'Panortor Profesional', NULL, '2017-05-09 02:32:54', '2017-05-09 21:46:55'),
(4, 15, 'Parhuta', '---', '---', '---', NULL, '2017-05-09 03:12:56', '2017-05-09 03:12:56'),
(5, 26, 'Testing', '---', '---', '---', NULL, '2017-05-26 07:23:51', '2017-05-26 07:23:51'),
(6, 28, 'Sudarsono Sianipar', 'Siborong borong', '082272194654', 'Mahasiswa', NULL, '2017-06-10 00:04:53', '2017-06-10 00:20:12');
(6, 28, 'Sudarsono Sianipar', 'Siborong borong', '082272194654', 'Mahasiswa', NULL, '2017-06-10 00:04:53', '2017-06-10 00:20:12'),
(7, 31, 'Seminar', 'Medan', '082272194321', 'Guru', NULL, '2017-06-12 18:11:39', '2017-06-12 18:13:20');
-- --------------------------------------------------------
......@@ -276,12 +280,9 @@ CREATE TABLE `pemilikhomestay` (
--
INSERT INTO `pemilikhomestay` (`id`, `id_akun`, `nama`, `alamat`, `pekerjaan`, `no_telepon`, `no_rekening`, `foto`, `created_at`, `updated_at`) VALUES
(6, 5, 'Palti Sinaga', 'Balige', 'Petani', '6282272194654', '12345678981', '1493643347919.jpg', '2017-04-29 08:07:38', '2017-05-24 05:38:43'),
(13, 22, 'Op.Balata', '--', '--', '--', '--', 'gravatar.png', '2017-05-25 21:10:39', '2017-05-25 21:10:39'),
(14, 23, 'Dion Marpaung', '--', '--', '--', '--', 'gravatar.png', '2017-05-25 21:11:26', '2017-05-25 21:11:26'),
(15, 24, 'Rinto', '--', '--', '--', '--', 'gravatar.png', '2017-05-25 23:32:38', '2017-05-25 23:32:38'),
(16, 25, 'rinto harahap', '--', '--', '--', '--', 'gravatar.png', '2017-05-25 23:33:35', '2017-05-25 23:33:35'),
(17, 29, 'Contoh', '--', '--', '--', '--', 'gravatar.png', '2017-06-10 01:10:51', '2017-06-10 01:10:51');
(6, 5, 'Palti Sinaga', 'Balige', 'Petani', '6282272194654', '12345678981', 'bulbul-01_gdsl53-1.jpg', '2017-04-29 08:07:38', '2017-06-11 19:56:29'),
(13, 22, 'Op.Balata', 'Lumban Bulbul', 'Wiraswasta', '6282160173068', '9876543223456', 'gravatar.png', '2017-05-25 21:10:39', '2017-06-12 06:19:48'),
(18, 30, 'Dion Marpaung', 'Lumban Bulbul', 'Wiraswasta', '', '3123412431', 'gravatar.png', '2017-06-12 06:34:07', '2017-06-12 10:52:09');
-- --------------------------------------------------------
......@@ -305,8 +306,9 @@ CREATE TABLE `pengajuan_homestay` (
INSERT INTO `pengajuan_homestay` (`id`, `id_pemilik_homestay`, `id_pgw_dinas_pariwisata`, `nama_homestay`, `jumlah_kamar`, `status`) VALUES
(3, 6, NULL, 'Test2', 4, 1),
(5, 13, NULL, 'Blessing Homestay', 3, 1),
(6, 16, NULL, 'Ririn Homestay', 4, 1),
(7, 6, NULL, 'Test', 3, 2);
(7, 6, NULL, 'Test', 3, 2),
(8, 18, NULL, 'Dion Homestay', 4, 1),
(9, 6, NULL, 'Hanssen Homestay', 200, 0);
-- --------------------------------------------------------
......@@ -333,7 +335,9 @@ INSERT INTO `requestfasilitas` (`id`, `id_pemilik_homestay`, `id_kategori_fasilt
(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),
(13, 6, 2, 'Penambahan Kamar', ' izin penambahan', 10, 'e3.JPG', 2),
(14, 6, 1, 'Penambahan Bunkbed', ' penambah untuk extra bed bapak', 10, NULL, 2);
(14, 6, 1, 'Penambahan Bunkbed', ' penambah untuk extra bed bapak', 10, NULL, 2),
(15, 18, 2, 'asdas', ' adsdassa', 1, NULL, 2),
(16, 6, 1, 'Permintaan penambaan Bunkbed', ' Kerusakn Bunkbed yang di gunakan pelanggan', 2, 'bougenville4.JPG', NULL);
-- --------------------------------------------------------
......@@ -365,7 +369,14 @@ INSERT INTO `transaksi` (`id`, `id_pelanggan`, `id_homestay`, `tanggal_mulai`, `
(10, 2, 9, '2017-06-22', '2017-06-24', 2, 3, NULL, 300000, NULL, 3),
(11, 6, 9, '2017-06-15', '2017-06-18', 2, 3, 'bukulapak.PNG', 300000, NULL, 1),
(12, 6, 9, '2017-06-29', '2017-07-03', 3, 3, NULL, 450000, NULL, 2),
(13, 2, 9, '2017-06-22', '2017-06-25', 2, 3, NULL, 300000, NULL, 0);
(13, 2, 9, '2017-06-22', '2017-06-25', 2, 3, 'error1.PNG', 300000, NULL, 0),
(18, 6, 13, '2017-06-16', '2017-06-19', 3, 3, NULL, 450000, NULL, 2),
(19, 7, 9, '2017-07-20', '2017-07-22', 2, 2, NULL, 300000, NULL, 0),
(20, 7, 13, '2017-06-24', '2017-06-25', 1, 1, NULL, 150000, NULL, 0),
(22, 6, 9, '2017-05-01', '2017-05-02', 2, 1, NULL, 300000, NULL, 1),
(23, 6, 9, '2017-05-04', '2017-05-07', 3, 3, NULL, 200000, NULL, 1),
(24, 2, 13, '2017-05-12', '2017-05-14', 2, 2, NULL, 400000, NULL, 1),
(25, 2, 13, '2017-05-22', '2017-05-25', 2, 3, NULL, 300000, NULL, 0);
-- --------------------------------------------------------
......@@ -391,18 +402,15 @@ 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', 'tcWgUwDQEwwPnS8piZ6Yw11l7zjADXF80diORZMBwSGuQ1MybFvfY7hfxdkn', '2017-04-22 02:30:14', '2017-06-10 08:14:28'),
(5, 'Palti Sinaga', 'palti', 'palti1@gmail.com', '$2y$10$YZNp2gw4amlEQWi4hvDA9OfGixdYx1AIsl0.El8TzQoo9IPed8E..', 'gravatar.png', 'Owner', 'uRta5KD0hCg8BVWTd9Fnksn8MYtDXdymh9tmGXDxoWYvfGLZl7J8FTvZp2PN', '2017-04-29 08:07:38', '2017-06-11 06:20:06'),
(14, 'Lesa Lesuu ', 'lesa', 'lesa@gmail.com', '$2y$10$zudTTxc6.lENGpFKwp093u9SuvEjidfYExLHk3vsOvZISDma1HChW', 'anonymous1.jpg', 'Customer', 'HYEbUs5fv3qqve352ojzn8WS0cLYeZ8evWLqtSoMC2pJFl0C3dYlPPes7g0V', '2017-05-09 02:41:21', '2017-06-11 05:45:41'),
(2, 'Juliper', 'admin', 'admin@del.ac.id', '$2y$10$nnnUgQAnb9FnDb3DNTlwaehkE5GiJ6piv8Yg/LXyXypdgaxigpHVe', 'gravatar.png', 'DinasPariwisata', 'nhrmHnWWnswCZjcPgraCenHVqR06YWibHHlzC1OkM2O4mc8ZPTeG1EuFaxVH', '2017-04-22 02:30:14', '2017-06-13 19:00:23'),
(5, 'Palti Sinaga', 'palti', 'palti1@gmail.com', '$2y$10$YZNp2gw4amlEQWi4hvDA9OfGixdYx1AIsl0.El8TzQoo9IPed8E..', 'bulbul-01_gdsl53-1.jpg', 'Owner', 'lWMTVyFHLGiIgZ2nxOMQtfR2j8hDALZe2ANz3KroUZoYsLFaf3Pk0SYa0XwB', '2017-04-29 08:07:38', '2017-06-13 11:32:29'),
(14, 'Lesa Lesuu ', 'lesa', 'lesa@gmail.com', '$2y$10$zudTTxc6.lENGpFKwp093u9SuvEjidfYExLHk3vsOvZISDma1HChW', 'anonymous1.jpg', 'Customer', 'aBIIHULrwmg014tFaCYpwZrejxciXzbunko3Bf6UPHnAMjKScGoOeUHlHOoT', '2017-05-09 02:41:21', '2017-06-12 10:58:54'),
(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'),
(22, 'Op.Balata', 'balata', 'balata@gmail.com', '$2y$10$r6Vxa2PnV2eKFaaGZ51RHOeJiloAdgF6YaMLiFFqF4p4AydQTLzAW', NULL, 'Owner', 'FB6EyvXgOIhmtf1ptoLHYqIJ1JUmncJBtIuB0aWIVDTbrJs3R5ZATQJNWwQN', '2017-05-25 21:10:39', '2017-05-26 01:35:12'),
(23, 'Dion Marpaung', 'dionm', 'dion@gmail.com', '$2y$10$OVg25M/AMKoziQhfym4OcOYTmR8TWAMWFz8tOs6ogB7xdTnIeCG1u', NULL, 'Owner', NULL, '2017-05-25 21:11:26', '2017-05-25 21:11:26'),
(24, 'Rinto', 'rinto harahap', 'rinto@gmail.com', '$2y$10$4592RC8dZb5IxVGuZIxyAOJpym7A9EhUPTiz6Z7NlRg/oYN2DLpW6', NULL, 'Owner', NULL, '2017-05-25 23:32:37', '2017-05-25 23:32:37'),
(25, 'rinto harahap', 'rinto', 'rinto@gmail.co.id', '$2y$10$Pe3H88Riq.HRDORwtf2nW.WTgBBoeOBw66K2DlQu5jjfal4MoxSp6', NULL, 'Owner', 'vC8Njl3U4y92sY4mTCTV1mUYejSLIw6qn42ddNamUr0Yr6q5YmmdsJTsZAk0', '2017-05-25 23:33:35', '2017-05-25 23:35:54'),
(22, 'Op.Balata', 'opbalata', 'balata@gmail.com', '$2y$10$HuXdLU2i0RdiweXKE07seugcrYbDrAWiZx3o3ExrR1pYKjFuEthvi', 'gravatar.png', 'Owner', 'ChwqElcpjW1D2bNnx4CmCareT3ICTWO9H7wudCT451qm0z1OMo5T4kHSCB8E', '2017-05-25 21:10:39', '2017-06-12 10:57:38'),
(26, 'Testing', 'test', 'testing@gmail.com', '$2y$10$hGj/hbVlJ4QtU.L1gy.0G.V5cbD9xYm7F5w4jXRfN6aLrbe0Otm8C', 'gravatar.png', 'Customer', 'LfVsaEHiFiRrKuHletzPAy5O8Neu3KOIYEo6wVGMfnGJoALFy7tKJ5QunSP1', '2017-05-26 07:23:51', '2017-05-26 07:32:29'),
(27, '', '', '', '', NULL, '', NULL, NULL, NULL),
(28, 'Sudarsono Sianipar', 'sudaraja', 'sudar@gmail.com', '$2y$10$pT.It3G0VrMqlYG5X4C6o.U/34qBTo8KTV3WwMB/IRxlByxGwwR7i', 'anonymous1.jpg', 'Customer', 'dyoXA32kDknAu3D7z4qmviplUfs5b0enrXhyWNyZD8qsr5u3xEAtNDddLXcq', '2017-06-10 00:04:53', '2017-06-11 05:44:54'),
(29, 'Contoh', 'contoh', 'contoh@gmail.com', '$2y$10$mp9AnhHUPbAyKO54uPNaW.DccIh43jplT5GLkBxnt/X8QWSNwVcxK', 'gravatar.png', 'Owner', 'EX55p4UF2bdF4TvQdXG2hNpvXLiwCc9wO4mH9ZkSf6rZoIfBqpPxXpGtQ3Ba', '2017-06-10 01:10:51', '2017-06-10 01:11:53');
(28, 'Sudarsono Sianipar', 'sudaraja', 'sudar@gmail.com', '$2y$10$pT.It3G0VrMqlYG5X4C6o.U/34qBTo8KTV3WwMB/IRxlByxGwwR7i', 'anonymous1.jpg', 'Customer', 'kcPKR12eEIdplt22WulDkMGKjY8zcUwtKckbUBSGKfxJUOtNPtcefk81HnQw', '2017-06-10 00:04:53', '2017-06-12 17:27:58'),
(30, 'Dion Marpaung', 'dionmarpa', 'dion@gmail.com', '$2y$10$sZxys5lQucdsSd3ahMbi7esS8qDhBdt3AF4.QRnWXm0Ho.qrtCRr.', 'gravatar.png', 'Owner', 'cg5ojdq1PzeKCockL5mj0IOCv8jkRx9DMUGUHz8bilhPNCAhSEg4egDrPAJe', '2017-06-12 06:34:07', '2017-06-12 10:52:15'),
(31, 'Seminar', 'seminar', 'seminar@gmail.com', '$2y$10$0jFZ1.0ekCPFaLP62jEd.eFjZiZ98p8X.M4mDMpscd0r3YRv.P4Me', 'gravatar.png', 'Customer', '4ACwY8WORSOJiAImZhHCFVV1B6yY4oLIYpS8ekB9Q5uQ55lXPjbB2LMPIFHz', '2017-06-12 18:11:39', '2017-06-12 18:17:52');
--
-- Indexes for dumped tables
......@@ -522,7 +530,7 @@ ALTER TABLE `users`
-- AUTO_INCREMENT for table `daftar_book`
--
ALTER TABLE `daftar_book`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16;
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=27;
--
-- AUTO_INCREMENT for table `dinaspariwisata`
--
......@@ -537,12 +545,12 @@ ALTER TABLE `feedback`
-- AUTO_INCREMENT for table `homestay`
--
ALTER TABLE `homestay`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14;
--
-- AUTO_INCREMENT for table `kamar`
--
ALTER TABLE `kamar`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=22;
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=26;
--
-- AUTO_INCREMENT for table `kategorifasilitas`
--
......@@ -557,32 +565,32 @@ ALTER TABLE `migrations`
-- AUTO_INCREMENT for table `pelanggan`
--
ALTER TABLE `pelanggan`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
--
-- AUTO_INCREMENT for table `pemilikhomestay`
--
ALTER TABLE `pemilikhomestay`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=18;
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=19;
--
-- AUTO_INCREMENT for table `pengajuan_homestay`
--
ALTER TABLE `pengajuan_homestay`
MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
--
-- AUTO_INCREMENT for table `requestfasilitas`
--
ALTER TABLE `requestfasilitas`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15;
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17;
--
-- AUTO_INCREMENT for table `transaksi`
--
ALTER TABLE `transaksi`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14;
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=26;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=30;
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=32;
--
-- Ketidakleluasaan untuk tabel pelimpahan (Dumped Tables)
--
......
......@@ -10,12 +10,6 @@
print_r(getdate());
?>/h1>
<table class="table table-user-information">
<tr>
<th>Nama </th>
<td>: </td>
<td>{{$data->nama}}</td>
</tr>
</table>
test pesanan searc
</body>
</html>
......@@ -5,7 +5,7 @@
@endsection
@section('main-content')
<div class="box box-warning">
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title"> DAFTAR PEMILIK HOMESTAY </h3>
@if (count($errors) > 0)
......
......@@ -21,21 +21,30 @@
</div>
<div class="box-body">
@foreach($data as $a)
<div class="col-sm-12">
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title">{{$a->nama}}</h3>
</div><!-- /.box-header -->
<div class="box-body">
<p>{{$a->feedback}}</p>
</div><!-- /.box-body -->
</div><!-- /.box -->
</div>
<ul class="timeline">
@foreach($data as $a)
<li>
<i class="fa fa-comment bg-aqua"></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 class="timeline-footer">
<a class="btn btn-primary btn-xs">Read more</a>
<a class="btn btn-danger btn-xs">Delete</a>
</div> -->
</div>
</li>
@endforeach
{!! $data->render() !!}
</ul>
{!! $data->render() !!}
</div>
</div>
......
......@@ -9,71 +9,91 @@
<!-- Small boxes (Stat box) -->
<div class="row">
<a href="/listowner" class="small-box-footer">
<div class="col-lg-3 col-xs-6">
<div class="small-box bg-aqua">
<div class="inner">
<h3>{{$count}}</h3><br><br>
<p>Data Pemilik Homestay</p>
<p>Data Pemilik Homestay <i class="fa fa-arrow-circle-right"></i></p>
</div>
<div class="icon">
<i class="fa fa-users"></i>
</div>
<a href="/listowner" class="small-box-footer">Lihat <i class="fa fa-arrow-circle-right"></i></a>
</div>
</div>
</a>
<a href="/listhomestay" class="small-box-footer">
<div class="col-lg-3 col-xs-6">
<!-- small box -->
<div class="small-box bg-green">
<div class="inner">
<h3>{{$countH}}</h3><br><br>
<p>Data Homestay</p>
<p>Data Homestay <i class="fa fa-arrow-circle-right"></i></p>
</div>
<div class="icon">
<i class="fa fa-home"></i>
</div>
<a href="/listhomestay" class="small-box-footer">Lihat <i class="fa fa-arrow-circle-right"></i></a>
</div>
</div>
</a>
<a href="/requestFasilitas" class="small-box-footer">
<div class="col-lg-3 col-xs-6">
<div class="small-box bg-yellow">
<div class="inner">
<h3>{{$countF}}</h3><br><br>
<p>Permintaan Fasilitas</p>
<p>Permintaan Fasilitas <i class="fa fa-arrow-circle-right"></i></p>
</div>
<div class="icon">
<i class="fa fa-cubes"></i>
</div>
<a href="/requestFasilitas" class="small-box-footer">Lihat <i class="fa fa-arrow-circle-right"></i></a>
</div>
</div>
</a>
<a href="/requestHomestay" class="small-box-footer">
<div class="col-lg-3 col-xs-6">
<div class="small-box bg-green">
<div class="inner">
<h3>{{$countP}}</h3><br><br>
<p>Pengajuan Homestay </p>
<p>Pengajuan Homestay <i class="fa fa-arrow-circle-right"></i></p>
</div>
<div class="icon">
<i class="fa fa-list"></i>
</div>
<a href="/requestHomestay" class="small-box-footer">Lihat <i class="fa fa-arrow-circle-right"></i></a>
</div>
</div>
</a>
<a href="/listPemesanan" class="small-box-footer">
<div class="col-lg-3 col-xs-6">
<div class="small-box bg-red">
<div class="inner">
<h3>{{$countPesan}}</h3><br><br>
<p>Data Pemesanan </p>
<p>Data Pemesanan <i class="fa fa-arrow-circle-right"></i></p>
</div>
<div class="icon">
<i class="fa fa-mail-reply"></i>
</div>
<a href="/listPemesanan" class="small-box-footer">Lihat <i class="fa fa-arrow-circle-right"></i></a>
</div>
</div>
</a>
<a href="/Allfeedback" class="small-box-footer">
<div class="col-lg-3 col-xs-6">
<div class="small-box bg-blue">
<div class="inner">
<h3>{{$countPesan}}</h3><br><br>
<p>Feedback Pengunjung <i class="fa fa-arrow-circle-right"></i></p>
</div>
<div class="icon">
<i class="fa fa-comment"></i>
</div>
<!-- <a href="/Allfeedback" class="small-box-footer">Lihat <i class="fa fa-arrow-circle-right"></i></a> -->
</div>
</div>
</a>
</div>
......
@extends('adminlte::layouts.app')
@section('htmlheader_title')
{{ trans('adminlte_lang::message.home') }}
@endsection
@section('main-content')
<div class="box box-warning">
<div class="box-header with-border">
<h3 class="box-title"> DATA PEMESANAN </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>
@endif
</div>
<div class="box-body">
<!-- <form action="{{url('caripesanan')}}">
<div class="form-group" align="right">
<input type="submit" class="btn btn-warning" value="Print">
</div>
</form> -->
<table class="table table-striped">
<tr>
<th>Nama Homestay</th>
<th>Nama Pemilik Homestay</th>
<th>Nama Pemesan</th>
<th>Tanggal Mulai</th>
<th>Tanggal Berakhir</th>
<th>Jumlah Kamar yang dipesan</th>
</tr>
@foreach($data as $a)
<tr>
<td>{{$a->nama_homestay}}</td>
<td>{{$a->owner}}</td>
<td>{{$a->nama_pemesan}}</td>
<td>{{$a->tanggal_mulai}}</td>
<td>{{$a->tanggal_berakhir}}</td>
<td>{{$a->jumlah_kamar}}</td>
</tr>
@endforeach
</table>
</div>
</div>
@endsection
......@@ -45,7 +45,7 @@
<div class="input-group-addon">
<i class="fa fa-bookmark"></i>
</div>
<input type="text" class="form-control" placeholder="username" name="username" value="{{$dataUS->username}}">
<input type="text" class="form-control" placeholder="username" name="username" value="{{$data->username}}">
</div>
</div>
......
......@@ -134,5 +134,5 @@ Route::group(['middleware' => 'dinaspariwisata'], function () {
Route::get('home','AdminController@Home');
Route::get('detailreqFasilitas/{id}','AdminController@detailreqFasilitas');
Route::get('listhomestay','AdminController@listhomestay');
Route::get('resultlistpesanan','AdminController@listhomestay');
});
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