Commit b43f5321 by Palti Sinaga

ABC

parent 6ae25060
......@@ -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
{
......@@ -217,4 +218,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);
}
}
......@@ -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() }}">
......
......@@ -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() }}">
......
......@@ -26,12 +26,14 @@
<th>Name</th>
<th>Username</th>
<th>Email</th>
<!--<th></th>-->
</tr>
@foreach($data as $a)
<tr>
<td>{{$a->name}}</td>
<td>{{$a->username}}</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>
@endforeach
......
@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,11 +19,15 @@
<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 -->
@if(Auth::user()->role=="Customer")
<li class="dropdown user user-menu">
<!-- Menu Toggle Button -->
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
......@@ -36,9 +40,6 @@
<li><a href="{{url('home')}}">{{Auth::user()->name}}</a></li>
@endif
</a>
@if(Auth::user()->role=="Customer")
<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
......
......@@ -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');
......@@ -111,6 +112,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');
});
......
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