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
d5b22270
Commit
d5b22270
authored
Jun 11, 2017
by
Palti Sinaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
H-2 lagi
parent
9d375733
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
73 additions
and
108 deletions
+73
-108
OwnerController.php
app/Http/Controllers/OwnerController.php
+41
-27
RequestFasilitas.blade.php
.../vendor/adminlte/layouts/owner/RequestFasilitas.blade.php
+1
-1
home.blade.php
resources/views/vendor/adminlte/layouts/owner/home.blade.php
+18
-78
listfeedback.blade.php
...iews/vendor/adminlte/layouts/owner/listfeedback.blade.php
+2
-0
updateProfil.blade.php
...iews/vendor/adminlte/layouts/owner/updateProfil.blade.php
+8
-0
sidebar.blade.php
.../views/vendor/adminlte/layouts/partials/sidebar.blade.php
+2
-2
web.php
routes/web.php
+1
-0
No files found.
app/Http/Controllers/OwnerController.php
View file @
d5b22270
...
...
@@ -26,37 +26,51 @@ class OwnerController extends Controller
{
//coba
$dataPemilik
=
DB
::
table
(
'pemilikhomestay'
)
// $dataPemilik = DB::table('pemilikhomestay')
// ->select('pemilikhomestay.*')
// ->where('pemilikhomestay.id_akun','=',Auth::user()->id)
// ->get();
//
// $data = DB::table('homestay')
// ->join('pemilikhomestay','homestay.id_pemilik','pemilikhomestay.id')
// ->join('kamar','homestay.id','=','kamar.id_homestay')
// ->select('kamar.*')
// ->where('pemilikhomestay.id','=',$dataPemilik[0]->id)
// ->get();
//
// $dataHomestay = DB::table('homestay')
// ->join('pemilikhomestay','homestay.id_pemilik','pemilikhomestay.id')
// ->select('homestay.id')
// ->where('pemilikhomestay.id','=',$dataPemilik[0]->id)
// ->get();
//
// $dataListOfBook = DB::table('daftar_book')
// ->select('daftar_book.*')
// ->where('daftar_book.homestay','=',$dataHomestay[0]->id)
// ->get();
//
// $dataFeedback = DB::table('feedback')
// ->join('pelanggan','feedback.id_pelanggan','pelanggan.id')
// ->select('feedback.*','pelanggan.nama')
// ->where('feedback.id_pemilik_homestay','=',$dataPemilik[0]->id)
// ->get();
//coba
$dataPel
=
DB
::
table
(
'pemilikhomestay'
)
->
select
(
'pemilikhomestay.*'
)
->
where
(
'pemilikhomestay.id_akun'
,
'='
,
Auth
::
user
()
->
id
)
->
get
();
$data
=
DB
::
table
(
'homestay'
)
->
join
(
'pemilikhomestay'
,
'homestay.id_pemilik'
,
'pemilikhomestay.id'
)
->
join
(
'kamar'
,
'homestay.id'
,
'='
,
'kamar.id_homestay'
)
->
select
(
'kamar.*'
)
->
where
(
'pemilikhomestay.id'
,
'='
,
$dataPemilik
[
0
]
->
id
)
->
get
();
$dataHomestay
=
DB
::
table
(
'homestay'
)
->
join
(
'pemilikhomestay'
,
'homestay.id_pemilik'
,
'pemilikhomestay.id'
)
->
select
(
'homestay.id'
)
->
where
(
'pemilikhomestay.id'
,
'='
,
$dataPemilik
[
0
]
->
id
)
->
get
();
$dataListOfBook
=
DB
::
table
(
'daftar_book'
)
->
select
(
'daftar_book.*'
)
->
where
(
'daftar_book.homestay'
,
'='
,
$dataHomestay
[
0
]
->
id
)
->
get
();
$dataFeedback
=
DB
::
table
(
'feedback'
)
->
join
(
'pelanggan'
,
'feedback.id_pelanggan'
,
'pelanggan.id'
)
->
select
(
'feedback.*'
,
'pelanggan.nama'
)
->
where
(
'feedback.id_pemilik_homestay'
,
'='
,
$dataPemilik
[
0
]
->
id
)
->
get
();
//coba
return
view
(
'adminlte::layouts.owner.home'
)
->
with
(
'count'
,
$data
->
count
())
->
with
(
'count1'
,
$dataListOfBook
->
count
())
->
with
(
'count2'
,
$dataFeedback
->
count
());
$data
=
DB
::
table
(
'homestay'
)
->
join
(
'pemilikhomestay'
,
'homestay.id_pemilik'
,
'='
,
'pemilikhomestay.id'
)
->
join
(
'transaksi'
,
'homestay.id'
,
'='
,
'transaksi.id_homestay'
)
->
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
());
// return view('adminlte::layouts.owner.listPesanan')->with('count',$data->count())->with('count1',$dataListOfBook->count())->with('count2',$dataFeedback->count())->with('dataF',$dataFeedback);
}
...
...
resources/views/vendor/adminlte/layouts/owner/RequestFasilitas.blade.php
View file @
d5b22270
...
...
@@ -7,7 +7,7 @@
@
section
(
'main-content'
)
<
div
class
="
box
box
-
primary
">
<div class="
box
-
header
with
-
border
">
<h3 class="
box
-
title
">
REQUEST
FASILITAS </h3>
<h3 class="
box
-
title
">
PERMINTAAN
FASILITAS </h3>
@if (count(
$errors
) > 0)
<div class="
alert
alert
-
danger
">
<strong>Whoops!</strong> {{ trans('adminlte_lang::message.someproblems') }}<br><br>
...
...
resources/views/vendor/adminlte/layouts/owner/home.blade.php
View file @
d5b22270
...
...
@@ -19,7 +19,7 @@
<div class="
icon
">
<i class="
fa
fa
-
bed
"></i>
</div>
<a href="
#
" class="small-box-footer">Lihat <i class="fa fa-arrow-circle-right"></i></a>
<a href="
/
daftarKamar
" class="
small
-
box
-
footer
">Lihat <i class="
fa
fa
-
arrow
-
circle
-
right
"></i></a>
</div>
</div>
...
...
@@ -37,7 +37,7 @@
<div class="
icon
">
<i class="
fa
fa
-
list
"></i>
</div>
<a href="
#
" class="small-box-footer">Lihat <i class="fa fa-arrow-circle-right"></i></a>
<a href="
/
pesanan
" class="
small
-
box
-
footer
">Lihat <i class="
fa
fa
-
arrow
-
circle
-
right
"></i></a>
</div>
</div>
...
...
@@ -53,7 +53,7 @@
<div class="
icon
">
<i class="
fa
fa
-
edit
"></i>
</div>
<a href="
#
" class="small-box-footer">More info <i class="fa fa-arrow-circle-right"></i></a>
<a href="
/
listFeedback
" class="
small
-
box
-
footer
">More info <i class="
fa
fa
-
arrow
-
circle
-
right
"></i></a>
</div>
</div>
...
...
@@ -81,108 +81,48 @@
<!-- Left col -->
<section class="
col
-
lg
-
7
connectedSortable
">
<!-- Custom tabs (Charts with tabs)-->
<div class="
nav
-
tabs
-
custom
">
<!-- Tabs within a box -->
<ul class="
nav
nav
-
tabs
pull
-
right
">
<li class="
active
"><a href="
#revenue-chart" data-toggle="tab">Area</a></li>
<
li
><
a
href
=
"#sales-chart"
data
-
toggle
=
"tab"
>
Donut
</
a
></
li
>
<
li
class
="
pull
-
left
header
"><i class="
fa
fa
-
inbox
"></i> Sales</li>
</ul>
<div class="
tab
-
content
no
-
padding
">
<!-- Morris chart - Sales -->
<div class="
chart
tab
-
pane
active
" id="
revenue
-
chart
" style="
position
:
relative
;
height
:
300
px
;
"></div>
<div class="
chart
tab
-
pane
" id="
sales
-
chart
" style="
position
:
relative
;
height
:
300
px
;
"></div>
</div>
</div>
<!-- /.nav-tabs-custom -->
<!-- Chat box -->
<div class="
box
box
-
success
">
<div class="
box
-
header
">
<i class="
fa
fa
-
comments
-
o
"></i>
<h3 class="
box
-
title
">Chat</h3>
<h3 class="
box
-
title
">Feedback</h3>
<div class="
box
-
tools
pull
-
right
" data-toggle="
tooltip
" title="
Status
">
<div class="
btn
-
group
" data-toggle="
btn
-
toggle
">
<button type="
button
" class="
btn
btn
-
default
btn
-
sm
active
"><i class="
fa
fa
-
square
text
-
green
"></i>
</button>
<button type="
button
" class="
btn
btn
-
default
btn
-
sm
"><i class="
fa
fa
-
square
text
-
red
"></i></button>
<a href="
/
listFeedback
" style="
btn
btn
-
primary
btn
-
sm
btn
-
flat
">Lihat</a>
</div>
</div>
</div>
<div class="
box
-
body
chat
" id="
chat
-
box
">
<!-- chat item -->
<!--Chat item -->
@foreach(
$dataF
as
$a
)
<div class="
item
">
<img src="
dist
/
img
/
user4
-
128
x128
.
jpg
" alt="
user
image
" class="
online
">
<img src="" alt="
user
image
" class="
offline
" style="
display
:
none
">
<p class="
message
">
<a href="
#" class="name">
<
small
class
="
text
-
muted
pull
-
right
"><i class="
fa
fa
-
clock
-
o
"></i>
2:15
</small>
Mike Doe
<
small
class
="
text
-
muted
pull
-
right
"><i class="
fa
fa
-
clock
-
o
"></i>
{
{$a->created_at}
}
</small>
{
{$a->nama}
}
</a>
I would like to meet you to discuss the latest news about
the arrival of the new theme. They say it is going to be one the
best themes on the market
</p>
<div class="
attachment
">
<h4>Attachments:</h4>
<p class="
filename
">
Theme-thumbnail-image.jpg
</p>
<div class="
pull
-
right
">
<button type="
button
" class="
btn
btn
-
primary
btn
-
sm
btn
-
flat
">Open</button>
</div>
</div>
<!-- /.attachment -->
</div>
<!-- /.item -->
<!-- chat item -->
<div class="
item
">
<img src="
dist
/
img
/
user3
-
128
x128
.
jpg
" alt="
user
image
" class="
offline
">
<tr>
<td>
{
{$a->nama}
}
</td>
<td>
{
{$a->feedback}
}
</td>
</tr>
@endforeach
<!--Chat item -->
<p class="
message
">
<a href="
#" class="name">
<
small
class
="
text
-
muted
pull
-
right
"><i class="
fa
fa
-
clock
-
o
"></i> 5:15</small>
Alexander Pierce
</a>
I would like to meet you to discuss the latest news about
the arrival of the new theme. They say it is going to be one the
best themes on the market
</p>
</div>
<!-- /.item -->
<!-- chat item -->
<div class="
item
">
<img src="
dist
/
img
/
user2
-
160
x160
.
jpg
" alt="
user
image
" class="
offline
">
<p class="
message
">
<a href="
#" class="name">
<
small
class
="
text
-
muted
pull
-
right
"><i class="
fa
fa
-
clock
-
o
"></i> 5:30</small>
Susan Doe
</a>
I would like to meet you to discuss the latest news about
the arrival of the new theme. They say it is going to be one the
best themes on the market
</p>
</div>
<!-- /.item -->
</div>
<!-- /.chat -->
<div class="
box
-
footer
">
<div class="
input
-
group
">
<input class="
form
-
control
" placeholder="
Type
message
...
">
<div class="
input
-
group
-
btn
">
<button type="
button
" class="
btn
btn
-
success
"><i class="
fa
fa
-
plus
"></i></button>
</div>
</div>
</div>
</div>
<!-- /.box (chat box) -->
<br>
<!-- TO DO List -->
<div class="
box
box
-
primary
">
<div class="
box
-
header
">
...
...
resources/views/vendor/adminlte/layouts/owner/listfeedback.blade.php
View file @
d5b22270
...
...
@@ -35,11 +35,13 @@
<tr>
<th>Nama Pelanggan</th>
<th>Feedback</th>
<th>Tanggal Dikirim</th>
</tr>
@foreach(
$data
as
$a
)
<tr>
<td>
{
{$a->nama}
}
</td>
<td>
{
{$a->feedback}
}
</td>
<td>
{
{$a->created_at}
}
</td>
</tr>
@endforeach
</table>
...
...
resources/views/vendor/adminlte/layouts/owner/updateProfil.blade.php
View file @
d5b22270
...
...
@@ -78,6 +78,14 @@
<input type="
Number
" class="
form
-
control
" value="
{{
$data
->
no_rekening
}}
" placeholder="
noRekening
" name=""/>
</div>
</div>
<div class="
form
-
group
">
<label>Foto </label>
<div class="
input
-
group
">
<input type="
file
" value="
Browse
" name="
foto
" id="
picture
" >
</div>
</div>
<div class="
form
-
group
" align="
right
" style="
color
:
black
;
">
<button type="
submit
" class="
btn
btn
-
primary
">Update</button>
</div>
...
...
resources/views/vendor/adminlte/layouts/partials/sidebar.blade.php
View file @
d5b22270
...
...
@@ -12,7 +12,7 @@
@if(Auth::user()->role =="DinasPariwisata")
<!-- Optionally, you can add icons to the links -->
<li
class=
"treeview "
><a
href=
"#"
><i
class=
'fa fa-list'
></i>
<span>
List
Request
</span>
</a>
<li
class=
"treeview "
><a
href=
"#"
><i
class=
'fa fa-list'
></i>
<span>
Daftar
Request
</span>
</a>
<ul
class=
"treeview-menu"
style=
"display: none;"
>
<li><a
href=
"{{url('requestFasilitas')}}"
><i
class=
'fa fa-television'
></i>
<span>
Acc Request Fasilitas
</span></a></li>
<li><a
href=
"{{url('requestHomestay')}}"
><i
class=
'fa fa-home'
></i>
<span>
Acc Pengajuan Homestay
</span></a></li>
...
...
@@ -32,7 +32,7 @@
<i
class=
"fa fa-angle-left pull-right"
></i>
</span></a>
<ul
class=
"treeview-menu"
style=
"display : none;"
>
<li><a
href=
"{{url('reqFasilitas')}}"
><i
class=
'fa fa-external-link-square'
></i>
<span>
Request
Fasilitas
</span></a></li>
<li><a
href=
"{{url('reqFasilitas')}}"
><i
class=
'fa fa-external-link-square'
></i>
<span>
Daftar Permintaan
Fasilitas
</span></a></li>
<li><a
href=
"{{url('listPengajuanFasilitas')}}"
><i
class=
'fa fa-list'
></i>
<span>
Daftar Pengajuan Fasilitas
</span></a></li>
</ul>
</li>
...
...
routes/web.php
View file @
d5b22270
...
...
@@ -78,6 +78,7 @@ Route::group(['middleware' => 'owner'], function () {
Route
::
get
(
'listPengajuan'
,
'OwnerController@listPengajuan'
);
Route
::
get
(
'listPengajuanFasilitas'
,
'OwnerController@listPengajuanFasilitas'
);
Route
::
get
(
'listFeedback'
,
'OwnerController@feddback'
);
Route
::
get
(
'home'
,
'OwnerController@index'
);
});
Route
::
get
(
'detailhomestay/{id}'
,
'GuestController@detailhomestay'
);
...
...
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