Commit dc1d75ea by rizky

penggunaan condition di index untuk setiap role

parent 25a55be0
......@@ -30,6 +30,5 @@ class RegistrationController extends Controller
$role->users()->attach($user);
return redirect('/login')->with('alert-success', 'Akun anda telah terdaftar. Silahkan login.');
}
}
......@@ -25,7 +25,7 @@
<div class="col-md-12">
<div class="x_panel">
<div class="x_title">
<h2>Media Gallery </h2>
<h2>Gallery </h2>
<div class="clearfix"></div>
</div>
<div class="x_content">
......
......@@ -22,8 +22,8 @@
<h2>
<ul>
<li>
Pesan tiket terlebih dahulu. Pembayaran tiket dilakukan melalui via transfer bank ke nomor Rekening 111-111-111 (Bank ABC)
atas nama Museum TB Silalahi Center.
Pesan tiket terlebih dahulu. Pembayaran tiket dilakukan melalui via transfer bank ke nomor Rekening 111-111-111 <br>(Bank ABC)
a.n. Museum TB Silalahi Center.
</li>
<li>
Foto atau screenshot bukti pembayaran.
......@@ -45,7 +45,7 @@
<div class="col-md-12 col-sm-12 col-xs-12">
<div class="x_panel">
<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>
......
......@@ -49,15 +49,45 @@
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav navbar-right">
<li>
<a class="page-scroll" href="{{url('/login')}}">Login</a>
</li>
<li>
<a class="page-scroll" href="{{url('/register')}}">Register</a>
</li>
@if(Sentinel::guest())
<li>
<a class="page-scroll" href="{{url('/login')}}">Login</a>
</li>
<li>
<a class="page-scroll" href="{{url('/register')}}">Register</a>
</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>
</div>
<!-- /.navbar-collapse -->
</div>
<!-- /.container-fluid -->
......@@ -327,11 +357,11 @@
</div>
<div class="col-lg-2 col-lg-offset-2 text-center">
<i class="fa fa-phone fa-3x sr-contact"></i>
<p>123-456-6789</p>
<p>0632-21588</p>
</div>
<div class="col-lg-3 text-center">
<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 class="col-lg-3 text-center">
<i class="fa fa-map-marker fa-3x sr-contact"></i>
......
......@@ -124,7 +124,7 @@
<form action="{{url('/logout')}}" method="POST" id="logout-form">
{{ csrf_field() }}
<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>
</ul>
</li>
......
......@@ -17,12 +17,6 @@ Route::group(['middleware' => 'visitors'], function()
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::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