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
ff2572a1
Commit
ff2572a1
authored
7 years ago
by
Juliper
Browse files
Options
Browse Files
Download
Plain Diff
no message
parents
89cada2f
b43f5321
master
No related merge requests found
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
114 additions
and
16 deletions
+114
-16
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
ownerprofil.blade.php
...views/vendor/adminlte/layouts/admin/ownerprofil.blade.php
+61
-0
mainheader.blade.php
...s/vendor/adminlte/layouts/partialweb/mainheader.blade.php
+42
-14
web.php
routes/web.php
+2
-0
No files found.
app/Http/Controllers/AdminController.php
View file @
ff2572a1
...
...
@@ -15,6 +15,7 @@ use Illuminate\Foundation\Auth\RegistersUsers;
use
App\Owner
;
use
Illuminate\Support\Facades\DB
;
use
App\RequestFasilitas
;
use
Illuminate\Support\Facades\Auth
;
class
AdminController
extends
Controller
{
...
...
@@ -257,4 +258,10 @@ class AdminController extends Controller
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
);
}
}
This diff is collapsed.
Click to expand it.
resources/views/vendor/adminlte/auth/login.blade.php
View file @
ff2572a1
...
...
@@ -31,7 +31,7 @@
<div class="
login
-
box
-
body
" >
<!-- <p class="
login
-
box
-
msg
"> {{ trans('adminlte_lang::message.siginsession') }} </p> -->
<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 -->
<form action="
{{
url
(
'/login'
)
}}
" method="
post
">
<input type="
hidden
" name="
_token
" value="
{{
csrf_token
()
}}
">
...
...
This diff is collapsed.
Click to expand it.
resources/views/vendor/adminlte/auth/register.blade.php
View file @
ff2572a1
...
...
@@ -33,7 +33,7 @@
<div class="
register
-
box
-
body
">
<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 -->
<form action="
{{
url
(
'/daftar'
)
}}
" method="
post
">
<input type="
hidden
" name="
_token
" value="
{{
csrf_token
()
}}
">
...
...
This diff is collapsed.
Click to expand it.
resources/views/vendor/adminlte/layouts/admin/ownerprofil.blade.php
0 → 100644
View file @
ff2572a1
@
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>
This diff is collapsed.
Click to expand it.
resources/views/vendor/adminlte/layouts/partialweb/mainheader.blade.php
View file @
ff2572a1
...
...
@@ -19,26 +19,27 @@
<li><a
href=
"{{ url('/#Lokasi') }}"
>
LOKASI
</a></li>
<!-- <li><a href="gallery.html">PROFILE</a></li> -->
@if (Auth::guest())
<li><a
href=
"{{ url('/daftar') }}"
>
DAFTAR
</a></li>
<li><a
href=
"{{ url('/login') }}"
>
MASUK
</a></li>
<li><a
href=
"{{ url('/daftar') }}"
>
DAFTAR
</a></li>
@else
<!-- User Account Menu -->
<li
class=
"dropdown user user-menu"
>
<!-- Menu Toggle Button -->
<a
href=
"#"
class=
"dropdown-toggle"
data-toggle=
"dropdown"
>
<!-- 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
</a>
@if(Auth::user()->role=="Customer")
<li
class=
"dropdown user user-menu"
>
<!-- Menu Toggle Button -->
<a
href=
"#"
class=
"dropdown-toggle"
data-toggle=
"dropdown"
>
<!-- 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
</a>
<ul
class=
"dropdown-menu"
>
<!-- The user image in the menu -->
<li
class=
"user-header"
>
...
...
@@ -74,6 +75,33 @@
</div>
</li>
</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
</li>
@endif
...
...
This diff is collapsed.
Click to expand it.
routes/web.php
View file @
ff2572a1
...
...
@@ -80,6 +80,7 @@ Route::group(['middleware' => 'owner'], function () {
Route
::
get
(
'listPengajuanFasilitas'
,
'OwnerController@listPengajuanFasilitas'
);
Route
::
get
(
'listFeedback'
,
'OwnerController@feddback'
);
Route
::
get
(
'home'
,
'OwnerController@index'
);
});
Route
::
get
(
'detailhomestay/{id}'
,
'GuestController@detailhomestay'
);
...
...
@@ -114,6 +115,7 @@ Route::group(['middleware' => 'dinaspariwisata'], function () {
Route
::
put
(
'requestFasilitass/{id}'
,
'AdminController@UpdateRequestFasilitass'
);
Route
::
put
(
'listPengajuanHomestay/{id}'
,
'AdminController@AccPengajuanHomestay'
);
Route
::
put
(
'listPengajuanHmsty/{id}'
,
'AdminController@RejectPengajuanHomestay'
);
Route
::
get
(
'ownerprofil/{id}'
,
'AdminController@profileowner'
);
});
...
...
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