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
02e91aee
Commit
02e91aee
authored
7 years ago
by
Palti Sinaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cobak chart
parent
54b1e62b
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
48 additions
and
9 deletions
+48
-9
OwnerController.php
app/Http/Controllers/OwnerController.php
+22
-2
1.PNG
public/img/1.PNG
+0
-0
2.PNG
public/img/2.PNG
+0
-0
3.PNG
public/img/3.PNG
+0
-0
7.PNG
public/img/7.PNG
+0
-0
ListPengajuanFasilitas.blade.php
...r/adminlte/layouts/owner/ListPengajuanFasilitas.blade.php
+1
-1
RequestFasilitas.blade.php
.../vendor/adminlte/layouts/owner/RequestFasilitas.blade.php
+7
-0
listPesanan.blade.php
...views/vendor/adminlte/layouts/owner/listPesanan.blade.php
+1
-1
listRoom.blade.php
...es/views/vendor/adminlte/layouts/owner/listRoom.blade.php
+11
-1
sidebar.blade.php
.../views/vendor/adminlte/layouts/partials/sidebar.blade.php
+2
-2
web.php
routes/web.php
+4
-2
No files found.
app/Http/Controllers/OwnerController.php
View file @
02e91aee
...
...
@@ -17,6 +17,7 @@ class OwnerController extends Controller
public
function
index
()
{
return
view
(
'adminlte::layouts.owner.home'
);
}
public
function
updateRoom
(
Request
$request
,
$id
){
...
...
@@ -36,7 +37,7 @@ class OwnerController extends Controller
$dataKamar
->
update
();
return
redirect
(
'daftarKamar'
);
return
redirect
(
'daftarKamar'
)
->
with
(
'message'
,
'Update Kamar Sukses!'
)
;
}
public
function
editRoom
(
$id
){
...
...
@@ -81,7 +82,7 @@ class OwnerController extends Controller
}
public
function
requestFasilitas
(){
return
view
(
'adminlte::layouts.owner.RequestFasilitas'
);
return
view
(
'adminlte::layouts.owner.RequestFasilitas'
)
->
with
(
'message'
,
'Request Fasilitas Berhasil Dikirim!'
)
;
}
public
function
storeRequest
(
Request
$request
){
...
...
@@ -166,5 +167,24 @@ class OwnerController extends Controller
return
view
(
'adminlte::layouts.owner.ListPengajuanFasilitas'
)
->
with
(
'data'
,
$data
)
->
with
(
'count'
,
$count
);
}
// //coba chart
// public function chartjs()
// {
// $viewer = View::select(DB::raw("SUM(numberofview) as count"))
// ->orderBy("created_at")
// ->groupBy(DB::raw("year(created_at)"))
// ->get()->toArray();
// $viewer = array_column($viewer, 'count');
//
// $click = Click::select(DB::raw("SUM(numberofclick) as count"))
// ->orderBy("created_at")
// ->groupBy(DB::raw("year(created_at)"))
// ->get()->toArray();
// $click = array_column($click, 'count');
//
// return view('chartjs')
// ->with('viewer',json_encode($viewer,JSON_NUMERIC_CHECK))
// ->with('click',json_encode($click,JSON_NUMERIC_CHECK));
// }
}
This diff is collapsed.
Click to expand it.
public/img/1.PNG
0 → 100644
View file @
02e91aee
265 KB
This diff is collapsed.
Click to expand it.
public/img/2.PNG
0 → 100644
View file @
02e91aee
133 KB
This diff is collapsed.
Click to expand it.
public/img/3.PNG
0 → 100644
View file @
02e91aee
6.14 KB
This diff is collapsed.
Click to expand it.
public/img/7.PNG
0 → 100644
View file @
02e91aee
15.6 KB
This diff is collapsed.
Click to expand it.
resources/views/vendor/adminlte/layouts/owner/ListPengajuanFasilitas.blade.php
View file @
02e91aee
...
...
@@ -7,7 +7,7 @@
@
section
(
'main-content'
)
<
div
class
="
box
box
-
warning
">
<div class="
box
-
header
with
-
border
">
<h3 class="
box
-
title
"> LIST PENGAJUAN
HOMESTAY
</h3>
<h3 class="
box
-
title
"> LIST PENGAJUAN
FASILITAS
</h3>
@if (count(
$errors
) > 0)
<div class="
alert
alert
-
danger
">
<strong>Whoops!</strong> {{ trans('adminlte_lang::message.someproblems') }}<br><br>
...
...
This diff is collapsed.
Click to expand it.
resources/views/vendor/adminlte/layouts/owner/RequestFasilitas.blade.php
View file @
02e91aee
...
...
@@ -17,6 +17,13 @@
@endforeach
</ul>
</div>
@if(session()->has('message'))
<div class="
alert
alert
-
info
">
{
{session()->get('message')}
}
</div>
@endif
@endif
</div>
<div class="
box
-
body
">
...
...
This diff is collapsed.
Click to expand it.
resources/views/vendor/adminlte/layouts/owner/listPesanan.blade.php
View file @
02e91aee
...
...
@@ -30,7 +30,7 @@
<span class="
info
-
box
-
icon
"><i class="
glyphicon
glyphicon
glyphicon
-
list
-
alt
"></i></span>
<div class="
info
-
box
-
content
">
<span class="
info
-
box
-
text
">
List Pengajuan Pem
esanan</span>
<span class="
info
-
box
-
text
">
DaftarP
esanan</span>
<span class="
info
-
box
-
number
">
{
{$count}
}
</span>
</div>
<!-- /.info-box-content -->
...
...
This diff is collapsed.
Click to expand it.
resources/views/vendor/adminlte/layouts/owner/listRoom.blade.php
View file @
02e91aee
...
...
@@ -7,7 +7,7 @@
@
section
(
'main-content'
)
<
div
class
="
box
box
-
warning
">
<div class="
box
-
header
with
-
border
">
<h3 class="
box
-
title
"> LIST
RUANGAN
</h3>
<h3 class="
box
-
title
"> LIST
KAMAR
</h3>
@if (count(
$errors
) > 0)
<div class="
alert
alert
-
danger
">
<strong>Whoops!</strong> {{ trans('adminlte_lang::message.someproblems') }}<br><br>
...
...
@@ -18,6 +18,16 @@
</ul>
</div>
@endif
@if(session()->has('message'))
<div class="
alert
alert
-
info
">
{
{session()->get('message')}
}
</div>
@endif
@if(!empty(
$success
))
<div class="
alert
alert
-
success
">
{
{$succes}
}
</div>
@endif
</div>
<div class="
box
-
body
">
<div class="
col
-
md
-
4
col
-
sm
-
6
col
-
xs
-
12
">
...
...
This diff is collapsed.
Click to expand it.
resources/views/vendor/adminlte/layouts/partials/sidebar.blade.php
View file @
02e91aee
...
...
@@ -45,14 +45,14 @@
<li
class=
"treeview"
><a
href=
"#"
><i
class=
'fa fa-television'
></i>
<span>
FASILITAS
</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=
"
listPengajuanFasilitas
"
><i
class=
'fa fa-list'
></i>
<span>
Daftar Pengajuan Fasilitas
</span></a></li>
<li><a
href=
"
{{url('listPengajuanFasilitas')}}
"
><i
class=
'fa fa-list'
></i>
<span>
Daftar Pengajuan Fasilitas
</span></a></li>
</ul>
</li>
<li
class=
"treeview"
><a
href=
"#"
><i
class=
'fa fa-bed'
></i>
<span>
KAMAR
</span></a>
<ul
class=
"treeview-menu"
style=
"display : none;"
>
<li><a
href=
"{{url('daftarKamar')}}"
><i
class=
'fa fa-list'
></i>
<span>
Daftar Kamar
</span></a></li>
<li><a
href=
"
listPengajuanFasilitas
"
><i
class=
'fa fa-external-link-square'
></i>
<span>
Daftar Pengajuan Fasilitas
</span></a></li>
<li><a
href=
"
{{url('listPesanan')}}
"
><i
class=
'fa fa-external-link-square'
></i>
<span>
Daftar Pengajuan Fasilitas
</span></a></li>
</ul>
</li>
...
...
This diff is collapsed.
Click to expand it.
routes/web.php
View file @
02e91aee
...
...
@@ -44,7 +44,9 @@ Route::get('adminlte', function(){
return
view
(
'welcome'
);
});
//Coba cart
Route
::
get
(
'chartjs'
,
'OwnerController@chartjs'
);
//
Route
::
get
(
'AddBook'
,
function
(){
return
view
(
'adminlte::layouts.owner.AddBookManual'
);
...
...
@@ -56,7 +58,7 @@ Route::get('DataPemesanan', function(){
Route
::
get
(
'listPemesanan'
,
'AdminController@listPesanan'
);
Route
::
put
(
'editRoom/{id}'
,
'OwnerController@updateRoom'
);
Route
::
get
(
'editRoom/{id}'
,
'OwnerController@editRoom'
);
Route
::
get
(
'editRoom/{id}'
,
'OwnerController@editRoom'
)
;
Route
::
get
(
'daftarKamar'
,
'OwnerController@daftarKamar'
);
Route
::
get
(
'pesanan'
,
'OwnerController@listTransaction'
);
Route
::
put
(
'upload/{id}'
,
'CustomerController@upload'
);
...
...
This diff is collapsed.
Click to expand it.
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