Commit 3d90ab1a by Juliper

update profil dan route

parent 9211fb20
......@@ -16,6 +16,9 @@ class OwnerController extends Controller
return view('adminlte::layouts.owner.home');
}
public function profile(){
return view('adminlte::layouts.owner.profil');
}
/**
* Show the form for creating a new resource.
*
......
@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">Your Profil</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/gravatar.png" class="img-circle img-responsive">
</div>
<div class="col-md-9 col-lg-9">
<table class="table table-user-information">
</table>
</div>
</div>
</div>
<div class="panel-footer">
<a href="" data-original-title="Edit this user" data-toggle="tooltio" type="button" class="btn btn-sm btn-warning">
<i class="glyphicon glyphicon-edit"></i>
</a>
</div>
</div>
</div>
</div>
</div>
@endsection
\ No newline at end of file
......@@ -39,7 +39,8 @@
<li><a href="{{url('listowner')}}"><i class='fa fa-list'></i> <span>{{ trans('adminlte_lang::message.listOwner') }}</span></a></li>
@elseif(Auth::user()->role=="Owner")
<li class="header">{{ trans('adminlte_lang::message.header') }}</li>
<li><a href="{{ url('profile') }}"><i class='glyphicon glyphicon-user'></i> <span>{{ trans('adminlte_lang::message.profile') }}</span></a></li>
@endif
......
......@@ -32,4 +32,5 @@ Route::group(['middleware' => 'auth'], function () {
Route::resource('admin', 'AdminController');
Route::get('listowner','AdminController@listOwner');
Route::resource('owner','OwnerController');
route::get('profile','OwnerController@profile');
......@@ -133,6 +133,7 @@ return [
'role' => 'Role',
'username' => 'Username',
'listOwner' => 'List Owner',
'profile' => 'Profile',
];
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