Commit 71ac3c12 by rizky

routing, blade

parent f8696d96
......@@ -5,6 +5,7 @@ namespace App\Http\Controllers;
use Validator;
use Illuminate\Http\Request;
use Sentinel;
use App\User;
class RegistrationController extends Controller
{
......@@ -15,6 +16,11 @@ class RegistrationController extends Controller
public function postRegister(Request $request)
{
$this->validate($request, [
'first_name' => 'required|max:255',
'last_name' => 'required|max:255',
'password' => 'confirmed|required|min:6',
]);
$user = Sentinel::registerAndActivate($request->all());
......@@ -22,17 +28,7 @@ class RegistrationController extends Controller
$role->users()->attach($user);
return redirect('/login');
}
return redirect('/login')->with('alert-success', 'Akun anda telah terdaftar. Silahkan login.');
protected function validator(array $data)
{
return Validator::make($data, [
'first_name' => 'required|max:255',
'name' => 'required|max:255',
'last_name' => 'required|max:255',
'email' => 'required|email|max:255|unique:users',
'password' => 'required|min:6|confirmed',
]);
}
}
......@@ -4,17 +4,19 @@
<body class="login">
<div>
<a class="hiddenanchor" id="signup"></a>
<a class="hiddenanchor" id="signin"></a>
<div class="login_wrapper">
<div class="animate form login_form">
<section class="login_content">
<form action="/login" method="POST">
<form action="{{url('/login')}}" method="POST">
{{csrf_field()}}
<h1>Login Form</h1>
@if(Session::has('alert-success'))
<div class="alert alert-success">
{{ Session::get('alert-success') }}
</div>
@endif
@if (session('error'))
<div class="alert alert-danger">
{{ session('error') }}
......@@ -38,62 +40,15 @@
<div class="separator">
<p class="change_link">New to site?
<a href="#signup" class="to_register"> Create Account </a>
</p>
<div class="clearfix"></div>
<br />
<div>
<a href="/"><h1><i class="fa fa-paw"></i> TB Silalahi Center</h1></a>
<p>©2017 All Rights Reserved. Privacy and Terms</p>
</div>
</div>
</form>
</section>
</div>
<div id="register" class="animate form registration_form">
<section class="login_content">
<form action="/register" method="POST">
{{csrf_field()}}
<h1>Create Account</h1>
<div>
<input type="text" name="first_name" class="form-control" placeholder="First Name" required="" />
</div>
<div>
<input type="text" name="last_name" class="form-control" placeholder="Last Name" required="" />
</div>
<div>
<input type="email" name="email" class="form-control" placeholder="example@example.com" required="" />
</div>
<div>
<input type="password" name="password" class="form-control" placeholder="Password" required="" />
</div>
<div>
<input type="password" name="password_confirmation" class="form-control" placeholder="Password Confirmation" required="" />
</div>
<div class="form-group">
<input type="submit" value="Register" class="btn btn-success pull-right" >
</div>
<div class="clearfix"></div>
<div class="separator">
<p class="change_link">Already a member ?
<a href="#signin" class="to_register"> Log in </a>
<a href="{{url('/register')}}" class="to_register"> Create Account </a>
</p>
<div class="clearfix"></div>
<br />
<div>
<a href="/"><h1><i class="fa fa-paw"></i> TB Silalahi Center</h1></a>
<p>©2017 All Rights Reserved. Privacy and Terms</p>
<a href="{{url('/')}}"><h1><i class="fa fa-paw"></i> TB Silalahi Center</h1></a>
<p>Copyright © 2017 - All Rights Reserved. Privacy and Terms</p>
</div>
</div>
</form>
......
......@@ -3,53 +3,63 @@
<body class="login">
<div>
<div class="login_wrapper">
{{--<div id="register" class="animate form registration_form">--}}
<section class="login_content">
<form action="/register" method="POST">
{{csrf_field()}}
<h1>Create Account</h1>
<div>
<input type="text" name="first_name" class="form-control" placeholder="First Name" required="" />
<section class="login_content">
<form action="{{url('/register')}}" method="POST">
<h1>Create Account</h1>
@if (count($errors)>0)
<div class="alert alert-danger">
<ul>
@foreach($errors->all() as $error)
<li>
{{$error}}
</li>
@endforeach
</ul>
</div>
@endif
{{csrf_field()}}
<div>
<input type="text" name="last_name" class="form-control" placeholder="Last Name" required="" />
</div>
<div>
<input type="text" name="first_name" class="form-control" placeholder="First Name" required="" />
</div>
<div>
<input type="email" name="email" class="form-control" placeholder="email@email.com" required="" />
</div>
<div>
<input type="password" name="password" class="form-control" placeholder="Password" required="" />
</div>
<div>
<input type="text" name="last_name" class="form-control" placeholder="Last Name" required="" />
</div>
<div>
<input type="password" name="password_confirmation" class="form-control" placeholder="Password Confirmation" required="" />
</div>
<div>
<input type="email" name="email" class="form-control" placeholder="email@email.com" required="" />
</div>
<div>
<input type="password" name="password" class="form-control" placeholder="Password" required="required">
</div>
<div class="form-group">
<input type="submit" value="Register" class="btn btn-success pull-right" >
</div>
<div>
<input type="password" name="password_confirmation" class="form-control" placeholder="Password Confirmation" required="required">
</div>
<div class="clearfix"></div>
<div class="form-group">
<input type="submit" value="Register" class="btn btn-success pull-right" >
</div>
<div class="separator">
<p class="change_link">Already a member ?
<a href="/login" class="to_register"> Log in </a>
</p>
<div class="clearfix"></div>
<div class="clearfix"></div>
<br />
<div class="separator">
<p class="change_link">Already a member ?
<a href="{{url('/register')}}" class="to_register"> Log in </a>
</p>
<div>
<a href="/"><h1><i class="fa fa-paw"></i> TB Silalahi Center</h1></a>
<p>©2017 All Rights Reserved. Privacy and Terms</p>
</div>
<div class="clearfix"></div>
<br />
<div>
<a href="{{url('/')}}"><h1><i class="fa fa-paw"></i> TB Silalahi Center</h1></a>
<p>Copyright © 2017 - All Rights Reserved. Privacy and Terms</p>
</div>
</form>
</section>
</div>
{{--</div>--}}
</div>
</form>
</section>
</div>
</div>
</body>
@endsection
......
......@@ -7,7 +7,7 @@
<div class="">
<div class="page-title">
<div class="title_left">
<h4> <a href="/customer" class="fa fa-home"> Home</a> / <a href="/feedback"> Feedback</a> </h4>
<h4> <a href="{{url('/customer')}}" class="fa fa-home"> Home</a> / <a href="{{url('/feedback')}}"> Feedback</a> </h4>
</div>
</div>
<div class="clearfix"></div>
......@@ -36,54 +36,55 @@
@if(!empty($errors->first()))
<div class='alert alert-warning'>{!! $errors->first() !!}</div>
@endif
<form action="{{url('/feedback/store')}}" method="post" data-parsley-validate class="form-horizontal form-label-left">
{{csrf_field()}}
<form action="{{url('/feedback/store')}}" method="post" data-parsley-validate class="form-horizontal form-label-left">
{{csrf_field()}}
<div class="form-group{{ $errors->has('user_id') ? ' has-error' : '' }}">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name" required >User ID
</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input type="text" name="user_id" value="{{Sentinel::getUser()->id}}" class="form-control col-md-7 col-xs-12" readonly>
{!! $errors->first('user_id', '<p class="help-block">:message</p>') !!}
<div class="form-group{{ $errors->has('user_id') ? ' has-error' : '' }}">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name" required >User ID
</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input type="text" name="user_id" value="{{Sentinel::getUser()->id}}" class="form-control col-md-7 col-xs-12" readonly>
{!! $errors->first('user_id', '<p class="help-block">:message</p>') !!}
</div>
</div>
</div>
<div class="form-group{{ $errors->has('first_name') ? ' has-error' : '' }}">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name" required >Customer Name
</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input type="text" name="first_name" value="{{Sentinel::getUser()->first_name}}" class="form-control col-md-7 col-xs-12" readonly>
{!! $errors->first('first_name', '<p class="help-block">:message</p>') !!}
<div class="form-group{{ $errors->has('first_name') ? ' has-error' : '' }}">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name" required >Customer Name
</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input type="text" name="first_name" value="{{Sentinel::getUser()->first_name}}" class="form-control col-md-7 col-xs-12" readonly>
{!! $errors->first('first_name', '<p class="help-block">:message</p>') !!}
</div>
</div>
</div>
<div class="form-group{{ $errors->has('subjects') ? ' has-error' : '' }}">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name" required >Subjects
<span class="required">*</span>
</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input type="text" name="subjects" required="required" class="form-control col-md-7 col-xs-12">
{!! $errors->first('subjects', '<p class="help-block">:message</p>') !!}
<div class="form-group{{ $errors->has('subjects') ? ' has-error' : '' }}">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name" required >Subjects
<span class="required">*</span>
</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input type="text" name="subjects" required="required" class="form-control col-md-7 col-xs-12">
{!! $errors->first('subjects', '<p class="help-block">:message</p>') !!}
</div>
</div>
</div>
<div class="form-group{{ $errors->has('description') ? ' has-error' : '' }}">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name" required >Description
<span class="required">*</span>
</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<textarea id="textarea" name="description" required="required" class="form-control col-md-7 col-xs-12"></textarea>
{!! $errors->first('description', '<p class="help-block">:message</p>') !!}
<div class="form-group{{ $errors->has('description') ? ' has-error' : '' }}">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name" required >Description
<span class="required">*</span>
</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<textarea id="textarea" name="description" required="required" class="form-control col-md-7 col-xs-12"></textarea>
{!! $errors->first('description', '<p class="help-block">:message</p>') !!}
</div>
</div>
</div>
<div class="ln_solid"></div>
<div class="form-group">
<div class="col-md-6 col-sm-6 col-xs-12 col-md-offset-3">
<button class="btn btn-primary" type="reset">Reset</button>
<button type="submit" class="btn btn-success">Kirim</button>
<div class="ln_solid"></div>
<div class="form-group">
<div class="col-md-6 col-sm-6 col-xs-12 col-md-offset-3">
<button class="btn btn-primary" type="reset">Reset</button>
<button type="submit" class="btn btn-success">Kirim</button>
</div>
</div>
</div>
</form>
</form>
</div>
</div>
......
......@@ -6,7 +6,7 @@
<div class="">
<div class="page-title">
<div class="title_left">
<h4><a href="/customer" class="fa fa-home"> Home</a> / <a href="#"> Beli</a></h4>
<h4><a href="{{url('/customer')}}" class="fa fa-home"> Home</a> / <a href="#"> Beli</a></h4>
</div>
</div>
......@@ -15,7 +15,7 @@
<div class="col-md-12 col-sm-12 col-xs-12">
<div class="x_panel">
<div class="x_title">
<h2>Hover rows <small>Try hovering over the rows</small></h2>
<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>
......@@ -36,12 +36,12 @@
<input type="text" value="{{$tickets->id}}" class="form-control" name="id_ticket" readonly>
<label class="col-md-4 control-label">Nama Ticket</label>
<input type="text" value="{{$tickets->name}}" class="form-control" name="nama" readonly>
<label class="col-md-4 control-label">Harga</label>
<label class="col-md-4 control-label">Harga (IDR)</label>
<input type="number" value="{{$tickets->price}}" class="form-control" name="harga" readonly>
<label class="col-md-4 control-label">Jumlah</label>
<input type="number" onkeyup="Harga(this.value)" min="1" class="form-control" name="jumlah" required>
<label class="col-md-4 control-label">Total Harga (Rp)</label><br>
<span class="form-control" id="total"></span><br>
<input type="number" onkeyup="Harga(this.value)" min="1" class="form-control" name="jumlah" placeholder="masukkan jumlah tiket yang ingin dipesan" required>
<label class="col-md-4 control-label">Total Harga (IDR)</label><br>
<span class="form-control" id="total" readonly></span><br>
<button type="submit" class="btn btn-primary" onclick="return confirm('Continue Order??')">Order</button>
</form>
<script>function Harga(str)
......
......@@ -7,7 +7,7 @@
<div class="">
<div class="page-title">
<div class="title_left">
<h4> <a href="/customer" class="fa fa-home"> Home</a> / <a href="/data_konfirmasi"> Data Pemesanan Dikonfirmasi</a> </h4>
<h4> <a href="{{url('/customer')}}" class="fa fa-home"> Home</a> / <a href="{{url('/data_konfirmasi')}}"> Data Pemesanan Dikonfirmasi</a> </h4>
</div>
</div>
......
......@@ -6,7 +6,7 @@
<div class="">
<div class="page-title">
<div class="title_left">
<h4> <a href="/customer" class="fa fa-home"> Home</a> / <a href="/data_order"> Data Pemesanan Tiket</a> </h4>
<h4> <a href="{{url('/customer')}}" class="fa fa-home"> Home</a> / <a href="{{url('/data_order')}}"> Data Pemesanan Tiket</a> </h4>
</div>
</div>
......
......@@ -8,13 +8,15 @@
<div class="">
<div class="page-title">
<div class="title_left">
<h4> <a href="/customer" class="fa fa-home"> Home</a> / <a href="/ticket"> Ticket</a> </h4>
<h4> <a href="{{url('/customer')}}" class="fa fa-home"> Home</a> / <a href="{{url('/ticket')}}"> Order Ticket</a> </h4>
</div>
</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">
......@@ -22,48 +24,74 @@
<div class="clearfix"></div>
</div>
<div class="x_content">
@if(Session::has('alert-success'))
<div class="alert alert-success">
{{ Session::get('alert-success') }}
</div>
@endif
{{--<a href="{{route('ticket.create')}}" class="btn btn-info pull-right">Add New Menu</a><br><br>--}}
<table class="table table-hover">
<thead>
<tr>
<th>#</th>
<th></th>
<th>Price</th>
<th></th>
<th>Action</th>
</tr>
</thead>
<tbody>
<?php $no=1; ?>
@foreach($tickets as $ticket)
<tr>
<td>{{$no++}}</td>
<td>{{$ticket->name}}</td>
<td>Rp{{$ticket->price}},-</td>
<td><img src="{{ asset('image/'. $ticket->images) }}" style="height: 150px; width: 200px; "> </td>
{{--<td>--}}
{{--<form method="POST" action="{{ route('ticket.destroy', $ticket->id) }}" accept-charset="UTF-8">--}}
{{--<input name="_method" type="hidden" value="Delete">--}}
{{--<input name="_token" type="hidden" value="{{ csrf_token() }}">--}}
{{--<a href="{{route('ticket.edit', $ticket->id)}}" class="btn btn-primary">Edit</a>--}}
{{--<input type="submit" class="btn btn-danger" onclick="return confirm('Continue To Delete?');" value="Delete">--}}
{{--</form>--}}
{{--</td>--}}
<td>
<form method="POST" action="{{ route('ticket.store', $ticket->id) }}" accept-charset="UTF-8">
<a href="{{url('/ticket/beli',$ticket->id)}}" class="btn btn-primary" >Order</a>
</form>
</td>
</tr>
@endforeach
</tbody>
</table>
<!-- 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 -->
<!-- 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 class="ui-ribbon">
Available
</div>
</div>
@foreach($tickets as $ticket)
<div class="title">
<h2>{{$ticket->name}}</h2>
<h1>IDR{{$ticket->price}}</h1>
<span>Once</span>
</div>
<div class="x_content">
<div class="">
<div class="pricing_features">
<ul class="list-unstyled text-left">
<img src="{{ asset('image/'. $ticket->images) }}" style="height: 100%; width: 100%; ">
<li><i class="fa fa-check text-success"></i> One day enjoy<strong> in museum</strong></li>
</ul>
</div>
</div>
<div class="pricing_footer">
<form method="POST" action="{{ route('ticket.store', $ticket->id) }}" accept-charset="UTF-8">
<a href="{{url('/ticket/beli',$ticket->id)}}" class="btn btn-primary btn-block" >Order Now</a>
</form>
</div>
</div>
@endforeach
</div>
</div>
<!-- price element -->
<!-- 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 -->
{{--<a href="{{route('ticket.create')}}" class="btn btn-info pull-right">Add New Menu</a><br><br>--}}
</div>
</div>
</div>
......
......@@ -5,7 +5,7 @@
<div class="">
<div class="page-title">
<div class="title_left">
<h4> <a href="/customer" class="fa fa-home"> Home</a> / <a href="#"> Upload</a> </h4>
<h4> <a href="{{url('/customer')}}" class="fa fa-home"> Home</a> / <a href="#"> Upload</a> </h4>
</div>
</div>
......
......@@ -37,7 +37,7 @@
<div class="col-md-3 left_col">
<div class="left_col scroll-view">
<div class="navbar nav_title" style="border: 0;">
<a href="/customer" class="site_title"><i class="fa fa-paw"></i> <span>TBS Center</span></a>
<a href="{{url('/customer')}}" class="site_title"><i class="fa fa-paw"></i> <span>TBS Center</span></a>
</div>
<div class="clearfix"></div>
......@@ -66,19 +66,18 @@
<li><a><i class="fa fa-table"></i> Order Tiket <span class="fa fa-chevron-down"></span></a>
<ul class="nav child_menu">
<li><a href="/ticket">Pesan Tiket</a></li>
<li><a href="/data_order">Data Pemesanan</a></li>
<li><a href="/data_konfirmasi">Data Pemesanan Dikonfirmasi</a></li>
<li><a href="{{url('/ticket')}}">Pesan Tiket</a></li>
<li><a href="{{url('/data_order')}}">Data Pemesanan</a></li>
<li><a href="{{url('/data_konfirmasi')}}">Data Pemesanan Dikonfirmasi</a></li>
</ul>
</li>
<li><a><i class="fa fa-comments-o"></i> Feedback <span class="fa fa-chevron-down"></span></a>
<ul class="nav child_menu">
<li><a href="/feedback"> Give Feedback</a></li>
<li><a href="{{url('/feedback')}}"> Give Feedback</a></li>
</ul>
</li>
</ul>
</div>
</div>
......@@ -122,7 +121,7 @@
<a href="#" class="fa fa-lock"> Change Password</a>
</li>
<li>
<form action="/logout" method="POST" id="logout-form">
<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>
......@@ -140,7 +139,7 @@
<!-- footer content -->
<footer>
<div class="pull-right">
Copyright @ TB Silalahi Center 2017
Copyright © 2017 - TB Silalahi Center
</div>
<div class="clearfix"></div>
</footer>
......
......@@ -37,7 +37,7 @@
<div class="col-md-3 left_col">
<div class="left_col scroll-view">
<div class="navbar nav_title" style="border: 0;">
<a href="/manager" class="site_title"><i class="fa fa-paw"></i> <span>TBS Center</span></a>
<a href="{{url('/manager')}}" class="site_title"><i class="fa fa-paw"></i> <span>TBS Center</span></a>
</div>
<div class="clearfix"></div>
......@@ -61,19 +61,19 @@
<div class="menu_section">
<h3>General</h3>
<ul class="nav side-menu">
<li><a href="/manager"><i class="fa fa-home"></i> Home </a>
<li><a href="{{url('/manager')}}"><i class="fa fa-home"></i> Home </a>
</li>
<li><a><i class="fa fa-table"></i> Laporan <span class="fa fa-chevron-down"></span></a>
<ul class="nav child_menu">
<li><a href="/penjualan">Data Penjualan Tiket</a></li>
<li><a href="/viewpengunjung">Daftar Pengunjung</a></li>
<li><a href="{{url('/penjualan')}}">Data Penjualan Tiket</a></li>
<li><a href="{{url('/viewpengunjung')}}">Daftar Pengunjung</a></li>
</ul>
</li>
<li><a><i class="fa fa-edit"></i> Feedback <span class="fa fa-chevron-down"></span></a>
<ul class="nav child_menu">
<li><a href="/viewfeedback">Daftar Feedback</a></li>
<li><a href="{{url('/viewfeedback')}}">Daftar Feedback</a></li>
</ul>
</li>
......@@ -118,7 +118,7 @@
<ul class="dropdown-menu dropdown-usermenu pull-right">
<li><a href="#" class="fa fa-lock"> Change Password</a></li>
<li>
<form action="/logout" method="POST" id="logout-form">
<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>
......@@ -136,7 +136,7 @@
<!-- footer content -->
<footer>
<div class="pull-right">
Copyright @ TB Silalahi Center 2017
Copyright © 2017 - TB Silalahi Center
</div>
<div class="clearfix"></div>
</footer>
......
......@@ -37,7 +37,7 @@
<div class="col-md-3 left_col">
<div class="left_col scroll-view">
<div class="navbar nav_title" style="border: 0;">
<a href="/staff" class="site_title"><i class="fa fa-paw"></i> <span>TBS Center</span></a>
<a href="{{url('/staff')}}" class="site_title"><i class="fa fa-paw"></i> <span>TBS Center</span></a>
</div>
<div class="clearfix"></div>
......@@ -61,25 +61,25 @@
<div class="menu_section">
<h3>General</h3>
<ul class="nav side-menu">
<li><a href="/staff"><i class="fa fa-home"></i> Home </a>
<li><a href="{{url('/staff')}}"><i class="fa fa-home"></i> Home </a>
</li>
<li><a><i class="fa fa-table"></i> Orders & Transaction <span class="fa fa-chevron-down"></span></a>
<ul class="nav child_menu">
<li><a href="/pemesanan">Data Pemesanan Tiket</a></li>
<li><a href="/data_transaksi">Data Tiket dikonfirmasi</a></li>
<li><a href="{{url('/pemesanan')}}">Data Pemesanan Tiket</a></li>
<li><a href="{{url('/data_transaksi')}}">Data Tiket dikonfirmasi</a></li>
</ul>
</li>
<li><a><i class="fa fa-bar-chart-o"></i> Pengunjung <span class="fa fa-chevron-down"></span></a>
<ul class="nav child_menu">
<li><a href="/pengunjung">Input Data Pengunjung</a></li>
<li><a href="{{url('/pengunjung')}}">Input Data Pengunjung</a></li>
</ul>
</li>
<li><a><i class="fa fa-user"></i> Member <span class="fa fa-chevron-down"></span></a>
<ul class="nav child_menu">
<li><a href="/member">View Member</a></li>
<li><a href="{{url('/member')}}">View Member</a></li>
</ul>
</li>
</ul>
......@@ -123,7 +123,7 @@
<ul class="dropdown-menu dropdown-usermenu pull-right">
<li><a href="" class="fa fa-lock"> Change Password</a></li>
<li>
<form action="/logout" method="POST" id="logout-form">
<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>
......@@ -141,7 +141,7 @@
<!-- footer content -->
<footer>
<div class="pull-right">
Copyright @ TB Silalahi Center 2017
Copyright © 2017 - TB Silalahi Center
</div>
<div class="clearfix"></div>
</footer>
......
......@@ -11,33 +11,20 @@
<!-- 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="#about">About</a>
</li>
<li>
<a class="page-scroll" href="#services">Services</a>
</li>
<li>
<a class="page-scroll" href="#portfolio">Portfolio</a>
</li>
<li>
<a class="page-scroll" href="#contact">Contact</a>
</li>
-->
@if(Sentinel::check())
<li role="presentation">
<form action="/logout" method="POST" id="logout-form">
<form action="{{url('/logout')}}" method="POST" id="logout-form">
{{ csrf_field() }}
<a href="#" onclick="document.getElementById('logout-form').submit()">Logout</a>
</form>
</li>
@else
<li>
<a class="page-scroll" href="/login">Login</a>
<a class="page-scroll" href="{{url('/login')}}">Login</a>
</li>
<li role="presentation">
<a class="page-scroll" href="/register">Register</a>
<a class="page-scroll" href="{{url('/register')}}">Register</a>
</li>
@endif
......@@ -46,29 +33,4 @@
<!-- /.navbar-collapse -->
</div>
<!-- /.container-fluid -->
</nav>
{{--<!-- <div class="header clearfix">--}}
{{--<nav>--}}
{{--<ul class="nav nav-pills pull-right">--}}
{{--@if(Sentinel::check())--}}
{{--<li role="presentation">--}}
{{--<form action="/logout" method="POST" id="logout-form">--}}
{{--{{ csrf_field() }}--}}
{{--<a href="#" onclick="document.getElementById('logout-form').submit()">Logout</a>--}}
{{--</form>--}}
{{--</li>--}}
{{--@else--}}
{{--<li role="presentation"><a href="/login">Login</a></li>--}}
{{--<li role="presentation"><a href="/register">Register</a></li>--}}
{{--@endif--}}
{{--</ul>--}}
{{--</nav>--}}
{{--<h3 class="text-muted">--}}
{{--@if(Sentinel::check())--}}
{{--Hello, {{Sentinel::getUser()->first_name }}--}}
{{--@else--}}
{{--Authentication--}}
{{--@endif--}}
{{--</h3>--}}
{{--</div> -->--}}
\ No newline at end of file
</nav>
\ No newline at end of file
......@@ -7,7 +7,7 @@
<div class="">
<div class="page-title">
<div class="title_left">
<h4> <a href="/manager" class="fa fa-home"> Home</a> / <a href="/viewfeedback"> Feedback</a> </h4>
<h4> <a href="{{url('/manager')}}" class="fa fa-home"> Home</a> / <a href="{{url('/viewfeedback')}}"> Feedback</a> </h4>
</div>
</div>
......
......@@ -7,7 +7,7 @@
<div class="">
<div class="page-title">
<div class="title_left">
<h4> <a href="/manager" class="fa fa-home"> Home</a> / <a href="/penjualan">Data Penjualan Tiket</a> </h4>
<h4> <a href="{{url('/manager')}}" class="fa fa-home"> Home</a> / <a href="{{url('/penjualan')}}">Data Penjualan Tiket</a> </h4>
</div>
</div>
......
......@@ -5,7 +5,7 @@
<!-- page content -->
<div class="right_col" role="main">
<div class="">
<h4> <a href="/manager" class="fa fa-home"> Home</a> </h4>
<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">
......
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<title>TB Silalahi Center</title>
<!-- Bootstrap Core CSS -->
<link href="../vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<!-- MetisMenu CSS -->
<link href="../vendor/metisMenu/metisMenu.min.css" rel="stylesheet">
<!-- DataTables CSS -->
<link href="../vendor/datatables-plugins/dataTables.bootstrap.css" rel="stylesheet">
<!-- DataTables Responsive CSS -->
<link href="../vendor/datatables-responsive/dataTables.responsive.css" rel="stylesheet">
<!-- Custom CSS -->
<link href="../dist/css/sb-admin-2.css" rel="stylesheet">
<!-- Custom Fonts -->
<link href="../vendor/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div id="wrapper">
<!-- Navigation -->
<nav class="navbar navbar-default navbar-static-top" role="navigation" style="margin-bottom: 0">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="/admin">TB Silalahi Center</a>
</div>
<!-- /.navbar-header -->
<ul class="nav navbar-top-links navbar-right">
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
<i class="fa fa-user fa-fw"></i> <i class="fa fa-caret-down"></i>
</a>
<ul class="dropdown-menu dropdown-user">
<li><a href="#"><i class="fa fa-user fa-fw"></i> User Profile</a>
</li>
<li><a href="#"><i class="fa fa-gear fa-fw"></i> Settings</a>
</li>
<li class="divider"></li>
<li><a href="/logout"><i class="fa fa-sign-out fa-fw"></i> Logout</a>
<form action="/logout" method="POST" id="logout-form">
{{ csrf_field() }}
<a href="#" onclick="document.getElementById('logout-form').submit()">Logout</a>
</form>
</li>
</ul>
<!-- /.dropdown-user -->
</li>
<!-- /.dropdown -->
</ul>
<!-- /.navbar-top-links -->
<div class="navbar-default sidebar" role="navigation">
<div class="sidebar-nav navbar-collapse">
<ul class="nav" id="side-menu">
<li class="sidebar-search">
<div class="input-group custom-search-form">
<input type="text" class="form-control" placeholder="Search...">
<span class="input-group-btn">
<button class="btn btn-default" type="button">
<i class="fa fa-search"></i>
</button>
</span>
</div>
<!-- /input-group -->
</li>
<li>
<a href="/manager"><i class="fa fa-dashboard fa-fw"></i> Dashboard</a>
</li>
<li>
<a href="/pegawai"><i class="fa fa-table fa-fw"></i> Data Pegawai</a>
</li>
<li>
<a href="#"><i class="fa fa-edit fa-fw"></i> Form Feedback</a>
</li>
<li>
<a href="#"><i class="fa fa-bar-chart-o fa-fw"></i> Laporan<span class="fa arrow"></span></a>
<ul class="nav nav-second-level">
<li>
<a href="#">Statistik Pengunjung</a>
</li>
<li>
<a href="#">Laporan Pengunjung</a>
</li>
</ul>
<!-- /.nav-second-level -->
</li>
</ul>
</div>
<!-- /.sidebar-collapse -->
</div>
<!-- /.navbar-static-side -->
</nav>
<div id="page-wrapper">
<div class="row">
<div class="col-lg-12">
<h1 class="page-header">Data Pegawai</h1>
</div>
<!-- /.col-lg-12 -->
</div>
<!-- /.row -->
<div class="row">
<div class="col-lg-12">
<div class="panel panel-default">
<div class="panel-heading">
Daftar data pegawai TB Silalahi Center
</div>
<!-- /.panel-heading -->
<div class="panel-body">
<div class="col-md-12 col-md-offset-0">
@if (Session::has('pesan_sukses'))
<div class="alert alert-success">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{ Session::get('pesan_sukses') }}
</div>
@elseif (Session::has('pesan_gagal'))
<div class="alert alert-danger">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{ Session::get('pesan_gagal') }}
</div>
@endif
<table width="100%" class="table table-striped table-bordered table-hover" id="dataTables-example">
<thead>
<?php $count = 1; ?>
<tr>
<th>No</th>
<th>Nama</th>
<th>Pekerjaan(s)</th>
<th>Nomor telepon</th>
</tr>
</thead>
<tbody>
@foreach($karyawans as $karyawans)
<tr>
<td>{!! $count++ !!}</td>
<td>{!! $karyawans->nama !!}</td>
<td>{!! $karyawans->pekerjaan !!}</td>
<td>{!! $karyawans->notlp !!}</td>
</tr>
@endforeach
</tbody>
</table>
<!-- /.table-responsive -->
</div>
<!-- /.panel-body -->
</div>
<!-- /.panel -->
</div>
<!-- /.col-lg-12 -->
</div>
<!-- /.row -->
</div>
<!-- /#wrapper -->
<!-- jQuery -->
<script src="../vendor/jquery/jquery.min.js"></script>
<!-- Bootstrap Core JavaScript -->
<script src="../vendor/bootstrap/js/bootstrap.min.js"></script>
<!-- Metis Menu Plugin JavaScript -->
<script src="../vendor/metisMenu/metisMenu.min.js"></script>
<!-- DataTables JavaScript -->
<script src="../vendor/datatables/js/jquery.dataTables.min.js"></script>
<script src="../vendor/datatables-plugins/dataTables.bootstrap.min.js"></script>
<script src="../vendor/datatables-responsive/dataTables.responsive.js"></script>
<!-- Custom Theme JavaScript -->
<script src="../dist/js/sb-admin-2.js"></script>
<!-- Page-Level Demo Scripts - Tables - Use for reference -->
<script>
$(document).ready(function() {
$('#dataTables-example').DataTable({
responsive: true
});
});
</script>
</div>
</div>
</body>
......@@ -7,7 +7,7 @@
<div class="">
<div class="page-title">
<div class="title_left">
<h4> <a href="/manager" class="fa fa-home"> Home</a> / <a href="/viewpengunjung">Daftar Pengunjung</a> </h4>
<h4> <a href="{{url('/manager')}}" class="fa fa-home"> Home</a> / <a href="{{url('/viewpengunjung')}}">Daftar Pengunjung</a> </h4>
</div>
</div>
......
......@@ -7,7 +7,7 @@
<div class="">
<div class="page-title">
<div class="title_left">
<h4> <a href="/staff" class="fa fa-home"> Home</a> / <a href="/member"> Member</a> </h4>
<h4> <a href="{{url('/staff')}}" class="fa fa-home"> Home</a> / <a href="{{url('/member')}}"> Member</a> </h4>
</div>
</div>
......
......@@ -7,7 +7,7 @@
<div class="">
<div class="page-title">
<div class="title_left">
<h4> <a href="/staff" class="fa fa-home"> Home</a> / <a href="/pemesanan"> Pemesanan</a> </h4>
<h4> <a href="{{url('/staff')}}" class="fa fa-home"> Home</a> / <a href="{{url('/pemesanan')}}"> Pemesanan</a> </h4>
</div>
</div>
......
......@@ -6,7 +6,7 @@
<div class="">
<div class="page-title">
<div class="title_left">
<h4> <a href="/staff" class="fa fa-home"> Home</a> / <a href="/data_transaksi">Data Transaksi</a> </h4>
<h4> <a href="{{url('/staff')}}" class="fa fa-home"> Home</a> / <a href="{{url('/data_transaksi')}}">Data Transaksi</a> </h4>
</div>
</div>
......
<?php
/**
* Created by PhpStorm.
* User: totapetro
* Date: 5/20/2017
* Time: 2:13 PM
*/
\ No newline at end of file
......@@ -6,7 +6,7 @@
<div class="">
<div class="page-title">
<div class="title_left">
<h4> <a href="/staff" class="fa fa-home"> Home</a> / <a href="/pengunjung">Data Pengunjung </a> </h4>
<h4> <a href="{{url('/staff')}}" class="fa fa-home"> Home</a> / <a href="{{url('/pengunjung')}}">Data Pengunjung </a> </h4>
</div>
</div>
......@@ -48,7 +48,7 @@
</div>
</div>
<div class="form-group{{ah $errors->has('juml') ? ' has-error' : '' }}">
<div class="form-group{{ $errors->has('jumlah') ? ' has-error' : '' }}">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name">Jumlah Tiket<span class="required">*</span>
</label>
<div class="col-md-6 col-sm-6 col-xs-12">
......
@if(Sentinel::check())
@extends('layouts.master-customer')
@extends('layouts.master-staff')
@section('content')
<!-- page content -->
<div class="right_col" role="main">
<div class="">
<div class="page-title">
<div class="title_left">
<h4> <a href="/customer" class="fa fa-home"> Home</a> </h4>
<h4> <a href="{{url('/staff')}}" class="fa fa-home"> Home</a> </h4>
</div>
</div>
<div class="clearfix"></div>
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
......@@ -30,7 +27,21 @@
<p style="font-size: 15pt">Home : halaman awal sistem</p>
</li>
<li>
<p style="font-size: 15pt">Order Tiket</p>
<p style="font-size: 15pt">Orders and Transaction</p>
<ul>
<li>
<p style="font-size: 15pt">Data Pemesanan Tiket</p>
</li>
<li>
<p style="font-size: 15pt">Data Tiket Dikonfirmasi</p>
</li>
</ul>
</li>
<li>
<p style="font-size: 15pt">Pengunjung</p>
</li>
<li>
<p style="font-size: 15pt">Member</p>
</li>
</ul>
</li>
......@@ -43,4 +54,4 @@
</div>
<!-- /page content -->
@endsection
@endif
\ No newline at end of file
@endif
<?php
Route::get('/', function () {
return view('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