Commit 6c6d71c9 by rizky

route, blade, fungsi

parent 6853e78e
/node_modules
/public/storage
/vendor
/.idea
Homestead.json
Homestead.yaml
......
......@@ -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,9 +4,6 @@
<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">
......@@ -15,6 +12,11 @@
<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="{{url('/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,11 +3,22 @@
<body class="login">
<div>
<div class="login_wrapper">
{{--<div id="register" class="animate form registration_form">--}}
<section class="login_content">
<form action="{{url('/register')}}" method="POST">
{{csrf_field()}}
<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="first_name" class="form-control" placeholder="First Name" required="" />
</div>
......@@ -20,11 +31,11 @@
<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="" />
<input type="password" name="password" class="form-control" placeholder="Password" required="required">
</div>
<div>
<input type="password" name="password_confirmation" class="form-control" placeholder="Password Confirmation" required="" />
<input type="password" name="password_confirmation" class="form-control" placeholder="Password Confirmation" required="required">
</div>
<div class="form-group">
......@@ -35,7 +46,7 @@
<div class="separator">
<p class="change_link">Already a member ?
<a href="{{url('/login')}}" class="to_register"> Log in </a>
<a href="{{url('/register')}}" class="to_register"> Log in </a>
</p>
<div class="clearfix"></div>
......@@ -43,13 +54,12 @@
<div>
<a href="{{url('/')}}"><h1><i class="fa fa-paw"></i> TB Silalahi Center</h1></a>
<p>©2017 All Rights Reserved. Privacy and Terms</p>
<p>Copyright © 2017 - All Rights Reserved. Privacy and Terms</p>
</div>
</div>
</form>
</section>
</div>
{{--</div>--}}
</div>
</body>
@endsection
......
......@@ -7,7 +7,7 @@
<div class="">
<div class="page-title">
<div class="title_left">
<h4> <a href="{{url('/staff')}}" class="fa fa-home"> Home</a> </h4>
<h4> <a href="{{url('/customer')}}" class="fa fa-home"> Home</a> </h4>
</div>
</div>
......
......@@ -85,6 +85,7 @@
</div>
</div>
</form>
</form>
</div>
</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)
......
......@@ -15,7 +15,7 @@
<div class="clearfix"></div>
<div class="row"><CENTER>
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
<div class="x_panel">
......@@ -32,7 +32,20 @@
@endif
<!-- price element -->
<div class="col-md-3 col-sm-6 col-xs-12">
<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">
......@@ -49,14 +62,14 @@
<div class="">
<div class="pricing_features">
<ul class="list-unstyled text-left">
<img src="{{ asset('image/'. $ticket->images) }}" style="height: 150px; width: 350px; ">
<li><i class="fa fa-check text-success"></i> One day enjoy<strong> museum</strong></li>
<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</a>
<a href="{{url('/ticket/beli',$ticket->id)}}" class="btn btn-primary btn-block" >Order Now</a>
</form>
</div>
</div>
......@@ -65,6 +78,19 @@
</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>
......
......@@ -16,8 +16,8 @@
<!-- Custom Fonts -->
<link href="{{asset('vendor/font-awesome/css/font-awesome.min.css')}}" rel="stylesheet" type="text/css">
<link href='https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Merriweather:400,300,300italic,400italic,700,700italic,900,900italic' rel='stylesheet' type='text/css'>
<link href="{{asset('https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800')}}" rel='stylesheet' type='text/css'>
<link href={{asset('https://fonts.googleapis.com/css?family=Merriweather:400,300,300italic,400italic,700,700italic,900,900italic')}} rel='stylesheet' type='text/css'>
<!-- Plugin CSS -->
<link href="{{asset('vendor/magnific-popup/magnific-popup.css')}}" rel="stylesheet">
......@@ -51,7 +51,7 @@
<ul class="nav navbar-nav navbar-right">
<li>
<a class="page-scroll" href="{{ url('/login') }}">Login</a>
<a class="page-scroll" href="{{url('/login')}}">Login</a>
</li>
<li>
<a class="page-scroll" href="{{url('/register')}}">Register</a>
......@@ -102,7 +102,7 @@
<div class="service-box">
<i class="fa fa-4x fa-user text-primary sr-icons"></i>
<h3>Create Account</h3>
<p class="text-muted">Daftar dan miliki akun untuk pemesanan tiket</p>
<p class="text-muted">Daftar dan miliki akun dari menu <strong><a href="/register">Register</a></strong></p>
</div>
</div>
<div class="col-lg-3 col-md-6 text-center">
......@@ -134,7 +134,7 @@
<div class="container-fluid">
<div class="row no-gutter popup-gallery">
<div class="col-lg-4 col-sm-6">
<a href="img/portfolio/thumbnails/1.jpg" class="portfolio-box">
<a href="img/portfolio/thumbnails/.jpg" class="portfolio-box">
<img src="img/portfolio/thumbnails/1.jpg" class="img-responsive" alt="">
<div class="portfolio-box-caption">
<div class="portfolio-box-caption-content">
......@@ -317,15 +317,6 @@
</div>
</section>
{{--<aside class="bg-dark">--}}
{{--<div class="container text-center">--}}
{{--<div class="call-to-action">--}}
{{--<h2>Museum Batak TB Silalahi Center Balige</h2>--}}
{{--<a href="#" class="btn btn-default btn-xl sr-button">Visit now</a>--}}
{{--</div>--}}
{{--</div>--}}
{{--</aside>--}}
<section id="contact">
<div class="container">
<div class="row">
......@@ -340,7 +331,7 @@
</div>
<div class="col-lg-3 text-center">
<i class="fa fa-envelope-o fa-3x sr-contact"></i>
<p><a href="{{url('/feedback')}}">museumtbsc@gmail.com</a></p>
<p><a href="#">museumtbsc@gmail.com</a></p>
</div>
<div class="col-lg-3 text-center">
<i class="fa fa-map-marker fa-3x sr-contact"></i>
......@@ -359,18 +350,18 @@
</aside>
<!-- jQuery -->
<script src="vendor/jquery/jquery.min.js"></script>
<script src="{{asset('vendor/jquery/jquery.min.js')}}"></script>
<!-- Bootstrap Core JavaScript -->
<script src="vendor/bootstrap/js/bootstrap.min.js"></script>
<script src="{{asset('vendor/bootstrap/js/bootstrap.min.js')}}"></script>
<!-- Plugin JavaScript -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js"></script>
<script src="vendor/scrollreveal/scrollreveal.min.js"></script>
<script src="vendor/magnific-popup/jquery.magnific-popup.min.js"></script>
<script src="{{asset('https://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js')}}"></script>
<script src="{{asset('vendor/scrollreveal/scrollreveal.min.js')}}"></script>
<script src="{{asset('vendor/magnific-popup/jquery.magnific-popup.min.js')}}"></script>
<!-- Theme JavaScript -->
<script src="js/creative.min.js"></script>
<script src="{{asset('js/creative.min.js')}}"></script>
</body>
......
......@@ -61,7 +61,7 @@
<div class="menu_section">
<h3>General</h3>
<ul class="nav side-menu">
<li><a href="{{url('/customer')}}"><i class="fa fa-home"></i> Home </a>
<li><a href="/customer"><i class="fa fa-home"></i> Home </a>
</li>
<li><a><i class="fa fa-table"></i> Order Tiket <span class="fa fa-chevron-down"></span></a>
......@@ -78,7 +78,6 @@
<li><a href="{{url('/feedback')}}"> Give Feedback</a></li>
</ul>
</li>
</ul>
</div>
</div>
......@@ -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>
......
......@@ -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>
......
......@@ -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
......@@ -47,28 +34,3 @@
</div>
<!-- /.container-fluid -->
</nav>
\ No newline at end of file
{{--<!-- <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
......@@ -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">
......
......@@ -2,7 +2,6 @@
@extends('layouts.master-staff')
@section('content')
<!-- page content -->
<div class="right_col" role="main">
<div class="">
......@@ -10,9 +9,7 @@
<div class="title_left">
<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,18 +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">Pesan Tiket</p>
<p style="font-size: 15pt">Data Pemesanan Tiket</p>
</li>
<li>
<p style="font-size: 15pt">Data Pemesanan</p>
<p style="font-size: 15pt">Data Tiket Dikonfirmasi</p>
</li>
</ul>
</li>
<li>
<p style="font-size: 15pt">Data Pemesanan Dikonfirmasi</p>
<p style="font-size: 15pt">Pengunjung</p>
</li>
</ul>
<li>
<p style="font-size: 15pt">Member</p>
</li>
</ul>
</li>
......
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