Commit dc1d75ea by rizky

penggunaan condition di index untuk setiap role

parent 25a55be0
...@@ -30,6 +30,5 @@ class RegistrationController extends Controller ...@@ -30,6 +30,5 @@ class RegistrationController extends Controller
$role->users()->attach($user); $role->users()->attach($user);
return redirect('/login')->with('alert-success', 'Akun anda telah terdaftar. Silahkan login.'); return redirect('/login')->with('alert-success', 'Akun anda telah terdaftar. Silahkan login.');
} }
} }
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
<div class="col-md-12"> <div class="col-md-12">
<div class="x_panel"> <div class="x_panel">
<div class="x_title"> <div class="x_title">
<h2>Media Gallery </h2> <h2>Gallery </h2>
<div class="clearfix"></div> <div class="clearfix"></div>
</div> </div>
<div class="x_content"> <div class="x_content">
......
...@@ -22,8 +22,8 @@ ...@@ -22,8 +22,8 @@
<h2> <h2>
<ul> <ul>
<li> <li>
Pesan tiket terlebih dahulu. Pembayaran tiket dilakukan melalui via transfer bank ke nomor Rekening 111-111-111 (Bank ABC) Pesan tiket terlebih dahulu. Pembayaran tiket dilakukan melalui via transfer bank ke nomor Rekening 111-111-111 <br>(Bank ABC)
atas nama Museum TB Silalahi Center. a.n. Museum TB Silalahi Center.
</li> </li>
<li> <li>
Foto atau screenshot bukti pembayaran. Foto atau screenshot bukti pembayaran.
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
<div class="col-md-12 col-sm-12 col-xs-12"> <div class="col-md-12 col-sm-12 col-xs-12">
<div class="x_panel"> <div class="x_panel">
<div class="x_title"> <div class="x_title">
<h1>Data Pemesanan tiket <small>Upload resi pembayaran</small></h1> <h2>Data Pemesanan tiket <small>Upload resi pembayaran</small></h2>
<div class="clearfix"></div> <div class="clearfix"></div>
</div> </div>
......
...@@ -49,15 +49,45 @@ ...@@ -49,15 +49,45 @@
<!-- Collect the nav links, forms, and other content for toggling --> <!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav navbar-right"> <ul class="nav navbar-nav navbar-right">
@if(Sentinel::guest())
<li> <li>
<a class="page-scroll" href="{{url('/login')}}">Login</a> <a class="page-scroll" href="{{url('/login')}}">Login</a>
</li> </li>
<li> <li>
<a class="page-scroll" href="{{url('/register')}}">Register</a> <a class="page-scroll" href="{{url('/register')}}">Register</a>
</li> </li>
@else
@if(Sentinel::getUser()->roles()->first()->slug=='customer')
<li>
<a class="fa fa-book" href="{{url('/ticket')}}">Pesan Tiket</a>
</li>
<li>
<a class="fa fa-user" href="{{url('/customer')}}"> {{Sentinel::getUser()->first_name}}'s page</a>
</li>
@elseif(Sentinel::getUser()->roles()->first()->slug=='staff')
<li>
<a class="fa fa-book" href="{{url('/pemesanan')}}"> Data Pemesanan</a>
</li>
<li>
<a class="fa fa-book" href="{{url('/pengunjung')}}"> Data Pengunjung</a>
</li>
<li>
<a class="fa fa-user" href="{{url('/staff')}}"> {{Sentinel::getUser()->first_name}}'s page</a>
</li>
@elseif(Sentinel::getUser()->roles()->first()->slug=='manager')
<li>
<a class="fa fa-book" href="{{url('/penjualan')}}"> Data Penjualan Tiket</a>
</li>
<li>
<a class="fa fa-user" href="{{url('/manager')}}"> {{Sentinel::getUser()->first_name}}'s page</a>
</li>
@endif
@endif
</ul> </ul>
</div> </div>
<!-- /.navbar-collapse --> <!-- /.navbar-collapse -->
</div> </div>
<!-- /.container-fluid --> <!-- /.container-fluid -->
...@@ -327,11 +357,11 @@ ...@@ -327,11 +357,11 @@
</div> </div>
<div class="col-lg-2 col-lg-offset-2 text-center"> <div class="col-lg-2 col-lg-offset-2 text-center">
<i class="fa fa-phone fa-3x sr-contact"></i> <i class="fa fa-phone fa-3x sr-contact"></i>
<p>123-456-6789</p> <p>0632-21588</p>
</div> </div>
<div class="col-lg-3 text-center"> <div class="col-lg-3 text-center">
<i class="fa fa-envelope-o fa-3x sr-contact"></i> <i class="fa fa-envelope-o fa-3x sr-contact"></i>
<p><a href="#">museumtbsc@gmail.com</a></p> <p>museumtbsc@gmail.com</p>
</div> </div>
<div class="col-lg-3 text-center"> <div class="col-lg-3 text-center">
<i class="fa fa-map-marker fa-3x sr-contact"></i> <i class="fa fa-map-marker fa-3x sr-contact"></i>
......
...@@ -124,7 +124,7 @@ ...@@ -124,7 +124,7 @@
<form action="{{url('/logout')}}" method="POST" id="logout-form"> <form action="{{url('/logout')}}" method="POST" id="logout-form">
{{ csrf_field() }} {{ csrf_field() }}
<a href="#" onclick="document.getElementById('logout-form').submit()"><i class="fa fa-sign-out fa-fw"></i>Logout</a> <a href="#" onclick="document.getElementById('logout-form').submit()"><i class="fa fa-sign-out fa-fw"></i>Logout</a>
{{--<a href="login.html"><i class="fa fa-sign-out pull-right"></i> Log Out</a></li>--}}</form> </form>
</li> </li>
</ul> </ul>
</li> </li>
......
...@@ -17,12 +17,6 @@ Route::group(['middleware' => 'visitors'], function() ...@@ -17,12 +17,6 @@ Route::group(['middleware' => 'visitors'], function()
Route::post('/logout', 'LoginController@logout'); Route::post('/logout', 'LoginController@logout');
Route::group(['middleware' => ''], function()
{
Route::get('/password', 'PasswordController@changePassword');
Route::put('/password', 'PasswordController@changePasswordPost');
});
Route::group(['middleware' => 'manager'], function() Route::group(['middleware' => 'manager'], function()
{ {
Route::get('/manager', 'ManagerController@index'); Route::get('/manager', 'ManagerController@index');
......
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