Commit ff2572a1 by Juliper

no message

parents 89cada2f 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
{ {
...@@ -257,4 +258,10 @@ class AdminController extends Controller ...@@ -257,4 +258,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);
}
} }
...@@ -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() }}">
......
...@@ -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() }}">
......
@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: 200px; 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>
...@@ -19,26 +19,27 @@ ...@@ -19,26 +19,27 @@
<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 -->
<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") @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"> <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
......
...@@ -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');
...@@ -114,6 +115,7 @@ Route::group(['middleware' => 'dinaspariwisata'], function () { ...@@ -114,6 +115,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');
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment