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
d7e0162a
Commit
d7e0162a
authored
Jun 15, 2017
by
Juliper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
fd8ebaf0
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
211 additions
and
28 deletions
+211
-28
AdminController.php
app/Http/Controllers/AdminController.php
+8
-0
GuestController.php
app/Http/Controllers/GuestController.php
+42
-1
style.css
public/css/style.css
+94
-0
detailreqFasilitas.blade.php
...endor/adminlte/layouts/admin/detailreqFasilitas.blade.php
+33
-22
ListPengajuanFasilitas.blade.php
...r/adminlte/layouts/owner/ListPengajuanFasilitas.blade.php
+1
-1
Homestay.blade.php
...es/views/vendor/adminlte/layouts/pages/Homestay.blade.php
+31
-3
web.php
routes/web.php
+2
-1
No files found.
app/Http/Controllers/AdminController.php
View file @
d7e0162a
...
...
@@ -430,4 +430,12 @@ class AdminController extends Controller
$data
=
Owner
::
find
(
$id
);
return
view
(
'adminlte::layouts.admin.ownerprofil'
)
->
with
(
'data'
,
$data
);
}
public
function
cancelRequest
(
Request
$request
){
$req
=
RequestFasilitas
::
find
(
$request
->
requestID
);
$req
->
status
=
2
;
$req
->
notif
=
1
;
$req
->
pesan
=
$request
->
pesan
;
$req
->
update
();
}
}
app/Http/Controllers/GuestController.php
View file @
d7e0162a
...
...
@@ -120,6 +120,31 @@ class GuestController extends Controller
return
view
(
'adminlte::layouts.customers.rincianpemesanan'
)
->
with
(
'data'
,
$data
[
0
])
->
with
(
'request'
,
$request
)
->
with
(
'totalHarga'
,
$TotalHarga
)
->
with
(
'dataUser'
,
$dataUser
[
0
])
->
with
(
'id'
,
$id
);
}
public
function
sendFeedback
(
Request
$request
,
$id
){
if
(
Auth
::
guest
()){
return
redirect
()
->
action
(
'GuestController@detailhomestay'
,
[
'id'
=>
$id
])
->
with
(
'message'
,
'Anda Harus Login Dulu !!'
);
//dd("maaf nggak bisa bang");
}
$dataPelanggan
=
DB
::
table
(
'pelanggan'
)
->
select
(
'pelanggan.id'
)
->
where
(
'pelanggan.id_akun'
,
'='
,
Auth
::
user
()
->
id
)
->
get
();
$dataPemilik
=
DB
::
table
(
'homestay'
)
->
select
(
'homestay.id_pemilik'
)
->
where
(
'homestay.id'
,
'='
,
$id
)
->
get
();
$feed
=
new
Feedback
();
$feed
->
id_pemilik_homestay
=
$dataPemilik
[
0
]
->
id_pemilik
;
$feed
->
id_pelanggan
=
$dataPelanggan
[
0
]
->
id
;
$feed
->
feedback
=
$request
[
'feedback'
];
$feed
->
save
();
return
redirect
()
->
action
(
'GuestController@detailhomestay'
,
[
'id'
=>
$id
]);
}
public
function
homestay
(
$id
,
$tm
,
$lm
,
$ts
,
$jt
,
$jk
){
...
...
@@ -372,12 +397,28 @@ class GuestController extends Controller
->
where
(
'homestay.id'
,
'='
,
$id
)
->
get
();
//dd($data[0]->id_pemilik);
$daftarBook
=
DB
::
table
(
'daftar_book'
)
->
select
(
'daftar_book.*'
)
->
where
(
'daftar_book.homestay'
,
'='
,
$id
)
->
where
(
'daftar_book.status'
,
'='
,
1
)
->
get
();
$dataFeedback
=
DB
::
table
(
'feedback'
)
->
join
(
'pelanggan'
,
'feedback.id_pelanggan'
,
'pelanggan.id'
)
->
select
(
'feedback.*'
,
'pelanggan.nama'
)
->
where
(
'feedback.id_pemilik_homestay'
,
'='
,
$data
[
0
]
->
id_pemilik
)
->
orderBy
(
'feedback.id'
,
'desc'
)
->
paginate
(
5
);
/*
$dataFeedback = DB::table('feedback')
->where('feedback.id_pemilik_homestay','=',$data[0]->id_pemilik)
->get();*/
//dd($dataFeedback);
$now
=
new
DateTime
();
$nowCurrent
=
$now
->
format
(
'Y-m-d'
);
...
...
@@ -396,6 +437,6 @@ class GuestController extends Controller
->
where
(
'kamar.id_homestay'
,
'='
,
$id
)
->
get
();
return
view
(
'adminlte::layouts.pages.Homestay'
)
->
with
(
'data'
,
$data
[
0
])
->
with
(
'daftarBook'
,
$daftarBook
)
->
with
(
'dataKamar'
,
$dataKamar
)
->
with
(
'avilable'
,
$avilableRoom
);
return
view
(
'adminlte::layouts.pages.Homestay'
)
->
with
(
'data'
,
$data
[
0
])
->
with
(
'daftarBook'
,
$daftarBook
)
->
with
(
'dataKamar'
,
$dataKamar
)
->
with
(
'avilable'
,
$avilableRoom
)
->
with
(
'feedback'
,
$dataFeedback
)
;
}
}
public/css/style.css
View file @
d7e0162a
...
...
@@ -4889,3 +4889,96 @@ select option{
padding
:
10px
;
background-color
:
none
;
}
.timeline
{
position
:
relative
;
margin
:
0
0
30px
0
;
padding
:
0
;
list-style
:
none
;
}
.timeline
:before
{
content
:
''
;
position
:
absolute
;
top
:
0
;
bottom
:
0
;
width
:
4px
;
background
:
#ddd
;
left
:
31px
;
margin
:
0
;
border-radius
:
2px
;
}
.timeline
>
li
{
position
:
relative
;
margin-right
:
10px
;
margin-bottom
:
15px
;
}
.timeline
>
li
:before
,
.timeline
>
li
:after
{
content
:
" "
;
display
:
table
;
}
.timeline
>
li
:after
{
clear
:
both
;
}
.timeline
>
li
>
.timeline-item
{
box-shadow
:
0
1px
1px
rgba
(
0
,
0
,
0
,
0.1
);
border-radius
:
3px
;
margin-top
:
0
;
background
:
#fff
;
color
:
#444
;
margin-left
:
60px
;
margin-right
:
15px
;
padding
:
0
;
position
:
relative
;
}
.timeline
>
li
>
.timeline-item
>
.time
{
color
:
#999
;
float
:
right
;
padding
:
10px
;
font-size
:
12px
;
}
.timeline
>
li
>
.timeline-item
>
.timeline-header
{
margin
:
0
;
color
:
#555
;
border-bottom
:
1px
solid
#f4f4f4
;
padding
:
10px
;
font-size
:
16px
;
line-height
:
1.1
;
}
.timeline
>
li
>
.timeline-item
>
.timeline-header
>
a
{
font-weight
:
600
;
}
.timeline
>
li
>
.timeline-item
>
.timeline-body
,
.timeline
>
li
>
.timeline-item
>
.timeline-footer
{
padding
:
10px
;
}
.timeline
>
li
>
.fa
,
.timeline
>
li
>
.glyphicon
,
.timeline
>
li
>
.ion
{
width
:
30px
;
height
:
30px
;
font-size
:
15px
;
line-height
:
30px
;
position
:
absolute
;
color
:
#666
;
background
:
#d2d6de
;
border-radius
:
50%
;
text-align
:
center
;
left
:
18px
;
top
:
0
;
}
.timeline
>
.time-label
>
span
{
font-weight
:
600
;
padding
:
5px
;
display
:
inline-block
;
background-color
:
#fff
;
border-radius
:
4px
;
}
.timeline-inverse
>
li
>
.timeline-item
{
background
:
#f0f0f0
;
border
:
1px
solid
#ddd
;
box-shadow
:
none
;
}
.timeline-inverse
>
li
>
.timeline-item
>
.timeline-header
{
border-bottom-color
:
#ddd
;
}
\ No newline at end of file
resources/views/vendor/adminlte/layouts/admin/detailreqFasilitas.blade.php
View file @
d7e0162a
...
...
@@ -75,7 +75,7 @@
<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>
<textarea class="
form
-
control
" placeholder="
Deskripsi
"
id="
pesan
"
style="
height
:
200
px
;
" name="
deskripsi
"> </textarea>
</div>
<span id="
errfn2
" style="
color
:
red
"></span>
</div>
...
...
@@ -95,16 +95,19 @@
<button type="
submit
" class="
btn
btn
-
info
"><i class="
fa
fa
-
check
"> Terima</i></button>
</form>
<!-- -->
</td>
<td>
<!-- -->
{{--<form action="
{{
url
(
'requestFasilitass/'
.
$data
->
id
)}}
" method="
post
" style="
display
:
inline
">--}}
{
{--{{csrf_field()}}--}
}
{{--<input type="
hidden
" name="
_method
" value="
PUT
">--}}
{{--<button type="
submit
" class="
btn
btn
-
danger
" data-toggle="
modal
" data-target="
#confirmDelete"--}}
{{
--
data
-
title
=
"Delete User"
data
-
message
=
"Are you sure you want to delete this user ?"
>--
}}
{{--<button type="
submit
" class="
btn
btn
-
danger
" >--}}
{{--<i class="
fa
fa
-
close
" > Tolak</i>--}}
{
{--</button>--}
}
{
{--</form>--}
}
<a class="
btn
btn
-
danger
" onclick="
cancelRequest
()
"> <i class="
fa
fa
-
close
"></i>Tolak </a>
</td>
@endif
</tr>
...
...
@@ -120,25 +123,33 @@
</div>
</div>
<!-- <script>
$("
.
delete
").on("
submit
", function(){
return confirm("
Do
you
want
to
delete
this
item
?
");
<script>
function cancelRequest() {
var check = confirm("
Apakah
anda
yakin
untuk
menolak
nya
??
");
var fiedl = document.getElementById('pesan');
if(fiedl.value == ' ' || fiedl.value == null){
alert('Pesan Harus di isi');
}else {
if(check) {
$.ajax({
data: {
pesan : fiedl.value,
requestID: '
{
{$data->id}
}
',
_token: '{{ csrf_token() }}',
},
url: '{{ url('/cancelrequest') }}',
type: 'POST',
success: function (data) {
window.location.reload(true);
}
});
</script> -->
<!-- <script type="
text
/
javascript
">
$('table[data-form="
deleteForm
"]').on('click', '.form-delete', function(e){
e.preventDefault();
var
$form
=$(this);
$('#confirm').modal({ backdrop: 'static', keyboard: false })
.on('click', '#delete-btn', function(){
$form
.submit();
});
});
</script> -->
}
}
}
</script>
<div id="
form
" class="
modal
fade
" role="
dialog
">
...
...
resources/views/vendor/adminlte/layouts/owner/ListPengajuanFasilitas.blade.php
View file @
d7e0162a
...
...
@@ -50,7 +50,7 @@
@endif
</td>
<td>
{
{$a->pesan}
}
</td>
<td>
@if(
$a->notif
==1)
...
...
resources/views/vendor/adminlte/layouts/pages/Homestay.blade.php
View file @
d7e0162a
...
...
@@ -99,6 +99,18 @@
</div>
<!-- //Informations -->
<div class="
details
agileits
w3layouts
">
<div class="
container
">
<div class="
col
-
md
-
6
col
-
sm
-
6
agileits
w3layouts
contact
-
grid
contact
-
grid
-
2
">
@if(Session::has('message'))
<div class="
alert
alert
-
danger
">
<center>{{ Session::get('message') }}</center>
</div>
@endif
</div>
</div>
</div>
<!-- Kritik & Saran -->
<div class="
details
agileits
w3layouts
">
<div class="
container
">
...
...
@@ -106,14 +118,13 @@
<h2 style="
margin
-
bottom
:
10
px
;
">Feedback</h2>
<form action="
{{
url
(
'feedback/'
.
$data
->
id
)}}
" method="
post
" style="
margin
-
bottom
:
25
px
;
">
<input type="
hidden
" name="
_token
" value="
{{
csrf_token
()
}}
">
<input type="
text
" class="
text
wow
agileits
w3layouts
" name="
Name
" placeholder="
Name
" required="">
<textarea name="
feedback
" class="
wow
agileits
w3layouts
" placeholder="
Message
" required=""></textarea>
<input type="
submit
" class="
more_btn
wow
agileits
w3layouts
" value="
Kirim
Feedback
">
</form>
</div>
</div>
</div>
</div>
<script>
function updateDate(object) {
//$('#tanggal_selesai').datepicker({
...
...
@@ -143,7 +154,24 @@
<h3 style="
margin
-
bottom
:
0
px
;
font
-
weight
:
10
px
;
"> Review Pengunjung </h3>
<img style="
width
:
450
px
;
margin
-
top
:
3
px
;
" src="
{{
asset
(
'img/line1.png'
)}}
"><br>
DISINI REVIEW
<ul class="
timeline
">
@foreach(
$feedback
as
$a
)
<li>
<i class="
glyphicon
glyphicon
-
envelope
"></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
:
0
px
;
"><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
</ul>
</div>
</div>
</div>
...
...
routes/web.php
View file @
d7e0162a
...
...
@@ -104,6 +104,7 @@ Route::get('detailhomestay/{id}','GuestController@detailhomestay');
Route
::
get
(
'daftar'
,
'GuestController@register'
);
Route
::
post
(
'daftar'
,
'GuestController@registerStore'
);
Route
::
get
(
'rincianpemesanan/{id}'
,
'GuestController@rincianpemesanan'
);
Route
::
post
(
'feedback/{id}'
,
'GuestController@sendFeedback'
);
Route
::
group
([
'middleware'
=>
'customer'
],
function
()
{
Route
::
get
(
'updatepesanan/{id}'
,
'CustomerController@updatePesanan'
);
...
...
@@ -116,7 +117,6 @@ Route::group(['middleware' => 'customer'], function () {
Route
::
get
(
'editProfileCustomer/{id}'
,
'CustomerController@editProfile'
);
Route
::
put
(
'editProfileCustomer/{id}'
,
'CustomerController@updateProfile'
);
Route
::
get
(
'customerProfile'
,
'CustomerController@profile'
);
Route
::
post
(
'feedback/{id}'
,
'CustomerController@sendFeedback'
);
Route
::
get
(
'rincianHistory/{id}'
,
'CustomerController@rincianHistory'
);
Route
::
get
(
'rincianHistoryPrint/{id}'
,
'CustomerController@rincianHistoryPrint'
);
});
...
...
@@ -144,4 +144,5 @@ Route::group(['middleware' => 'dinaspariwisata'], function () {
Route
::
get
(
'listhomestay'
,
'AdminController@listhomestay'
);
Route
::
get
(
'resultlistpesanan'
,
'AdminController@listhomestay'
);
Route
::
get
(
'printFasilitas/{id}'
,
'AdminController@printFasilitas'
);
Route
::
post
(
'/cancelrequest'
,
'AdminController@cancelrequest'
);
});
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