Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
ServerLivePA2D4TI07
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
ServerLivePA2D4TI07
Commits
2df78316
Commit
2df78316
authored
May 26, 2017
by
rizky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
6c6d71c9
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
85 additions
and
146 deletions
+85
-146
.gitignore
.gitignore
+1
-1
Handler.php
app/Exceptions/Handler.php
+7
-0
RegistrationController.php
app/Http/Controllers/RegistrationController.php
+1
-0
CustomerMiddleware.php
app/Http/Middleware/CustomerMiddleware.php
+1
-1
ManagerMiddleware.php
app/Http/Middleware/ManagerMiddleware.php
+1
-1
StaffMiddleware.php
app/Http/Middleware/StaffMiddleware.php
+1
-1
2017_05_01_044733_create_karyawans_table.php
...e/migrations/2017_05_01_044733_create_karyawans_table.php
+0
-35
front.jpg
public/img/front.jpg
+0
-0
register.blade.php
resources/views/authentication/register.blade.php
+1
-1
index.blade.php
resources/views/customers/ticket/beli/index.blade.php
+2
-7
ticket_home.blade.php
resources/views/customers/ticket/ticket_home.blade.php
+2
-16
404.blade.php
resources/views/errors/404.blade.php
+53
-0
manager_home.blade.php
resources/views/managers/manager_home.blade.php
+11
-40
staff_home.blade.php
resources/views/staffs/staff_home.blade.php
+1
-37
web.php
routes/web.php
+3
-6
No files found.
.gitignore
View file @
2df78316
/node_modules
/public/storage
/vendor
/.idea
Homestead.json
Homestead.yaml
...
...
app/Exceptions/Handler.php
View file @
2df78316
...
...
@@ -5,6 +5,7 @@ namespace App\Exceptions;
use
Exception
;
use
Illuminate\Auth\AuthenticationException
;
use
Illuminate\Foundation\Exceptions\Handler
as
ExceptionHandler
;
use
Symfony\Component\HttpKernel\Exception\NotFoundHttpException
;
class
Handler
extends
ExceptionHandler
{
...
...
@@ -44,6 +45,12 @@ class Handler extends ExceptionHandler
*/
public
function
render
(
$request
,
Exception
$exception
)
{
if
(
$exception
instanceof
NotFoundHttpException
)
{
return
response
()
->
view
(
'errors.404'
,
[],
404
);
}
return
parent
::
render
(
$request
,
$exception
);
}
...
...
app/Http/Controllers/RegistrationController.php
View file @
2df78316
...
...
@@ -20,6 +20,7 @@ class RegistrationController extends Controller
'first_name'
=>
'required|max:255'
,
'last_name'
=>
'required|max:255'
,
'password'
=>
'confirmed|required|min:6'
,
'password_confirmation'
=>
'confirmed|required|same:password'
]);
$user
=
Sentinel
::
registerAndActivate
(
$request
->
all
());
...
...
app/Http/Middleware/CustomerMiddleware.php
View file @
2df78316
...
...
@@ -19,6 +19,6 @@ class CustomerMiddleware
if
(
Sentinel
::
check
()
&&
Sentinel
::
getUser
()
->
roles
()
->
first
()
->
slug
==
'customer'
)
return
$next
(
$request
);
else
return
redirect
(
'/'
);
return
redirect
(
)
->
back
(
);
}
}
app/Http/Middleware/ManagerMiddleware.php
View file @
2df78316
...
...
@@ -19,6 +19,6 @@ class ManagerMiddleware
if
(
Sentinel
::
check
()
&&
Sentinel
::
getUser
()
->
roles
()
->
first
()
->
slug
==
'manager'
)
return
$next
(
$request
);
else
return
redirect
(
'/'
);
return
redirect
(
)
->
back
(
);
}
}
app/Http/Middleware/StaffMiddleware.php
View file @
2df78316
...
...
@@ -19,6 +19,6 @@ class StaffMiddleware
if
(
Sentinel
::
check
()
&&
Sentinel
::
getUser
()
->
roles
()
->
first
()
->
slug
==
'staff'
)
return
$next
(
$request
);
else
return
redirect
(
'/'
);
return
redirect
(
)
->
back
(
);
}
}
database/migrations/2017_05_01_044733_create_karyawans_table.php
deleted
100644 → 0
View file @
6c6d71c9
<?php
use
Illuminate\Support\Facades\Schema
;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Database\Migrations\Migration
;
class
CreateKaryawansTable
extends
Migration
{
/**
* Run the migrations.
*
* @return void
*/
public
function
up
()
{
Schema
::
create
(
'karyawans'
,
function
(
Blueprint
$table
)
{
$table
->
increments
(
'id'
);
$table
->
string
(
'nama'
);
$table
->
string
(
'pekerjaan'
);
$table
->
string
(
'notlp'
);
$table
->
timestamps
();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public
function
down
()
{
Schema
::
dropIfExists
(
'karyawans'
);
}
}
public/img/front.jpg
0 → 100644
View file @
2df78316
192 KB
resources/views/authentication/register.blade.php
View file @
2df78316
...
...
@@ -46,7 +46,7 @@
<div class="
separator
">
<p class="
change_link
">Already a member ?
<a href="
{{
url
(
'/
register
'
)}}
" class="
to_register
"> Log in </a>
<a href="
{{
url
(
'/
login
'
)}}
" class="
to_register
"> Log in </a>
</p>
<div class="
clearfix
"></div>
...
...
resources/views/customers/ticket/beli/index.blade.php
View file @
2df78316
...
...
@@ -16,18 +16,13 @@
<div class="
x_panel
">
<div class="
x_title
">
<h2>Jumlah Pesanan</h2>
<ul class="
nav
navbar
-
right
panel_toolbox
">
<li><a class="
collapse
-
link
"><i class="
fa
fa
-
chevron
-
up
"></i></a>
</li>
<li class="
dropdown
">
<a href="
#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><i class="fa fa-wrench"></i></a>
</
li
>
</
ul
>
<div class="
clearfix
"></div>
</div>
<div class="
x_content
">
<form action="
{{
url
(
'/ticket/beli/'
)}}
" method="
post
">
{{ csrf_field() }}
<label class="
col
-
md
-
4
control
-
label
">User ID</label>
<input type="
text
" value="
{{
Sentinel
::
getUser
()
->
id
}}
" class="
form
-
control
" name="
user_id
" readonly>
<label class="
col
-
md
-
4
control
-
label
">Name</label>
...
...
resources/views/customers/ticket/ticket_home.blade.php
View file @
2df78316
...
...
@@ -33,14 +33,7 @@
<!-- price element -->
<div class="
col
-
md
-
4
col
-
sm
-
6
col
-
xs
-
12
" style="
align
-
content
:
center
">
<div class="
pricing
ui
-
ribbon
-
container
">
<div class="
ui
-
ribbon
-
wrapper
">
</div>
<div class="
title
">
</div>
<div class="
x_content
">
</div>
</div>
</div>
<!-- price element -->
...
...
@@ -80,14 +73,7 @@
<!-- price element -->
<div class="
col
-
md
-
4
col
-
sm
-
6
col
-
xs
-
12
" style="
align
-
content
:
center
">
<div class="
pricing
ui
-
ribbon
-
container
">
<div class="
ui
-
ribbon
-
wrapper
">
</div>
<div class="
title
">
</div>
<div class="
x_content
">
</div>
</div>
</div>
<!-- price element -->
...
...
resources/views/errors/404.blade.php
0 → 100644
View file @
2df78316
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=UTF-8"
>
<!-- Meta, title, CSS, favicons, etc. -->
<meta
charset=
"utf-8"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<title>
TB Silalahi Center
</title>
<!-- Bootstrap -->
<link
href=
"{{asset('../vendors/bootstrap/dist/css/bootstrap.min.css')}}"
rel=
"stylesheet"
>
<!-- Font Awesome -->
<link
href=
"{{asset('../vendors/font-awesome/css/font-awesome.min.css')}}"
rel=
"stylesheet"
>
<!-- NProgress -->
<link
href=
"{{asset('../vendors/nprogress/nprogress.css')}}"
rel=
"stylesheet"
>
<!-- Custom Theme Style -->
<link
href=
"{{asset('../build/css/custom.min.css')}}"
rel=
"stylesheet"
>
</head>
<body
class=
"nav-md"
>
<div
class=
"container body"
>
<div
class=
"main_container"
>
<!-- page content -->
<div
class=
"col-md-12"
>
<div
class=
"col-middle"
>
<div
class=
"text-center text-center"
>
<h1
class=
"error-number"
>
404
</h1>
<h2>
Sorry but we couldn't find this page
</h2>
<p>
This page you are looking for does not exist
</p>
<h1>
Halaman tidak ditemukan
</h1>
</div>
</div>
</div>
<!-- /page content -->
</div>
</div>
<!-- jQuery -->
<script
src=
"{{asset('../vendors/jquery/dist/jquery.min.js')}}"
></script>
<!-- Bootstrap -->
<script
src=
"{{asset('../vendors/bootstrap/dist/js/bootstrap.min.js')}}"
></script>
<!-- FastClick -->
<script
src=
"{{asset('../vendors/fastclick/lib/fastclick.js')}}"
></script>
<!-- NProgress -->
<script
src=
"{{asset('../vendors/nprogress/nprogress.js')}}"
></script>
<!-- Custom Theme Scripts -->
<script
src=
"{{asset('../build/js/custom.min.js')}}"
></script>
</body>
</html>
resources/views/managers/manager_home.blade.php
View file @
2df78316
...
...
@@ -2,48 +2,20 @@
@
extends
(
'layouts.master-manager'
)
@
section
(
'content'
)
<!--
page
content
-->
<
div
class
="
right_col
" role="
main
">
<div class="">
<h4> <a href="
{{
url
(
'/manager'
)}}
" class="
fa
fa
-
home
"> Home</a> </h4>
<div class="
row
top_tiles
">
<div class="
animated
flipInY
col
-
lg
-
3
col
-
md
-
3
col
-
sm
-
6
col
-
xs
-
12
">
<div class="
tile
-
stats
">
<div class="
icon
"><i class="
fa
fa
-
caret
-
square
-
o
-
right
"></i></div>
<div class="
count
">179</div>
<h3>New Sign ups</h3>
<p>Lorem ipsum psdea itgum rixt.</p>
</div>
</div>
<div class="
animated
flipInY
col
-
lg
-
3
col
-
md
-
3
col
-
sm
-
6
col
-
xs
-
12
">
<div class="
tile
-
stats
">
<div class="
icon
"><i class="
fa
fa
-
comments
-
o
"></i></div>
<div class="
count
">179</div>
<h3>New Sign ups</h3>
<p>Lorem ipsum psdea itgum rixt.</p>
<!--
page
content
-->
<
div
class
="
right_col
" role="
main
">
<div class="">
<div class="
page
-
title
">
<div class="
title_left
">
<h4> <a href="
{{
url
(
'/manager'
)}}
" class="
fa
fa
-
home
"> Home</a> </h4>
</div>
</div>
<div class="
animated
flipInY
col
-
lg
-
3
col
-
md
-
3
col
-
sm
-
6
col
-
xs
-
12
">
<div class="
tile
-
stats
">
<div class="
icon
"><i class="
fa
fa
-
sort
-
amount
-
desc
"></i></div>
<div class="
count
">179</div>
<h3>New Sign ups</h3>
<p>Lorem ipsum psdea itgum rixt.</p>
</div>
</div>
<div class="
animated
flipInY
col
-
lg
-
3
col
-
md
-
3
col
-
sm
-
6
col
-
xs
-
12
">
<div class="
tile
-
stats
">
<div class="
icon
"><i class="
fa
fa
-
check
-
square
-
o
"></i></div>
<div class="
count
">179</div>
<h3>New Sign ups</h3>
<p>Lorem ipsum psdea itgum rixt.</p>
</div>
<div class="
clearfix
"></div>
<div class="
row
">
<img src="
{{
asset
(
'img/front.jpg'
)
}}
" style="
height
:
100
%
;
width
:
100
%
;
">
</div>
</div>
</div>
</div>
<!-- /page content -->
<!-- /page content -->
@endsection
@endif
\ No newline at end of file
@endif
resources/views/staffs/staff_home.blade.php
View file @
2df78316
...
...
@@ -12,43 +12,7 @@
</div>
<div class="
clearfix
"></div>
<div class="
row
">
<div class="
col
-
md
-
12
col
-
sm
-
12
col
-
xs
-
12
">
<div class="
x_panel
">
<div class="
x_title
">
<h2>Welcome,
{
{Sentinel::getUser()->first_name}
}
to system</h2>
<div class="
clearfix
"></div>
</div>
<div class="
x_content
">
<ul>
<li>
<h2>Petunjuk Penggunaan System</h2>
<ul>
<li>
<p style="
font
-
size
:
15
pt
">Home : halaman awal sistem</p>
</li>
<li>
<p style="
font
-
size
:
15
pt
">Orders and Transaction</p>
<ul>
<li>
<p style="
font
-
size
:
15
pt
">Data Pemesanan Tiket</p>
</li>
<li>
<p style="
font
-
size
:
15
pt
">Data Tiket Dikonfirmasi</p>
</li>
</ul>
</li>
<li>
<p style="
font
-
size
:
15
pt
">Pengunjung</p>
</li>
<li>
<p style="
font
-
size
:
15
pt
">Member</p>
</li>
</ul>
</li>
</ul>
</div>
</div>
</div>
<img src="
{{
asset
(
'img/front.jpg'
)
}}
" style="
height
:
100
%
;
width
:
100
%
;
">
</div>
</div>
</div>
...
...
routes/web.php
View file @
2df78316
...
...
@@ -17,15 +17,10 @@ Route::group(['middleware' => 'visitors'], function()
Route
::
post
(
'/logout'
,
'LoginController@logout'
);
Route
::
group
([
'middleware'
=>
'admin'
],
function
()
{
Route
::
get
(
'/admin'
,
'AdminController@index'
);
Route
::
resource
(
'/karyawan'
,
'KaryawanController'
);
});
Route
::
group
([
'middleware'
=>
'manager'
],
function
()
{
Route
::
get
(
'/manager'
,
'ManagerController@index'
);
Route
::
get
(
'/'
,
'ManagerController@index'
);
Route
::
get
(
'/penjualan'
,
'ManagerController@penjualan'
);
Route
::
get
(
'/viewpengunjung'
,
'ManagerController@pengunjung'
);
Route
::
get
(
'/viewfeedback'
,
'ManagerController@viewFeedback'
);
...
...
@@ -34,6 +29,7 @@ Route::group(['middleware' => 'manager'], function()
Route
::
group
([
'middleware'
=>
'staff'
],
function
()
{
Route
::
get
(
'/staff'
,
'StaffController@index'
);
Route
::
get
(
'/'
,
'StaffController@index'
);
// Route::resource('/ticket', 'TicketController');
Route
::
get
(
'/pemesanan'
,
'TicketController@datapesanan'
);
Route
::
get
(
'/lunas/{id}'
,
'TicketController@lunas'
);
...
...
@@ -46,6 +42,7 @@ Route::group(['middleware' => 'staff'], function ()
Route
::
group
([
'middleware'
=>
'customer'
],
function
()
{
Route
::
get
(
'/customer'
,
'CustomerController@index'
);
Route
::
get
(
'/'
,
'CustomerController@index'
);
Route
::
resource
(
'/ticket'
,
'TicketController'
);
Route
::
get
(
'/ticket/beli/{id}'
,
'TicketController@beli'
);
Route
::
post
(
'/ticket/beli'
,
'TicketController@storeorder'
);
...
...
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