Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pa2d4ti06
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Juliper
pa2d4ti06
Commits
78444b0d
Commit
78444b0d
authored
Jun 14, 2017
by
Palti Sinaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qweqwe
parent
e98ea325
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
126 additions
and
133 deletions
+126
-133
AdminController.php
app/Http/Controllers/AdminController.php
+14
-4
PDFController.php
app/Http/Controllers/PDFController.php
+14
-0
p2d4ti06_test.sql
p2d4ti06_test.sql
+15
-71
keramik_pecah.jpg
public/img/keramik_pecah.jpg
+0
-0
adminfasilitas.blade.php
resources/views/pdf/adminfasilitas.blade.php
+50
-0
detailreqFasilitas.blade.php
...endor/adminlte/layouts/admin/detailreqFasilitas.blade.php
+20
-30
listRequestFasilitas.blade.php
...dor/adminlte/layouts/admin/listRequestFasilitas.blade.php
+8
-25
ListPengajuanFasilitas.blade.php
...r/adminlte/layouts/owner/ListPengajuanFasilitas.blade.php
+4
-3
web.php
routes/web.php
+1
-0
No files found.
app/Http/Controllers/AdminController.php
View file @
78444b0d
...
@@ -17,6 +17,7 @@ use App\Owner;
...
@@ -17,6 +17,7 @@ use App\Owner;
use
Illuminate\Support\Facades\DB
;
use
Illuminate\Support\Facades\DB
;
use
App\RequestFasilitas
;
use
App\RequestFasilitas
;
use
Illuminate\Support\Facades\Auth
;
use
Illuminate\Support\Facades\Auth
;
use
PDF
;
class
AdminController
extends
Controller
class
AdminController
extends
Controller
{
{
...
@@ -65,7 +66,7 @@ class AdminController extends Controller
...
@@ -65,7 +66,7 @@ class AdminController extends Controller
return
view
(
'adminlte::layouts.admin.listhomestay'
)
->
with
(
'data'
,
$data
);
return
view
(
'adminlte::layouts.admin.listhomestay'
)
->
with
(
'data'
,
$data
);
}
}
public
function
cariPesanan
(
Request
$request
){
public
function
cariPesanan
(
Request
$request
){
...
@@ -115,9 +116,6 @@ class AdminController extends Controller
...
@@ -115,9 +116,6 @@ class AdminController extends Controller
}
}
public
function
resultlistpesanan
(){
}
public
function
Allfeedback
(){
public
function
Allfeedback
(){
$data
=
DB
::
table
(
'homestay'
)
$data
=
DB
::
table
(
'homestay'
)
...
@@ -352,6 +350,18 @@ class AdminController extends Controller
...
@@ -352,6 +350,18 @@ class AdminController extends Controller
return
view
(
'adminlte::layouts.admin.detailreqFasilitas'
)
->
with
(
'data'
,
$data
[
0
])
->
with
(
'count'
,
$count
);
return
view
(
'adminlte::layouts.admin.detailreqFasilitas'
)
->
with
(
'data'
,
$data
[
0
])
->
with
(
'count'
,
$count
);
}
}
public
function
printFasilitas
(
$id
){
$data
=
DB
::
table
(
'pemilikhomestay'
)
->
join
(
'requestfasilitas'
,
'pemilikhomestay.id'
,
'='
,
'requestfasilitas.id_pemilik_homestay'
)
->
join
(
'homestay'
,
'pemilikhomestay.id'
,
'='
,
'homestay.id_pemilik'
)
->
select
(
'pemilikhomestay.nama'
,
'pemilikhomestay.no_telepon'
,
'requestfasilitas.*'
,
'homestay.*'
)
->
where
(
'requestfasilitas.id'
,
'='
,
$id
)
->
get
();
$pdf
=
PDF
::
loadView
(
'pdf.adminfasilitas'
,[
'data'
=>
$data
[
0
]]);
return
$pdf
->
stream
(
'adminfasilitas.pdf'
);
}
//Menolak pengajuan homestay
//Menolak pengajuan homestay
...
...
app/Http/Controllers/PDFController.php
View file @
78444b0d
...
@@ -25,4 +25,18 @@ class PDFController extends Controller
...
@@ -25,4 +25,18 @@ class PDFController extends Controller
return
$pdf
->
stream
(
'detailpesanan.pdf'
);
return
$pdf
->
stream
(
'detailpesanan.pdf'
);
//return $pdf->download('detailpesanan.pdf');
//return $pdf->download('detailpesanan.pdf');
}
}
public
function
printFasilitas
(
$id
){
$dataFasilitas
=
DB
::
table
(
'pemilikhomestay'
)
->
join
(
'requestfasilitas'
,
'pemilikhomestay.id'
,
'='
,
'requestfasilitas.id_pemilik_homestay'
)
->
join
(
'homestay'
,
'pemilikhomestay.id'
,
'='
,
'homestay.id_pemilik'
)
->
select
(
'pemilikhomestay.nama'
,
'pemilikhomestay.no_telepon'
,
'requestfasilitas.*'
,
'homestay.nama_homestay'
)
->
where
(
'requestfasilitas.id'
,
'='
,
$id
)
->
get
();
$pdf
=
PDF
::
loadView
(
'pdf.adminfasilitas'
,[
'data'
=>
$dataFasilitas
[
0
]]);
return
$pdf
->
stream
(
'adminfasilitas.pdf'
);
}
}
}
p2d4ti06_test.sql
View file @
78444b0d
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
-- http://www.phpmyadmin.net
-- http://www.phpmyadmin.net
--
--
-- Host: 127.0.0.1
-- Host: 127.0.0.1
-- Generation Time: 14 Jun 2017 pada
04.5
7
-- Generation Time: 14 Jun 2017 pada
12.3
7
-- Versi Server: 10.1.16-MariaDB
-- Versi Server: 10.1.16-MariaDB
-- PHP Version: 7.0.9
-- PHP Version: 7.0.9
...
@@ -34,26 +34,13 @@ CREATE TABLE `daftar_book` (
...
@@ -34,26 +34,13 @@ CREATE TABLE `daftar_book` (
`jumlah_kamar`
int
(
255
)
DEFAULT
NULL
,
`jumlah_kamar`
int
(
255
)
DEFAULT
NULL
,
`tanggal_mulai`
date
DEFAULT
NULL
,
`tanggal_mulai`
date
DEFAULT
NULL
,
`tanggal_berakhir`
date
DEFAULT
NULL
,
`tanggal_berakhir`
date
DEFAULT
NULL
,
`permintaan_khusus`
text
,
`jumlah_tamu`
int
(
10
)
DEFAULT
NULL
,
`total_harga`
int
(
10
)
DEFAULT
NULL
,
`lama_menginap`
int
(
10
)
DEFAULT
NULL
,
`lama_menginap`
int
(
10
)
DEFAULT
NULL
,
`status`
tinyint
(
1
)
DEFAULT
'1'
`status`
tinyint
(
1
)
DEFAULT
'1'
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
latin1
;
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
latin1
;
--
-- Dumping data untuk tabel `daftar_book`
--
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
);
-- --------------------------------------------------------
-- --------------------------------------------------------
--
--
...
@@ -95,9 +82,6 @@ CREATE TABLE `feedback` (
...
@@ -95,9 +82,6 @@ CREATE TABLE `feedback` (
--
--
INSERT
INTO
`feedback`
(
`id`
,
`id_pemilik_homestay`
,
`id_pelanggan`
,
`feedback`
,
`created_at`
,
`updated_at`
)
VALUES
INSERT
INTO
`feedback`
(
`id`
,
`id_pemilik_homestay`
,
`id_pelanggan`
,
`feedback`
,
`created_at`
,
`updated_at`
)
VALUES
(
1
,
6
,
2
,
'Sesuatu banget ya homestay nya suka deh....'
,
'2017-05-21 19:38:55'
,
'2017-05-21 19:38:55'
),
(
2
,
6
,
2
,
'Sesuatu banget ya homestay nya suka deh....'
,
'2017-05-21 19:39:11'
,
'2017-05-21 19:39:11'
),
(
3
,
6
,
2
,
'Sesuatu banget ya homestay nya suka deh....'
,
'2017-05-21 19:40:17'
,
'2017-05-21 19:40:17'
),
(
4
,
6
,
2
,
'Sesuatu banget ya homestay nya suka deh....'
,
'2017-05-21 19:41:41'
,
'2017-05-21 19:41:41'
),
(
4
,
6
,
2
,
'Sesuatu banget ya homestay nya suka deh....'
,
'2017-05-21 19:41:41'
,
'2017-05-21 19:41:41'
),
(
5
,
6
,
6
,
'dasdasdsajdhasdhashdasjkdhkashdkas'
,
'2017-06-10 00:38:07'
,
'2017-06-10 00:38:07'
);
(
5
,
6
,
6
,
'dasdasdsajdhasdhashdasjkdhkashdkas'
,
'2017-06-10 00:38:07'
,
'2017-06-10 00:38:07'
);
...
@@ -251,10 +235,7 @@ CREATE TABLE `pelanggan` (
...
@@ -251,10 +235,7 @@ CREATE TABLE `pelanggan` (
INSERT
INTO
`pelanggan`
(
`id`
,
`id_Akun`
,
`nama`
,
`alamat`
,
`no_telepon`
,
`pekerjaan`
,
`foto`
,
`created_at`
,
`updated_at`
)
VALUES
INSERT
INTO
`pelanggan`
(
`id`
,
`id_Akun`
,
`nama`
,
`alamat`
,
`no_telepon`
,
`pekerjaan`
,
`foto`
,
`created_at`
,
`updated_at`
)
VALUES
(
2
,
14
,
'Lesa Lesuu '
,
'Medan Bung'
,
'082134657865'
,
'Panortor Profesional'
,
NULL
,
'2017-05-09 02:32:54'
,
'2017-05-09 21:46:55'
),
(
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'
),
(
6
,
28
,
'Sudarsono Sianipar'
,
'Siborong borong'
,
'082272194654'
,
'Mahasiswa'
,
NULL
,
'2017-06-10 00:04:53'
,
'2017-06-10 00:20:12'
);
(
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'
),
(
7
,
31
,
'Seminar'
,
'Medan'
,
'082272194321'
,
'Guru'
,
NULL
,
'2017-06-12 18:11:39'
,
'2017-06-12 18:13:20'
);
-- --------------------------------------------------------
-- --------------------------------------------------------
...
@@ -281,7 +262,6 @@ CREATE TABLE `pemilikhomestay` (
...
@@ -281,7 +262,6 @@ CREATE TABLE `pemilikhomestay` (
INSERT
INTO
`pemilikhomestay`
(
`id`
,
`id_akun`
,
`nama`
,
`alamat`
,
`pekerjaan`
,
`no_telepon`
,
`no_rekening`
,
`foto`
,
`created_at`
,
`updated_at`
)
VALUES
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'
,
'bulbul-01_gdsl53-1.jpg'
,
'2017-04-29 08:07:38'
,
'2017-06-11 19:56:29'
),
(
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'
);
(
18
,
30
,
'Dion Marpaung'
,
'Lumban Bulbul'
,
'Wiraswasta'
,
''
,
'3123412431'
,
'gravatar.png'
,
'2017-06-12 06:34:07'
,
'2017-06-12 10:52:09'
);
-- --------------------------------------------------------
-- --------------------------------------------------------
...
@@ -299,17 +279,6 @@ CREATE TABLE `pengajuan_homestay` (
...
@@ -299,17 +279,6 @@ CREATE TABLE `pengajuan_homestay` (
`status`
int
(
1
)
DEFAULT
NULL
`status`
int
(
1
)
DEFAULT
NULL
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
latin1
;
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
latin1
;
--
-- Dumping data untuk tabel `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
),
(
7
,
6
,
NULL
,
'Test'
,
3
,
2
),
(
8
,
18
,
NULL
,
'Dion Homestay'
,
4
,
1
),
(
9
,
6
,
NULL
,
'Hanssen Homestay'
,
200
,
0
);
-- --------------------------------------------------------
-- --------------------------------------------------------
--
--
...
@@ -327,18 +296,6 @@ CREATE TABLE `requestfasilitas` (
...
@@ -327,18 +296,6 @@ CREATE TABLE `requestfasilitas` (
`status`
int
(
1
)
DEFAULT
NULL
`status`
int
(
1
)
DEFAULT
NULL
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
latin1
;
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
latin1
;
--
-- Dumping data untuk tabel `requestfasilitas`
--
INSERT
INTO
`requestfasilitas`
(
`id`
,
`id_pemilik_homestay`
,
`id_kategori_fasiltas`
,
`nama_request_fasilitas`
,
`deskripsi`
,
`jumlah`
,
`gambar`
,
`status`
)
VALUES
(
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
),
(
15
,
18
,
2
,
'asdas'
,
' adsdassa'
,
1
,
NULL
,
2
),
(
16
,
6
,
1
,
'Permintaan penambaan Bunkbed'
,
' Kerusakn Bunkbed yang di gunakan pelanggan'
,
2
,
'bougenville4.JPG'
,
NULL
);
-- --------------------------------------------------------
-- --------------------------------------------------------
--
--
...
@@ -355,6 +312,8 @@ CREATE TABLE `transaksi` (
...
@@ -355,6 +312,8 @@ CREATE TABLE `transaksi` (
`lama_menginap`
int
(
10
)
NOT
NULL
,
`lama_menginap`
int
(
10
)
NOT
NULL
,
`bukti_pembayaran`
varchar
(
255
)
DEFAULT
NULL
,
`bukti_pembayaran`
varchar
(
255
)
DEFAULT
NULL
,
`total_pembayaran`
int
(
10
)
DEFAULT
NULL
,
`total_pembayaran`
int
(
10
)
DEFAULT
NULL
,
`jumlah_tamu`
int
(
5
)
DEFAULT
NULL
,
`permintaan_khusus`
text
,
`tanggal_konfirmasi`
date
DEFAULT
NULL
,
`tanggal_konfirmasi`
date
DEFAULT
NULL
,
`status`
int
(
1
)
UNSIGNED
ZEROFILL
DEFAULT
NULL
`status`
int
(
1
)
UNSIGNED
ZEROFILL
DEFAULT
NULL
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
latin1
;
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
latin1
;
...
@@ -363,20 +322,8 @@ CREATE TABLE `transaksi` (
...
@@ -363,20 +322,8 @@ CREATE TABLE `transaksi` (
-- Dumping data untuk tabel `transaksi`
-- 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
INSERT
INTO
`transaksi`
(
`id`
,
`id_pelanggan`
,
`id_homestay`
,
`tanggal_mulai`
,
`tanggal_berakhir`
,
`jumlah_kamar`
,
`lama_menginap`
,
`bukti_pembayaran`
,
`total_pembayaran`
,
`jumlah_tamu`
,
`permintaan_khusus`
,
`tanggal_konfirmasi`
,
`status`
)
VALUES
(
2
,
5
,
9
,
'2017-05-30'
,
'2017-05-30'
,
3
,
1
,
NULL
,
450000
,
NULL
,
2
),
(
30
,
6
,
9
,
'2017-06-16'
,
'2017-06-19'
,
1
,
3
,
NULL
,
450000
,
1
,
'Penyediaan Kopi di waktu kedatangan kami'
,
NULL
,
0
);
(
9
,
2
,
9
,
'2017-06-16'
,
'2017-06-18'
,
1
,
3
,
NULL
,
150000
,
NULL
,
1
),
(
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
,
'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
);
-- --------------------------------------------------------
-- --------------------------------------------------------
...
@@ -402,15 +349,12 @@ CREATE TABLE `users` (
...
@@ -402,15 +349,12 @@ CREATE TABLE `users` (
--
--
INSERT
INTO
`users`
(
`id`
,
`name`
,
`username`
,
`email`
,
`password`
,
`foto`
,
`role`
,
`remember_token`
,
`created_at`
,
`updated_at`
)
VALUES
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'
,
'nhrmHnWWnswCZjcPgraCenHVqR06YWibHHlzC1OkM2O4mc8ZPTeG1EuFaxVH'
,
'2017-04-22 02:30:14'
,
'2017-06-13 19:00:23'
),
(
2
,
'Juliper'
,
'admin'
,
'admin@del.ac.id'
,
'$2y$10$nnnUgQAnb9FnDb3DNTlwaehkE5GiJ6piv8Yg/LXyXypdgaxigpHVe'
,
'gravatar.png'
,
'DinasPariwisata'
,
'ww1bVGIoCXSJFWYSdeVVF5wLxvbJxCF9p6qWRzhMfHpHBfBg24j0entbsRdj'
,
'2017-04-22 02:30:14'
,
'2017-06-14 00:26:38'
),
(
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'
),
(
5
,
'Palti Sinaga'
,
'palti'
,
'palti1@gmail.com'
,
'$2y$10$YZNp2gw4amlEQWi4hvDA9OfGixdYx1AIsl0.El8TzQoo9IPed8E..'
,
'bulbul-01_gdsl53-1.jpg'
,
'Owner'
,
'hlWmlBMs0XUFfdmLT1b49CvO4JbNv6LPTNuBYyDjf62Cb801gn0GPxqSnbYP'
,
'2017-04-29 08:07:38'
,
'2017-06-14 00:24:08'
),
(
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'
),
(
14
,
'Lesa Lesuu '
,
'lesa'
,
'lesa@gmail.com'
,
'$2y$10$zudTTxc6.lENGpFKwp093u9SuvEjidfYExLHk3vsOvZISDma1HChW'
,
'anonymous1.jpg'
,
'Customer'
,
'91pjAdMmJtvpgnOc4lyi56WLPh6n8eMq2JbmWvC5ssRtBsPAHNkeiEPK4j1N'
,
'2017-05-09 02:41:21'
,
'2017-06-14 00:16:53'
),
(
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'
,
'opbalata'
,
'balata@gmail.com'
,
'$2y$10$HuXdLU2i0RdiweXKE07seugcrYbDrAWiZx3o3ExrR1pYKjFuEthvi'
,
'gravatar.png'
,
'Owner'
,
'ChwqElcpjW1D2bNnx4CmCareT3ICTWO9H7wudCT451qm0z1OMo5T4kHSCB8E'
,
'2017-05-25 21:10:39'
,
'2017-06-12 10:57:38'
),
(
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'
),
(
28
,
'Sudarsono Sianipar'
,
'sudaraja'
,
'sudar@gmail.com'
,
'$2y$10$pT.It3G0VrMqlYG5X4C6o.U/34qBTo8KTV3WwMB/IRxlByxGwwR7i'
,
'anonymous1.jpg'
,
'Customer'
,
'Nzzce9MfsIJWwY99MVKHFHs6gRxxK2MEKSKJKgIgsS9cZq24iIELm1x2c1z6'
,
'2017-06-10 00:04:53'
,
'2017-06-14 00:04:51'
),
(
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'
);
(
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
-- Indexes for dumped tables
...
@@ -585,7 +529,7 @@ ALTER TABLE `requestfasilitas`
...
@@ -585,7 +529,7 @@ ALTER TABLE `requestfasilitas`
-- AUTO_INCREMENT for table `transaksi`
-- AUTO_INCREMENT for table `transaksi`
--
--
ALTER
TABLE
`transaksi`
ALTER
TABLE
`transaksi`
MODIFY
`id`
int
(
10
)
UNSIGNED
NOT
NULL
AUTO_INCREMENT
,
AUTO_INCREMENT
=
26
;
MODIFY
`id`
int
(
10
)
UNSIGNED
NOT
NULL
AUTO_INCREMENT
,
AUTO_INCREMENT
=
31
;
--
--
-- AUTO_INCREMENT for table `users`
-- AUTO_INCREMENT for table `users`
--
--
...
...
public/img/keramik_pecah.jpg
0 → 100644
View file @
78444b0d
735 KB
resources/views/pdf/adminfasilitas.blade.php
0 → 100644
View file @
78444b0d
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
>
<title></title>
</head>
<body>
<p
style=
"float:right;"
><b>
Tanggal :
</b>
<?php
echo
date
(
"Y/m/d"
)
;
?>
</p>
<br>
<br>
<br>
<center><h1>
Permintan Fasilitas
</h1></center>
<table
class=
"table table-user-information"
>
<tr>
<th>
Judul Pengajuan
</th>
<td>
:
</td>
<td>
{{$data->nama_request_fasilitas}}
</td>
</tr>
<tr>
<th>
Nama Pengaju
</th>
<td>
:
</td>
<td>
{{$data->nama}}
</td>
</tr>
<tr>
<th>
Nama Homestay
</th>
<td>
:
</td>
<td>
{{$data->nama_homestay}}
</td>
</tr>
<tr>
<th>
Alamat
</th>
<td>
:
</td>
<td>
{{$data->alamat}}
</td>
</tr>
<tr>
<th>
No Telepon
</th>
<td>
:
</td>
<td>
{{$data->no_telepon}}
</td>
</tr>
<tr>
<th>
Keterangan
</th>
<td>
:
</td>
<td>
{{$data->deskripsi}}
</td>
</tr>
</table>
</body>
</html>
resources/views/vendor/adminlte/layouts/admin/detailreqFasilitas.blade.php
View file @
78444b0d
...
@@ -57,54 +57,44 @@
...
@@ -57,54 +57,44 @@
<td>: </td>
<td>: </td>
<td> <a href="
/
img
/
{{
$data
->
gambar
}}
" alt="
Bukti
Pembayaran
" data-lightbox="
roadtrip
"><img src="
/
img
/
{{
$data
->
gambar
}}
" style="
max
-
height
:
200
px
;
"></a></td>
<td> <a href="
/
img
/
{{
$data
->
gambar
}}
" alt="
Bukti
Pembayaran
" data-lightbox="
roadtrip
"><img src="
/
img
/
{{
$data
->
gambar
}}
" style="
max
-
height
:
200
px
;
"></a></td>
</tr>
</tr>
<tr>
<tr>
<th>
Aksi
</th>
<th>
Kirim Pesan
</th>
<td>: </td>
<td>: </td>
<td>
<td> <form class="" action="
index
.
html
" method="
post
">
@if(
$data->status
==1)
<div class="
form
-
group
">
<div class="
input
-
group
">
<div class="
input
-
group
-
addon
">
<i class="
fa
fa
-
newspaper
-
o
"></i>
</div>
<textarea class="
form
-
control
" placeholder="
Deskripsi
" style="
height
:
200
px
;
" name="
deskripsi
"> </textarea>
</div>
<span id="
errfn2
" style="
color
:
red
"></span>
</div>
</form>
</tr>
<tr>
<th>Aksi</th>
<td> </td>
@if(
$data->status
==1)
@elseif(
$data->status
==2)
@elseif(
$data->status
==2)
@elseif(
$data->status
==0)
@elseif(
$data->status
==0)
<td>
<td>
<form action="
{{
url
(
'requestFasilitas/'
.
$data
->
id
)}}
" method="
post
">
<form action="
{{
url
(
'requestFasilitas/'
.
$data
->
id
)}}
" method="
post
">
{
{csrf_field()}
}
{
{csrf_field()}
}
<input type="
hidden
" name="
_method
" value="
PUT
">
<input type="
hidden
" name="
_method
" value="
PUT
">
<button type="
submit
" class="
btn
btn
-
info
"><i class="
fa
fa
-
check
"> Terima</i></button>
<button type="
submit
" class="
btn
btn
-
info
"><i class="
fa
fa
-
check
"> Terima</i></button>
<button type="
submit
" class="
btn
btn
-
danger
"><i class="
fa
fa
-
close
"> Tolak</i></button>
</form>
</form>
</td>
</td>
<td>
<form action="
{{
url
(
'requestFasilitass/'
.
$data
->
id
)}}
" method="
post
">
{
{csrf_field()}
}
<input type="
hidden
" name="
_method
" value="
PUT
">
<button type="
submit
" class="
btn
btn
-
danger
"><i class="
fa
fa
-
close
"> Tolak</i></button>
</form>
</td>
@endif
@endif
</td>
</tr>
</tr>
</table><br>
</table><br>
<form class="" action="
index
.
html
" method="
post
">
<div class="
form
-
group
">
<label> <b>Kirim Pesan : </b> </label>
<div class="
input
-
group
">
<div class="
input
-
group
-
addon
">
<i class="
fa
fa
-
newspaper
-
o
"></i>
</div>
<textarea class="
form
-
control
" placeholder="
Deskripsi
" style="
height
:
200
px
;
" name="
deskripsi
"> </textarea>
</div>
<span id="
errfn2
" style="
color
:
red
"></span>
</div>
</form>
</div>
</div>
<div class="
box
-
footer
">
<div class="
box
-
footer
">
<form action="
{{
url
(
'p
esanan
/'
.
$data
->
id
)}}
" enctype="
multipart
/
form
-
data
">
<form action="
{{
url
(
'p
rintFasilitas
/'
.
$data
->
id
)}}
" enctype="
multipart
/
form
-
data
">
<div class="
form
-
group
" align="
right
">
<div class="
form
-
group
" align="
right
">
<input type="
submit
" class="
btn
btn
-
warning
" value="
Print
">
<input type="
submit
" class="
btn
btn
-
warning
" value="
Print
">
</div>
</div>
...
...
resources/views/vendor/adminlte/layouts/admin/listRequestFasilitas.blade.php
View file @
78444b0d
...
@@ -25,45 +25,28 @@
...
@@ -25,45 +25,28 @@
<tr>
<tr>
<th>Pengaju</th>
<th>Pengaju</th>
<th>Nama Request Fasilitas</th>
<th>Nama Request Fasilitas</th>
<th>Lihat</th>
<th>Gambar</th>
<th>Gambar</th>
<th
colspan="
2
">Action
</th>
<th
>Lihat
</th>
</tr>
</tr>
@foreach(
$data
as
$a
)
@foreach(
$data
as
$a
)
<tr>
<tr>
<td>
{
{$a->nama}
}
</td>
<td>
{
{$a->nama}
}
</td>
<td>
{
{$a->nama_request_fasilitas}
}
</td>
<td>
{
{$a->nama_request_fasilitas}
}
</td>
<td><a href="
{{
url
(
'detailreqFasilitas/'
.
$a
->
id
)}}
" class="
btn
btn
-
primary
"><i class="
fa
fa
-
eye
"></i> </a></td>
<td>@if(
$a->gambar
==null)
<td>@if(
$a->gambar
==null)
Tidak ada gambar
Tidak ada gambar
@else
@else
<a href="
img
/
{{
$a
->
gambar
}}
" alt="
Bukti
Pembayaran
" data-lightbox="
roadtrip
"><img src="
img
/
{{
$a
->
gambar
}}
" style="
width
:
250
px
;
height
:
120
px
"></a>
<a href="
img
/
{{
$a
->
gambar
}}
" alt="
Bukti
Pembayaran
" data-lightbox="
roadtrip
"><img src="
img
/
{{
$a
->
gambar
}}
" style="
width
:
250
px
;
height
:
120
px
"></a>
@endif
@endif
</td>
</td>
@if(
$a->status
==1)
<td>Di Terima</td>
@elseif(
$a->status
==2)
<td>Ditolak</td>
@elseif(
$a->status
==0)
<td>
<td>
<form action="
{{
url
(
'requestFasilitas/'
.
$a
->
id
)}}
" method="
post
">
<a href="
{{
url
(
'detailreqFasilitas/'
.
$a
->
id
)}}
" class="
btn
btn
-
primary
"><i class="
fa
fa
-
eye
"></i> </a></td>
{
{csrf_field()}
}
</td>
<input type="
hidden
" name="
_method
" value="
PUT
">
<button type="
submit
" class="
btn
btn
-
info
"><i class="
glyphicon
glyphicon
-
apple
"> Terima</i></button>
</form>
<td>
<form action="
{{
url
(
'requestFasilitass/'
.
$a
->
id
)}}
" method="
post
">
{
{csrf_field()}
}
<input type="
hidden
" name="
_method
" value="
PUT
">
<button type="
submit
" class="
btn
btn
-
danger
"><i class="
glyphicon
glyphicon
-
trash
"> Tolak</i></button>
</form>
</td>
@endif
</tr>
</tr>
@endforeach
@endforeach
</table>
</table>
{!!
$data->render
() !!}
{!!
$data->render
() !!}
</div>
</div>
</div>
</div>
</div>
@endsection
@endsection
resources/views/vendor/adminlte/layouts/owner/ListPengajuanFasilitas.blade.php
View file @
78444b0d
...
@@ -26,19 +26,20 @@
...
@@ -26,19 +26,20 @@
<table class="
table
table
-
striped
">
<table class="
table
table
-
striped
">
<tr>
<tr>
<th>Judul</th>
<th>Judul</th>
<th>Keterangan</th>
<th
>Keterangan</th>
<th>Gambar</th>
<th>Gambar</th>
<th>Status</th>
<th>Status</th>
</tr>
</tr>
@foreach(
$data
as
$a
)
@foreach(
$data
as
$a
)
<tr>
<tr>
<td>
{
{$a->nama_request_fasilitas}
}
</td>
<td>
{
{$a->nama_request_fasilitas}
}
</td>
<td>
{
{$a->deskripsi}
}
</td>
<td
style="
max
-
width
:
200
px
;
"
>
{
{$a->deskripsi}
}
</td>
<td>
<td>
@if(
$a->gambar
==null)
@if(
$a->gambar
==null)
Tidak ada gambar
Tidak ada gambar
@else
@else
<img alt="
User
Pic
" src="
img
/
{{
$a
->
gambar
}}
" style="
width
:
250
px
;
height
:
120
px
" >
<a href="
img
/
{{
$a
->
gambar
}}
" alt="
Bukti
Pembayaran
" data-lightbox="
roadtrip
"><img src="
img
/
{{
$a
->
gambar
}}
" style="
width
:
250
px
;
height
:
120
px
"></a>
@endif
@endif
</td>
</td>
<td>@if(
$a->status
==0) Sedang Menunggu
<td>@if(
$a->status
==0) Sedang Menunggu
...
...
routes/web.php
View file @
78444b0d
...
@@ -140,4 +140,5 @@ Route::group(['middleware' => 'dinaspariwisata'], function () {
...
@@ -140,4 +140,5 @@ Route::group(['middleware' => 'dinaspariwisata'], function () {
Route
::
get
(
'detailreqFasilitas/{id}'
,
'AdminController@detailreqFasilitas'
);
Route
::
get
(
'detailreqFasilitas/{id}'
,
'AdminController@detailreqFasilitas'
);
Route
::
get
(
'listhomestay'
,
'AdminController@listhomestay'
);
Route
::
get
(
'listhomestay'
,
'AdminController@listhomestay'
);
Route
::
get
(
'resultlistpesanan'
,
'AdminController@listhomestay'
);
Route
::
get
(
'resultlistpesanan'
,
'AdminController@listhomestay'
);
Route
::
get
(
'printFasilitas/{id}'
,
'AdminController@printFasilitas'
);
});
});
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment