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
b43f5321
Commit
b43f5321
authored
Jun 12, 2017
by
Palti Sinaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ABC
parent
6ae25060
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
107 additions
and
7 deletions
+107
-7
AdminController.php
app/Http/Controllers/AdminController.php
+7
-0
login.blade.php
resources/views/vendor/adminlte/auth/login.blade.php
+1
-1
register.blade.php
resources/views/vendor/adminlte/auth/register.blade.php
+1
-1
listOwner.blade.php
...s/views/vendor/adminlte/layouts/admin/listOwner.blade.php
+2
-0
ownerprofil.blade.php
...views/vendor/adminlte/layouts/admin/ownerprofil.blade.php
+61
-0
mainheader.blade.php
...s/vendor/adminlte/layouts/partialweb/mainheader.blade.php
+33
-5
web.php
routes/web.php
+2
-0
No files found.
app/Http/Controllers/AdminController.php
View file @
b43f5321
...
@@ -15,6 +15,7 @@ use Illuminate\Foundation\Auth\RegistersUsers;
...
@@ -15,6 +15,7 @@ use Illuminate\Foundation\Auth\RegistersUsers;
use
App\Owner
;
use
App\Owner
;
use
Illuminate\Support\Facades\DB
;
use
Illuminate\Support\Facades\DB
;
use
App\RequestFasilitas
;
use
App\RequestFasilitas
;
use
Illuminate\Support\Facades\Auth
;
class
AdminController
extends
Controller
class
AdminController
extends
Controller
{
{
...
@@ -217,4 +218,10 @@ class AdminController extends Controller
...
@@ -217,4 +218,10 @@ class AdminController extends Controller
return
redirect
(
'requestHomestay'
);
return
redirect
(
'requestHomestay'
);
}
}
//akses halaman detail profile owner
public
function
profileowner
(
$id
){
$data
=
Owner
::
find
(
$id
);
return
view
(
'adminlte::layouts.admin.ownerprofil'
)
->
with
(
'data'
,
$data
);
}
}
}
resources/views/vendor/adminlte/auth/login.blade.php
View file @
b43f5321
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
<div class="
login
-
box
-
body
" >
<div class="
login
-
box
-
body
" >
<!-- <p class="
login
-
box
-
msg
"> {{ trans('adminlte_lang::message.siginsession') }} </p> -->
<!-- <p class="
login
-
box
-
msg
"> {{ trans('adminlte_lang::message.siginsession') }} </p> -->
<div class="
login
-
logo
">
<div class="
login
-
logo
">
<a href="
{{
url
(
'/
home
'
)
}}
"><img src="
img
/
bulbulhomestay
.
jpg
" alt=""></a>
<a href="
{{
url
(
'/'
)
}}
"><img src="
img
/
bulbulhomestay
.
jpg
" alt=""></a>
</div><!-- /.login-logo -->
</div><!-- /.login-logo -->
<form action="
{{
url
(
'/login'
)
}}
" method="
post
">
<form action="
{{
url
(
'/login'
)
}}
" method="
post
">
<input type="
hidden
" name="
_token
" value="
{{
csrf_token
()
}}
">
<input type="
hidden
" name="
_token
" value="
{{
csrf_token
()
}}
">
...
...
resources/views/vendor/adminlte/auth/register.blade.php
View file @
b43f5321
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
<div class="
register
-
box
-
body
">
<div class="
register
-
box
-
body
">
<div class="
login
-
logo
">
<div class="
login
-
logo
">
<a href="
{{
url
(
'/
home
'
)
}}
"><img src="
img
/
bulbulhomestay
.
jpg
" alt=""></a>
<a href="
{{
url
(
'/'
)
}}
"><img src="
img
/
bulbulhomestay
.
jpg
" alt=""></a>
</div><!-- /.login-logo -->
</div><!-- /.login-logo -->
<form action="
{{
url
(
'/daftar'
)
}}
" method="
post
">
<form action="
{{
url
(
'/daftar'
)
}}
" method="
post
">
<input type="
hidden
" name="
_token
" value="
{{
csrf_token
()
}}
">
<input type="
hidden
" name="
_token
" value="
{{
csrf_token
()
}}
">
...
...
resources/views/vendor/adminlte/layouts/admin/listOwner.blade.php
View file @
b43f5321
...
@@ -26,12 +26,14 @@
...
@@ -26,12 +26,14 @@
<th>Name</th>
<th>Name</th>
<th>Username</th>
<th>Username</th>
<th>Email</th>
<th>Email</th>
<!--<th></th>-->
</tr>
</tr>
@foreach(
$data
as
$a
)
@foreach(
$data
as
$a
)
<tr>
<tr>
<td>
{
{$a->name}
}
</td>
<td>
{
{$a->name}
}
</td>
<td>
{
{$a->username}
}
</td>
<td>
{
{$a->username}
}
</td>
<td>
{
{$a->email}
}
</td>
<td>
{
{$a->email}
}
</td>
<!-- <td> <a href="
{{
url
(
'ownerprofil/'
.
$a
->
id
)}}
" class="
btn
btn
-
primary
"><i class="
glyphicon
glyphicon
-
edit
"></i> </a></td> -->
</tr>
</tr>
@endforeach
@endforeach
...
...
resources/views/vendor/adminlte/layouts/admin/ownerprofil.blade.php
0 → 100644
View file @
b43f5321
@
extends
(
'adminlte::layouts.app'
)
@
section
(
'htmlheader_title'
)
{{
trans
(
'adminlte_lang::message.home'
)
}}
@
endsection
@
section
(
'main-content'
)
<
div
class
="
container
-
fluid
spark
-
screen
">
<div class="
row
">
<div class="
col
-
md
-
10
col
-
md
-
offset
-
1
">
<div class="
panel
panel
-
default
">
<div class="
panel
-
heading
">
<h3 class="
panel
-
heading
">
{
{$data->nama}
}
</h3>
</div>
<div class="
panel
-
body
">
<div class="
row
">
<div class="
col
-
md
-
3
col
-
lg
-
3
" align="
center
">
<img alt="
User
Pic
" src="
img
/
{{
$data
->
foto
}}
" style="
width
:
200
px
;
border
-
radius
:
10
%
;
">
</div>
<div class="
col
-
md
-
9
col
-
lg
-
8
">
<table class="
table
table
-
user
-
information
">
<tr>
<th>Nama </th>
<td>: </td>
<td>
{
{$data->nama}
}
</td>
</tr>
<tr>
<th>Alamat </th>
<td>: </td>
<td>
{
{$data->alamat}
}
</td>
</tr>
<tr>
<th>Perkerjaan</th>
<td>: </td>
<td>
{
{$data->pekerjaan}
}
</td>
</tr>
<tr>
<th>No Telepon</th>
<td>: </td>
<td>
{
{$data->no_telepon}
}
</td>
</tr>
<tr>
<th>No Rekening </th>
<td>: </td>
<td>
{
{$data->no_rekening}
}
</td>
</tr>
</table>
</div>
</div>
</div>
<div class="
panel
-
footer
">
<a href="
{{
url
(
'profiledit/'
.
$data
->
id
)}}
" data-original-title="
Edit
this
user
" data-toggle="
tooltio
" type="
button
" class="
btn
btn
-
sm
btn
-
warning
">
<span class="
glyphicon
glyphicon
-
edit
"></span> Edit Profil
</a>
</div>
</div>
@endsection
</div>
</div>
</div>
resources/views/vendor/adminlte/layouts/partialweb/mainheader.blade.php
View file @
b43f5321
...
@@ -19,11 +19,15 @@
...
@@ -19,11 +19,15 @@
<li><a
href=
"{{ url('/#Lokasi') }}"
>
LOKASI
</a></li>
<li><a
href=
"{{ url('/#Lokasi') }}"
>
LOKASI
</a></li>
<!-- <li><a href="gallery.html">PROFILE</a></li> -->
<!-- <li><a href="gallery.html">PROFILE</a></li> -->
@if (Auth::guest())
@if (Auth::guest())
<li><a
href=
"{{ url('/daftar') }}"
>
DAFTAR
</a></li>
<li><a
href=
"{{ url('/login') }}"
>
MASUK
</a></li>
<li><a
href=
"{{ url('/login') }}"
>
MASUK
</a></li>
<li><a
href=
"{{ url('/daftar') }}"
>
DAFTAR
</a></li>
@else
@else
<!-- User Account Menu -->
<!-- User Account Menu -->
@if(Auth::user()->role=="Customer")
<li
class=
"dropdown user user-menu"
>
<li
class=
"dropdown user user-menu"
>
<!-- Menu Toggle Button -->
<!-- Menu Toggle Button -->
<a
href=
"#"
class=
"dropdown-toggle"
data-toggle=
"dropdown"
>
<a
href=
"#"
class=
"dropdown-toggle"
data-toggle=
"dropdown"
>
...
@@ -36,9 +40,6 @@
...
@@ -36,9 +40,6 @@
<li><a
href=
"{{url('home')}}"
>
{{Auth::user()->name}}
</a></li>
<li><a
href=
"{{url('home')}}"
>
{{Auth::user()->name}}
</a></li>
@endif
@endif
</a>
</a>
@if(Auth::user()->role=="Customer")
<ul
class=
"dropdown-menu"
>
<ul
class=
"dropdown-menu"
>
<!-- The user image in the menu -->
<!-- The user image in the menu -->
<li
class=
"user-header"
>
<li
class=
"user-header"
>
...
@@ -74,6 +75,33 @@
...
@@ -74,6 +75,33 @@
</div>
</div>
</li>
</li>
</ul>
</ul>
<!--baru-->
@elseif(Auth::user()->role=="Owner")
<li
>
<!-- Menu Toggle Button -->
<!-- The user image in the navbar-->
{{--
<img
src=
"{{ Gravatar::get($user->email) }}"
class=
"user-image"
alt=
"User Image"
/>
--}}
<!-- hidden-xs hides the username on small devices so only the image appears. -->
@if(Auth::user()->role=="Customer")
<span
class=
"hidden-xs"
>
{{ Auth::user()->name }}
</span>
@else
<li><a
href=
"{{url('home')}}"
>
{{Auth::user()->name}}
</a></li>
@endif
</li>
@elseif(Auth::user()->role=="DinasPariwisata")
<li
>
<!-- Menu Toggle Button -->
<!-- The user image in the navbar-->
{{--
<img
src=
"{{ Gravatar::get($user->email) }}"
class=
"user-image"
alt=
"User Image"
/>
--}}
<!-- hidden-xs hides the username on small devices so only the image appears. -->
@if(Auth::user()->role=="Customer")
<span
class=
"hidden-xs"
>
{{ Auth::user()->name }}
</span>
@else
<li><a
href=
"{{url('home')}}"
>
{{Auth::user()->name}}
</a></li>
@endif
</li>
@endif
@endif
</li>
</li>
@endif
@endif
...
...
routes/web.php
View file @
b43f5321
...
@@ -80,6 +80,7 @@ Route::group(['middleware' => 'owner'], function () {
...
@@ -80,6 +80,7 @@ Route::group(['middleware' => 'owner'], function () {
Route
::
get
(
'listPengajuanFasilitas'
,
'OwnerController@listPengajuanFasilitas'
);
Route
::
get
(
'listPengajuanFasilitas'
,
'OwnerController@listPengajuanFasilitas'
);
Route
::
get
(
'listFeedback'
,
'OwnerController@feddback'
);
Route
::
get
(
'listFeedback'
,
'OwnerController@feddback'
);
Route
::
get
(
'home'
,
'OwnerController@index'
);
Route
::
get
(
'home'
,
'OwnerController@index'
);
});
});
Route
::
get
(
'detailhomestay/{id}'
,
'GuestController@detailhomestay'
);
Route
::
get
(
'detailhomestay/{id}'
,
'GuestController@detailhomestay'
);
...
@@ -111,6 +112,7 @@ Route::group(['middleware' => 'dinaspariwisata'], function () {
...
@@ -111,6 +112,7 @@ Route::group(['middleware' => 'dinaspariwisata'], function () {
Route
::
put
(
'requestFasilitass/{id}'
,
'AdminController@UpdateRequestFasilitass'
);
Route
::
put
(
'requestFasilitass/{id}'
,
'AdminController@UpdateRequestFasilitass'
);
Route
::
put
(
'listPengajuanHomestay/{id}'
,
'AdminController@AccPengajuanHomestay'
);
Route
::
put
(
'listPengajuanHomestay/{id}'
,
'AdminController@AccPengajuanHomestay'
);
Route
::
put
(
'listPengajuanHmsty/{id}'
,
'AdminController@RejectPengajuanHomestay'
);
Route
::
put
(
'listPengajuanHmsty/{id}'
,
'AdminController@RejectPengajuanHomestay'
);
Route
::
get
(
'ownerprofil/{id}'
,
'AdminController@profileowner'
);
});
});
...
...
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