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
d2dc83c4
Commit
d2dc83c4
authored
Jun 10, 2017
by
Juliper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perbaikan lagi
parent
0a508c47
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
22 additions
and
11 deletions
+22
-11
AdminController.php
app/Http/Controllers/AdminController.php
+13
-1
CustomerController.php
app/Http/Controllers/CustomerController.php
+2
-1
OwnerController.php
app/Http/Controllers/OwnerController.php
+5
-2
listPengajuan.blade.php
...ews/vendor/adminlte/layouts/admin/listPengajuan.blade.php
+1
-1
listPesanan.blade.php
...views/vendor/adminlte/layouts/owner/listPesanan.blade.php
+0
-6
web.php
routes/web.php
+1
-0
No files found.
app/Http/Controllers/AdminController.php
View file @
d2dc83c4
...
...
@@ -107,13 +107,13 @@ class AdminController extends Controller
return
redirect
(
url
(
'admin/create'
))
->
with
(
'info'
,
'User berhasil ditambah '
);
}
//Menampilkan Daftar RequestHomestay
public
function
RequestHomestay
(){
$data
=
DB
::
table
(
'pemilikhomestay'
)
->
join
(
'pengajuan_homestay'
,
'pemilikhomestay.id'
,
'='
,
'pengajuan_homestay.id_pemilik_homestay'
)
->
select
(
'pemilikhomestay.nama'
,
'pengajuan_homestay.*'
)
->
orderBy
(
'pengajuan_homestay.id'
,
'desc'
)
->
get
();
$count
=
$data
->
count
();
...
...
@@ -148,6 +148,7 @@ class AdminController extends Controller
$data
=
DB
::
table
(
'pemilikhomestay'
)
->
join
(
'requestfasilitas'
,
'pemilikhomestay.id'
,
'='
,
'requestfasilitas.id_pemilik_homestay'
)
->
select
(
'pemilikhomestay.nama'
,
'requestfasilitas.*'
)
->
orderBy
(
'requestfasilitas.id'
,
'desc'
)
->
get
();
$count
=
$data
->
count
();
...
...
@@ -155,6 +156,17 @@ class AdminController extends Controller
return
view
(
'adminlte::layouts.admin.listRequestFasilitas'
)
->
with
(
'data'
,
$data
)
->
with
(
'count'
,
$count
);
}
//Menolak pengajuan homestay
public
function
RejectPengajuanHomestay
(
$id
){
//dd($id,"masuk agan");
$RH
=
RequestHomestay
::
find
(
$id
);
$RH
->
status
=
2
;
$RH
->
update
();
return
redirect
(
'requestHomestay'
);
}
//Penyetujuan Pengajuan Homestay
public
function
AccPengajuanHomestay
(
$id
){
$RH
=
RequestHomestay
::
find
(
$id
);
...
...
app/Http/Controllers/CustomerController.php
View file @
d2dc83c4
...
...
@@ -63,7 +63,7 @@ class CustomerController extends Controller
->
get
();
$feed
=
new
Feedback
();
$feed
->
id_pemilik_homestay
=
$dataPemilik
[
0
]
->
id
P
emilik
;
$feed
->
id_pemilik_homestay
=
$dataPemilik
[
0
]
->
id
_p
emilik
;
$feed
->
id_pelanggan
=
$dataPelanggan
[
0
]
->
id
;
$feed
->
feedback
=
$request
[
'feedback'
];
...
...
@@ -110,6 +110,7 @@ class CustomerController extends Controller
->
join
(
'pemilikhomestay'
,
'homestay.id_pemilik'
,
'='
,
'pemilikhomestay.id'
)
->
select
(
'transaksi.*'
,
'pemilikhomestay.nama'
,
'pemilikhomestay.no_rekening'
)
->
where
(
'transaksi.id_pelanggan'
,
'='
,
$data
[
0
]
->
id
)
->
orderBy
(
'transaksi.id'
,
'desc'
)
->
get
();
return
view
(
'adminlte::layouts.customers.History'
)
->
with
(
'data'
,
$dataTrans
);
...
...
app/Http/Controllers/OwnerController.php
View file @
d2dc83c4
...
...
@@ -250,9 +250,9 @@ class OwnerController extends Controller
->
get
();
$dataHomestay
=
DB
::
table
(
'homestay'
)
->
join
(
'pemilikhomestay'
,
'homestay.id
P
emilik'
,
'pemilikhomestay.id'
)
->
join
(
'pemilikhomestay'
,
'homestay.id
_p
emilik'
,
'pemilikhomestay.id'
)
->
select
(
'homestay.id'
)
->
where
(
'homestay.id
P
emilik'
,
'='
,
$dataPemilik
[
0
]
->
id
)
->
where
(
'homestay.id
_p
emilik'
,
'='
,
$dataPemilik
[
0
]
->
id
)
->
get
();
$lb
->
homestay
=
$dataHomestay
[
0
]
->
id
;
...
...
@@ -337,6 +337,7 @@ class OwnerController extends Controller
->
join
(
'pelanggan'
,
'transaksi.id_pelanggan'
,
'='
,
'pelanggan.id'
)
->
select
(
'transaksi.*'
,
'pelanggan.nama'
,
'pelanggan.alamat'
,
'pelanggan.no_telepon'
)
->
where
(
'homestay.id_pemilik'
,
'='
,
$dataPel
[
0
]
->
id
)
->
orderBy
(
'transaksi.id'
,
'desc'
)
->
get
();
return
view
(
'adminlte::layouts.owner.listPesanan'
)
->
with
(
'data'
,
$data
)
->
with
(
'count'
,
$data
->
count
());
...
...
@@ -444,6 +445,7 @@ class OwnerController extends Controller
->
join
(
'pemilikhomestay'
,
'pengajuan_homestay.id_pemilik_homestay'
,
'='
,
'pemilikhomestay.id'
)
->
select
(
'pemilikhomestay.nama'
,
'pengajuan_homestay.*'
)
->
where
(
'pengajuan_homestay.id_pemilik_homestay'
,
'='
,
$idPemilik
[
0
]
->
id
)
->
orderBy
(
'pengajuan_homestay.id'
,
'desc'
)
->
get
();
//dd('masuk');
$count
=
$data
->
count
();
...
...
@@ -464,6 +466,7 @@ class OwnerController extends Controller
->
join
(
'pemilikhomestay'
,
'requestfasilitas.id_pemilik_homestay'
,
'='
,
'pemilikhomestay.id'
)
->
select
(
'pemilikhomestay.nama'
,
'requestfasilitas.*'
)
->
where
(
'requestfasilitas.id_pemilik_homestay'
,
'='
,
$idPemilik
[
0
]
->
id
)
->
orderBy
(
'requestfasilitas.id'
,
'desc'
)
->
get
();
$count
=
$data
->
count
();
...
...
resources/views/vendor/adminlte/layouts/admin/listPengajuan.blade.php
View file @
d2dc83c4
...
...
@@ -45,7 +45,7 @@
<button type="
submit
" class="
btn
btn
-
info
"><i class="
glyphicon
glyphicon
-
apple
"> Terima</i></button>
</form>
<td>
<form action="
{{
url
(
'listPengajuanH
omesta
y/'
.
$a
->
id
)}}
" method="
post
">
<form action="
{{
url
(
'listPengajuanH
mst
y/'
.
$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>
...
...
resources/views/vendor/adminlte/layouts/owner/listPesanan.blade.php
View file @
d2dc83c4
...
...
@@ -54,12 +54,6 @@
<td>
<img src="
/
img
/
{{
$a
->
bukti_pembayaran
}}
" style="
width
:
100
px
" alt="
User
Image
" onclick="
document
.
getElementById
(
'modal'
)
.
style
.
display
=
'block'
"/>
<div id ="
modal
" class="
w3
-
modal
" onclick="
this
.
style
.
display
=
'none'
">
<span class="
w3
-
closebtn
w3
-
hover
-
red
w3
-
container
w3
-
padding
-
hor
-
16
w3
-
display
-
topright
">×</span>
<div class="
w3
-
modal
-
content
w3
-
animate
-
zoom
">
<img src="
/
img
/
{{
$a
->
bukti_pembayaran
}}
" style="
width
:
100
%
">
</div>
</div>
</td>
<td>
@if(
$a->status
==0)
...
...
routes/web.php
View file @
d2dc83c4
...
...
@@ -106,6 +106,7 @@ Route::group(['middleware' => 'dinaspariwisata'], function () {
Route
::
put
(
'requestFasilitas/{id}'
,
'AdminController@UpdateRequestFasilitas'
);
Route
::
put
(
'requestFasilitass/{id}'
,
'AdminController@UpdateRequestFasilitass'
);
Route
::
put
(
'listPengajuanHomestay/{id}'
,
'AdminController@AccPengajuanHomestay'
);
Route
::
put
(
'listPengajuanHmsty/{id}'
,
'AdminController@RejectPengajuanHomestay'
);
});
...
...
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