Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pa21617d4ti07
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rizky
pa21617d4ti07
Commits
dc1d75ea
Commit
dc1d75ea
authored
Jun 09, 2017
by
rizky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
penggunaan condition di index untuk setiap role
parent
25a55be0
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
44 additions
and
21 deletions
+44
-21
workspace.xml
.idea/workspace.xml
+0
-0
RegistrationController.php
app/Http/Controllers/RegistrationController.php
+0
-1
customer_home.blade.php
resources/views/customers/customer_home.blade.php
+1
-1
data_order.blade.php
resources/views/customers/ticket/data_order.blade.php
+3
-3
index.blade.php
resources/views/index.blade.php
+39
-9
master-manager.blade.php
resources/views/layouts/master-manager.blade.php
+1
-1
web.php
routes/web.php
+0
-6
No files found.
.idea/workspace.xml
View file @
dc1d75ea
This diff is collapsed.
Click to expand it.
app/Http/Controllers/RegistrationController.php
View file @
dc1d75ea
...
...
@@ -30,6 +30,5 @@ class RegistrationController extends Controller
$role
->
users
()
->
attach
(
$user
);
return
redirect
(
'/login'
)
->
with
(
'alert-success'
,
'Akun anda telah terdaftar. Silahkan login.'
);
}
}
resources/views/customers/customer_home.blade.php
View file @
dc1d75ea
...
...
@@ -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
">
...
...
resources/views/customers/ticket/data_order.blade.php
View file @
dc1d75ea
...
...
@@ -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)
a
tas 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"
>
<h
1>
Data Pemesanan tiket
<small>
Upload resi pembayaran
</small></h1
>
<h
2>
Data Pemesanan tiket
<small>
Upload resi pembayaran
</small></h2
>
<div
class=
"clearfix"
></div>
</div>
...
...
resources/views/index.blade.php
View file @
dc1d75ea
...
...
@@ -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>
...
...
resources/views/layouts/master-manager.blade.php
View file @
dc1d75ea
...
...
@@ -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>
...
...
routes/web.php
View file @
dc1d75ea
...
...
@@ -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'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment