Commit c97422db by MIRACLE\totapetro

Form pengunjung, feedback, sistem konfirmasi, laporan ke manager

parent 903c90bc
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Feedback extends Model
{
//
}
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class AdminController extends Controller
{
public function index()
{
return view('admins.admin_home');
}
public function pegawai()
{
return view('admins.pegawai');
}
}
......@@ -2,133 +2,43 @@
namespace App\Http\Controllers;
use App\Feedback;
use Illuminate\Http\Request;
use Sentinel;
use App\User;
use DB;
//class CustomerController extends Controller
//{
// public function index()
// {
// return view('customers.customer_home');
// }
//}
class CustomerController extends Controller
{
public function __construct()
{
}
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
// $customers= customer::all();
// return view('customers.tampilcustomer', compact('customers'));
return view('customers.customer_home');
}
/**
* Show the form for creating a new resource.
*
* @return \Illuminate\Http\Response
*/
public function create()
{
return view('customers.tambahcustomer');
}
/**
* Store a newly created resource in storage.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response
*/
public function store(Request $request)
{
$this->validate($request, [
'nama' => 'required',
'pekerjaan' => 'required',
'notlp' => 'required',
]);
$customers = new customers();
$customers->nama = $request->nama;
$customers->pekerjaan = $request->pekerjaan;
$customers->notlp = $request->notlp;
$customers->save();
if($customers->save()){
Session::flash('pesan_sukses','Berhasil menambahkan data');
}
else{
Session::flash('pesan_gagal','Gagal menambahkan data');
}
return redirect()->route('customer.index');
}
/**
* Display the specified resource.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public function show($id)
public function feedbackIndex()
{
//
}
// $id = Sentinel::getUser()->id;
// $users = DB::table('users')->where('id', $id)->first();
// $id = $users->id;
// $this->data['users'] = User::find($id);
/**
* Show the form for editing the specified resource.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public function edit($id)
{
$customers = customer::findOrFail($id);
return view('customers.editcustomer', compact('customers'));
$feedbacks = Feedback::all();
return view('customers.feedback', compact('feedbacks'));
}
/**
* Update the specified resource in storage.
*
* @param \Illuminate\Http\Request $request
* @param int $id
* @return \Illuminate\Http\Response
*/
public function update(Request $request, $id)
public function createFeedback(Request $request)
{
$this->validate($request, [
'nama' => 'required',
'pekerjaan' => 'required',
'notlp' => 'required',
]);
$customers = customer::findOrFail($id);
$customers->nama = $request->pekerjaan;
$customers->pekerjaan = $request->nama;
$customers->notlp = $request->notlp;
$customers->save();
if($customers->save()){
Session::flash('pesan_sukses','Berhasil menyimpan data');
}
else{
Session::flash('pesan_gagal','Gagal menyimpan data');
}
return redirect()->route('customer.index');
$feedbacks = new Feedback();
$feedbacks -> subjects = $request->subjects;
$feedbacks -> description = $request->description;
$feedbacks -> save();
return redirect()-> back()->with('alert-success', 'Terima kasih atas partisipasi anda untuk memberikan feedback kepada kami');
}
/**
* Remove the specified resource from storage.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public function destroy($id)
{
$customers = customer::findOrFail($id);
$customers->delete();
return redirect()->route('customer.index')->with('pesan_sukses','Berhasil menghapus data');
}
}
\ No newline at end of file
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\karyawan;
use Illuminate\Support\Facades\Session;
class KaryawanController extends Controller
{
public function __construct()
{
}
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
$karyawans= karyawan::all();
return view('admins.karyawans.tampilkaryawan', compact('karyawans'));
}
public function pegawai()
{
$karyawans= karyawan::all();
return view('managers.pegawai', compact('karyawans'));
}
/**
* Show the form for creating a new resource.
*
* @return \Illuminate\Http\Response
*/
public function create()
{
return view('admins.karyawans.tambahkaryawan');
}
/**
* Store a newly created resource in storage.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response
*/
public function store(Request $request)
{
$this->validate($request, [
'nama' => 'required',
'pekerjaan' => 'required',
'notlp' => 'required',
]);
$karyawans = new karyawan();
$karyawans->nama = $request->nama;
$karyawans->pekerjaan = $request->pekerjaan;
$karyawans->notlp = $request->notlp;
$karyawans->save();
if($karyawans->save()){
Session::flash('pesan_sukses','Berhasil menambahkan data');
}
else{
Session::flash('pesan_gagal','Gagal menambahkan data');
}
return redirect()->route('karyawan.index');
}
/**
* Display the specified resource.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public function show($id)
{
//
}
/**
* Show the form for editing the specified resource.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public function edit($id)
{
$karyawans = karyawan::findOrFail($id);
return view('admins.karyawans.editkaryawan', compact('karyawans'));
}
/**
* Update the specified resource in storage.
*
* @param \Illuminate\Http\Request $request
* @param int $id
* @return \Illuminate\Http\Response
*/
public function update(Request $request, $id)
{
$this->validate($request, [
'nama' => 'required',
'pekerjaan' => 'required',
'notlp' => 'required',
]);
$karyawans = karyawan::findOrFail($id);
$karyawans->nama = $request->pekerjaan;
$karyawans->pekerjaan = $request->nama;
$karyawans->notlp = $request->notlp;
$karyawans->save();
if($karyawans->save()){
Session::flash('pesan_sukses','Berhasil menyimpan data');
}
else{
Session::flash('pesan_gagal','Gagal menyimpan data');
}
return redirect()->route('karyawan.index');
}
/**
* Remove the specified resource from storage.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public function destroy($id)
{
$karyawans = karyawan::findOrFail($id);
$karyawans->delete();
return redirect()->route('karyawan.index')->with('pesan_sukses','Berhasil menghapus data');
}
}
......@@ -19,9 +19,7 @@ class LoginController extends Controller
if(Sentinel::authenticate($request->all())){
$slug = Sentinel::getUser()->roles()->first()->slug;
if( $slug == 'admin')
return redirect('/admin');
elseif ($slug == 'manager')
if ($slug == 'manager')
return redirect('/manager');
elseif ($slug == 'staff')
return redirect('/staff');
......
......@@ -3,6 +3,7 @@
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use DB;
class ManagerController extends Controller
{
......@@ -10,4 +11,24 @@ class ManagerController extends Controller
{
return view('managers.manager_home');
}
public function penjualan()
{
$transactions = DB::table('transactions')->orderby('id','desc')->get();
return view('managers.data_penjualan', compact('transactions'));
}
public function pengunjung()
{
$pengunjungs = DB::table('pengunjungs')->orderby('id','desc')->get();
return view('managers.pengunjung', compact('pengunjungs'));
}
public function viewFeedback()
{
$feedbacks = DB::table('feedback')->orderby('id','desc')->get();
return view('managers.daftar_feedback', compact('feedbacks'));
}
}
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Session;
use App\Customer;
class PengunjungController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
$customers= customer::all();
return view('staffs.customers.customer_view', compact('customers'));
}
/**
* Show the form for creating a new resource.
*
* @return \Illuminate\Http\Response
*/
public function create()
{
return view('staffs.customers.create');
}
/**
* Store a newly created resource in storage.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response
*/
public function store(Request $request)
{
$this->validate($request, [
'nama' => 'required',
'alamat' => 'required',
'jumlah' => 'required',
]);
$customers = new customer();
$customers->nama = $request->alamat;
$customers->alamat = $request->jumlah;
$customers->jumlah = $request->jumlah;
$customers->save();
if($customers->save()){
Session::flash('pesan_sukses','Berhasil menambahkan data');
}
else{
Session::flash('pesan_gagal','Gagal menambahkan data');
}
return redirect()->route('pengunjung.index');
}
/**
* Display the specified resource.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public function show($id)
{
//
}
/**
* Show the form for editing the specified resource.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public function edit($id)
{
$customers = customer::findOrFail($id);
return view('staffs.customers.edit', compact('customers'));
}
/**
* Update the specified resource in storage.
*
* @param \Illuminate\Http\Request $request
* @param int $id
* @return \Illuminate\Http\Response
*/
public function update(Request $request, $id)
{
$this->validate($request, [
'nama' => 'required',
'alamat' => 'required',
'jumlah' => 'required',
]);
$customers = customer::findOrFail($id);
$customers->nama = $request->alamat;
$customers->alamat = $request->nama;
$customers->jumlah = $request->jumlah;
$customers->save();
if($customers->save()){
Session::flash('pesan_sukses','Berhasil menyimpan data');
}
else{
Session::flash('pesan_gagal','Gagal menyimpan data');
}
return redirect()->route('pengunjung.index');
}
/**
* Remove the specified resource from storage.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public function destroy($id)
{
$customers = customer::findOrFail($id);
$customers->delete();
return redirect()->route('pengunjung.index')->with('pesan_sukses','Berhasil menghapus data');
}
}
......@@ -2,6 +2,7 @@
namespace App\Http\Controllers;
use Validator;
use Illuminate\Http\Request;
use Sentinel;
......@@ -14,6 +15,7 @@ class RegistrationController extends Controller
public function postRegister(Request $request)
{
$user = Sentinel::registerAndActivate($request->all());
$role = Sentinel::findRoleBySlug('customer');
......@@ -22,4 +24,15 @@ class RegistrationController extends Controller
return redirect('/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',
]);
}
}
......@@ -3,6 +3,9 @@
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Sentinel;
use DB;
use App\Pengunjung;
class StaffController extends Controller
{
......@@ -11,4 +14,39 @@ class StaffController extends Controller
return view('staffs.staff_home');
}
public function pengunjung()
{
$pengunjungs = Pengunjung::all();
return view('staffs.pengunjung', compact('pengunjungs'));
}
public function storepengunjung(Request $request)
{
$pengunjungs = new Pengunjung();
$pengunjungs->nama_pengunjung = $request->nama_pengunjung;
$pengunjungs->jumlah = $request->jumlah;
$harga = 10000;
$jumlah = $request ->jumlah;
$total = $harga * $jumlah;
$pengunjungs->total_harga = $total;
$pengunjungs->save();
return redirect('pengunjung')->with('alert-success', 'Data Pengunjung tersimpan');
}
public function viewMember()
{
}
// public function viewmember()
// {
// $customers = Sentinel::findRoleBySlug('customer');
// $customers = DB::table('users')->orderby(
// 'id','desc')->get();
// return view('staffs.daftar_member');
// }
}
......@@ -10,6 +10,8 @@ use App\Http\Requests;
use App\Http\Requests\Ticket\StoreRequest;
use App\Http\Requests\Ticket\UpdateRequest;
use Illuminate\Support\Facades\DB;
use Sentinel;
use App\User;
class TicketController extends Controller
{
......@@ -19,64 +21,17 @@ class TicketController extends Controller
return view('customers.ticket.ticket_home', compact('tickets'));
}
public function create()
public function update(Request $request, $id)
{
return view('customers.ticket.create');
}
public function store(StoreRequest $request)
{
$tickets= new Ticket();
$tickets->name = $request->name;
$tickets->price = $request->price;
$orders = Order::find($id);
$file = $request->file('images');
$fileName = $file->getClientOriginalName();
$file = $request->file('images');
$fileName = $file->getClientOriginalName();
$request->file('images')->move("image/", $fileName);
$tickets->images = $fileName;
$tickets->save();
return redirect()->route('ticket.index')->with('alert-success', 'Data Berhasil Disimpan.');
$orders = new Order();
$orders->id = $request->id_orders;
$orders->id = $request->id;
$orders->save();
return redirect()->route('ticket.index');
}
public function show($id)
{
//
}
public function edit($id)
{
$tickets = Ticket::findOrFail($id);
return view('customers.ticket.edit', compact('tickets'));
}
$orders->images = $fileName;
public function update(UpdateRequest $request, $id)
{
$tickets = Ticket::findOrFail($id);
$tickets->name = $request->name;
$tickets->price = $request->price;
if($request->file('images') == "")
{
$tickets->images = $tickets->images;
}
else
{
$file = $request->file('images');
$fileName = $file->getClientOriginalName();
$request->file('images')->move("image/", $fileName);
$tickets->images = $fileName;
}
$tickets->save();
return redirect()->route('ticket.index')->with('alert-success', 'Data Succes Updated');
$orders->update();
return redirect('data_order')->with('alert-success', 'Resi pembayaran berhasil diunggah. Silahkan menunggu konfirmasi pembayaran anda');
}
public function destroy($id)
......@@ -86,8 +41,9 @@ class TicketController extends Controller
return redirect()->route('ticket.index')->with('alert-success', 'Data Berhasil Dihapus.');
}
public function beli($id){
$this->data['title'] = "Order berhasil";
$this->data['title'] = "Order";
$this->data['tickets'] = Ticket::find($id);
$tickets = DB::table('tickets')->where('id' , $id)->first();
if($tickets->name==''){
......@@ -102,6 +58,7 @@ class TicketController extends Controller
{
$orders = new Order();
$orders->id_ticket = $request->id_ticket;
$orders->user_id = $request->user_id;
$orders->nama = $request->nama;
$orders->jumlah = $request->jumlah;
$jumlah = $request->jumlah;
......@@ -109,14 +66,16 @@ class TicketController extends Controller
$total = $harga * $jumlah;
$orders->harga = $total;
$orders->save();
return redirect()->route('ticket.index');
return redirect()->route('ticket.index')->with('alert-success', 'Ticket Success Ordered.
Please pay by transfer bank to 1234567890 (ABC Bank).
Then, upload it in Data Pemesanan ');
}
public function datapesanan()
public function destroyorder($id)
{
$orders = DB::table('orders')->orderby(
'id','desc')->where('status','=',0)->get();
return view('staffs.data_pemesanan', compact('orders'));
$orders = Order::findOrFail($id);
$orders->delete();
return redirect()->back();
}
public function lunas($id){
......@@ -125,6 +84,7 @@ class TicketController extends Controller
$trans = new Transaction();
$trans->id_order = $input->id;
$trans->id_ticket = $input->id_ticket;
$trans->user_id = $input->user_id;
$trans->nama = $input->nama;
$trans->jumlah = $input->jumlah;
$trans->harga = $input->harga;
......@@ -133,6 +93,41 @@ class TicketController extends Controller
return redirect()->back();
}
public function upload($id)
{
$orders = Order::findOrFail($id);
return view('customers.ticket.upload', compact('orders'));
}
public function dataorder()
{
$id = Sentinel::getUser()->id;
$users = DB::table('users')->where('id', $id)->first();
$id = $users->id;
$this->data['users'] = User::find($id);
$orders = DB::table('orders')->where('user_id', $id)->orderBy('id', 'desc')->where('status','=',0)->get();
return view('customers.ticket.data_order', compact('orders'));
}
public function datakonfirmasi()
{
$id = Sentinel::getUser()->id;
$users = DB::table('users')->where('id', $id)->first();
$id = $users->id;
$this->data['users'] = User::find($id);
$transactions = DB::table('transactions')->where('user_id', $id)->orderBy('id', 'desc')->get();
return view('customers.ticket.data_konfirmasi', compact('transactions'));
}
public function datapesanan()
{
$orders = DB::table('orders')->orderby(
'id','desc')->where('status','=',0)->get();
return view('staffs.data_pemesanan', compact('orders'));
}
public function datatransaksi()
{
$transactions = DB::table('orders')->orderby(
......@@ -140,10 +135,4 @@ class TicketController extends Controller
return view('staffs.data_transaksi', compact('transactions'));
}
public function done($id){
DB::table('orders')->where('id' , $id)->update(['status' => 1]);
$input = DB::table('orders')->where('id' , $id)->first();
return redirect()->back();
}
}
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Pengunjung extends Model
{
//
}
......@@ -7,7 +7,8 @@
"require": {
"php": ">=5.6.4",
"laravel/framework": "5.3.*",
"cartalyst/sentinel": "2.0.*"
"cartalyst/sentinel": "2.0.*",
"laravelcollective/html": "^5.3.0"
},
"require-dev": {
"fzaninotto/faker": "~1.4",
......
......@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
"This file is @generated automatically"
],
"content-hash": "1971ad84dac3d6026e37929a0cdfde10",
"content-hash": "f9ab0b9de1b67e8137a5ae3aad4c09a1",
"packages": [
{
"name": "cartalyst/sentinel",
......@@ -561,6 +561,60 @@
"time": "2016-11-14T15:41:06+00:00"
},
{
"name": "laravelcollective/html",
"version": "v5.3.1",
"source": {
"type": "git",
"url": "https://github.com/LaravelCollective/html.git",
"reference": "2f7f2e127c6fed47f269ea29ab5efeb8f65e9d35"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/LaravelCollective/html/zipball/2f7f2e127c6fed47f269ea29ab5efeb8f65e9d35",
"reference": "2f7f2e127c6fed47f269ea29ab5efeb8f65e9d35",
"shasum": ""
},
"require": {
"illuminate/http": "5.3.*",
"illuminate/routing": "5.3.*",
"illuminate/session": "5.3.*",
"illuminate/support": "5.3.*",
"illuminate/view": "5.3.*",
"php": ">=5.6.4"
},
"require-dev": {
"illuminate/database": "5.3.*",
"mockery/mockery": "~0.9.4",
"phpunit/phpunit": "~5.4"
},
"type": "library",
"autoload": {
"psr-4": {
"Collective\\Html\\": "src/"
},
"files": [
"src/helpers.php"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Taylor Otwell",
"email": "taylorotwell@gmail.com"
},
{
"name": "Adam Engebretson",
"email": "adam@laravelcollective.com"
}
],
"description": "HTML and Form Builders for the Laravel Framework",
"homepage": "http://laravelcollective.com",
"time": "2016-12-13T14:23:36+00:00"
},
{
"name": "league/flysystem",
"version": "1.0.32",
"source": {
......
@extends('layouts.master')
@section('content')
<div class="row"><br><br><br><br><br>
<div class="col-md-6 col-md-offset-3">
<div class="panel panel-primary">
<div class="panel-heading">
<h3 class="panel-title">Login</h3>
</div>
<div class="panel-body">
<form action="/login" method="POST">
{{csrf_field()}}
@if (session('error'))
<div class="alert alert-danger">
{{ session('error') }}
</div>
@endif
@extends('layouts.masterlog')
<div class="form-group">
<div class="input-group">
<span class="input-group-addon"><i class="fa fa-envelope"></i></span>
<input type="email" name="email" class="form-control" placeholder="example@example.com" required>
</div>
@section('body')
<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">
{{csrf_field()}}
<h1>Login Form</h1>
@if (session('error'))
<div class="alert alert-danger">
{{ session('error') }}
</div>
@endif
<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>
<div class="form-group">
<div class="input-group">
<span class="input-group-addon"><i class="fa fa-lock"></i></span>
<input type="password" name="password" class="form-control" placeholder="Password" required>
</div>
<input type="submit" value="Login" class="btn btn-default btn-success pull-right" >
</div>
{{--<a href="/forgot-password">Forgot your password?</a>--}}
</div>
<a href="/forgot-password">Forgot your password?</a>
<div class="clearfix"></div>
<div class="form-group">
<input type="submit" value="Login" class="btn btn-success pull-right" >
<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>
</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>
</form>
</div>
</div>
</div>
</form>
</section>
</div>
</div>
</div>
</body>
@endsection
@extends('layouts.master')
@section('content')
<div class="row"><br><br><br><br><br>
<div class="col-md-6 col-md-offset-3">
<div class="panel panel-primary">
<div class="panel-heading">
<h3 class="panel-title">Register</h3>
</div>
<div class="panel-body">
<form action="/register" method="POST">
{{csrf_field()}}
<div class="form-group">
<div class="input-group">
<span class="input-group-addon"><i class="fa fa-envelope"></i></span>
<input type="email" name="email" class="form-control" placeholder="example@example.com" required>
</div>
</div>
<div class="form-group">
<div class="input-group">
<span class="input-group-addon"><i class="fa fa-user"></i></span>
<input type="text" name="first_name" class="form-control" placeholder="First Name" required>
</div>
</div>
<div class="form-group">
<div class="input-group">
<span class="input-group-addon"><i class="fa fa-user"></i></span>
<input type="text" name="last_name" class="form-control" placeholder="Last Name" required>
</div>
</div>
<div class="form-group">
<div class="input-group">
<span class="input-group-addon"><i class="fa fa-map-marker"></i></span>
<input type="text" name="location" class="form-control" placeholder="Location" required>
</div>
</div>
<div class="form-group">
<div class="input-group">
<span class="input-group-addon"><i class="fa fa-lock"></i></span>
<input type="password" name="password" class="form-control" placeholder="Password" required>
</div>
</div>
<div class="form-group">
<div class="input-group">
<span class="input-group-addon"><i class="fa fa-lock"></i></span>
<input type="password" name="password_confirmation" class="form-control" placeholder="Password Confirmation">
</div>
</div>
<div class="form-group">
<input type="submit" value="Register" class="btn btn-success pull-right" >
@extends('layouts.masterlog')
@section('body')
<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="" />
</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="email@email.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="/login" class="to_register"> Log in </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>
</form>
</div>
</div>
</div>
</form>
</section>
</div>
</div>
{{--</div>--}}
</div>
</body>
@endsection
@extends('admins.admin_home')
@section('content')
<div class="container">
<div class="row">
<div class="col-md-12 col-md-offset-0">
<div class="panel panel-default">
<div class="panel-heading">Edit Karyawan</div>
<div class="panel-body">
@if(!empty($errors->first()))
<div class='alert alert-warning'>{!! $errors->first() !!}</div>
@endif
<form action="{{route('karyawan.update', $karyawans->id)}}" method="post">
<input name="_method" type="hidden" value="PATCH">
{{csrf_field()}}
<div class="form-group{{ $errors->has('nama') ? ' has-error' : '' }}">
<input type="text" name="nama" class="form-control" placeholder="Nama" value="{{$karyawans->nama}}">
{!! $errors->first('nama', '<p class="help-block">:message</p>') !!}
</div>
<div class="form-group{{ $errors->has('pekerjaan') ? ' has-error' : '' }}">
<input type="text" name="pekerjaan" class="form-control" placeholder="Pekerjaan" value="{{$karyawans->pekerjaan}}">
{!! $errors->first('pekerjaan', '<p class="help-block">:message</p>') !!}
</div>
<div class="form-group{{ $errors->has('notlp') ? ' has-error' : '' }}">
<input type="text" name="notlp" class="form-control" placeholder="Nomor Handphone" value="{{$karyawans->notlp}}">
{!! $errors->first('notlp', '<p class="help-block">:message</p>') !!}
</div>
<div class="form-group">
<input type="submit" class="btn btn-primary" value="Simpan">
</div>
</form>
</div>
</div>
</div>
</div>
</div>
@endsection
\ No newline at end of file
@extends('layouts.master-customer')
@section('content')
<!-- page content -->
<div class="right_col" role="main">
<div class="">
<div class="page-title">
<div class="title_left">
<h3>Form Feedback</h3>
</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">
<h2>Feedback </h2>
<div class="clearfix"></div>
</div>
<div class="x_content">
<form action="{{url('/feedback/create')}}" method="post" class="form-horizontal form-label-left" novalidate>
<p>Give your opinion about all our service... Have a nice day <code class="fa fa-smile-o"></code>
</p>
<span class="section"></span>
@if(Session::has('alert-success'))
<div class="alert alert-success">
{{ Session::get('alert-success') }}
</div>
@endif
@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()}}
<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 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 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">Simpan</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- /page content -->
@endsection
\ No newline at end of file
@extends('admins.admin_home')
@section('content')
<div class="container">
<div class="row">
<div class="col-md-12 col-md-offset-0">
<div class="panel panel-default">
<div class="panel-heading">Tambah Karyawan</div>
<div class="panel-body">
@if(!empty($errors->first()))
<div class='alert alert-warning'>{!! $errors->first() !!}</div>
@endif
<form action="{{route('karyawan.store')}}" method="post">
{{csrf_field()}}
<div class="form-group{{ $errors->has('nama') ? ' has-error' : '' }}">
<input type="text" name="nama" class="form-control" placeholder="Nama">
{!! $errors->first('nama', '<p class="help-block">:message</p>') !!}
</div>
<div class="form-group{{ $errors->has('pekerjaan') ? ' has-error' : '' }}">
<input type="text" name="pekerjaan" class="form-control" placeholder="Pekerjaan">
{!! $errors->first('pekerjaan', '<p class="help-block">:message</p>') !!}
</div>
<div class="form-group{{ $errors->has('notlp') ? ' has-error' : '' }}">
<input type="text" name="notlp" class="form-control" placeholder="Nomor Handphone">
{!! $errors->first('notlp', '<p class="help-block">:message</p>') !!}
</div>
<div class="form-group">
<input type="submit" class="btn btn-primary" value="Simpan">
</div>
</form>
</div>
</div>
</div>
</div>
</div>
@endsection
\ No newline at end of file
@section('content')
<div class="container">
<div class="row">
<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
<div class="panel panel-default">
<div class="panel-heading">Data Karyawan</div>
<div class="table-responsive">
<table class="table table-striped">
<thead>
<?php $count = 1; ?>
<tr>
<th>No.</th>
<th>Nama</th>
<th>Pekerjaan</th>
<th>No Tlp</th>
</tr>
</thead>
<tbody>
@foreach($karyawans as $karyawans)
<tr>
<td>{!! $count++ !!}</td>
<td>{!! $karyawans->nama !!}</td>
<td>{!! $karyawans->pekerjaan !!}</td>
<td>{!! $karyawans->notlp !!}</td>
<td>
<form method="POST" action="{!! route('karyawan.destroy', $karyawans->id) !!}" accept-charset="UTF-8">
<input name="_method" type="hidden" value="DELETE">
<input name="_token" type="hidden" value="{!! csrf_token() !!}">
<a href="{!! route('karyawan.edit', $karyawans->id) !!}" type="button" class="btn btn-primary btn-sm">Edit</a>
<input onclick="return confirm('Anda yakin akan menghapus data ?');" type="submit" class="btn btn-danger btn-sm" value="Hapus" />
</form>
</td>
</tr>
@endforeach
</tbody>
</table>
<a href="{!! route('karyawan.create') !!}" type="button" class="btn btn-primary">Tambah</a>
</div>
</div>
</div>
</div>
</div>
</div>
@endsection
@if(Sentinel::check())
@extends('layouts.master-customer')
@section('content')
<!-- page content -->
<div class="right_col" role="main">
<div class="">
<div class="page-title">
<div class="title_left">
<h3>Tables <small>Some examples to get you started</small></h3>
</div>
<div class="title_right">
<div class="col-md-5 col-sm-5 col-xs-12 form-group pull-right top_search">
<div class="input-group">
<input type="text" class="form-control" placeholder="Search for...">
<span class="input-group-btn">
<button class="btn btn-default" type="button">Go!</button>
</span>
</div>
</div>
</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">
<h2>Hover rows <small>Try hovering over the rows</small></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">
@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 id="datatable-buttons" class="table table-striped table-bordered">
<thead>
<tr>
<th>#</th>
<th>ID Transaction</th>
<th>User ID</th>
<th>Jenis Tiket</th>
<th>Jumlah</th>
<th>Total Harga</th>
<th>Status</th>
<th>Tiket download</th>
</tr>
</thead>
<tbody>
<?php $no=1; ?>
@foreach($transactions as $trans)
<tr>
<td>{{$no++}}</td>
<td>{{$trans->id}}</td>
<td>{{$trans->user_id}}</td>
<td>{{$trans->nama}}</td>
<td>{{$trans->jumlah}}</td>
<td>{{$trans->harga}}</td>
<td><button type="button" class="btn btn-success">Dikonfirmasi</button></td>
<td><img src="{{ asset('image/ticket/ticket.png') }}" style="height: 150px; width: 200px; "> </td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- /page content -->
@endsection
@endif
\ No newline at end of file
@if(Sentinel::check())
@extends('layouts.master-customer')
@section('content')
<!-- page content -->
<div class="right_col" role="main">
<div class="">
<div class="page-title">
<div class="title_left">
<h3>Data Pemesanan Tiket <small></small></h3>
</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">
<h2>Data Pemesanan tiket <small>Upload resi pembayaran</small></h2>
<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
<table class="table table-hover">
<thead>
<tr>
<th>#</th>
<th>Jenis Tiket</th>
<th>Jumlah</th>
<th>Harga</th>
<th>Resi Pembayaran</th>
<th>Status</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<?php $no=1; ?>
@foreach($orders as $order)
<tr>
<td>{{$no++}}</td>
<td>{{$order->nama}}</td>
<td>{{$order->jumlah}}</td>
<td>Rp {{$order->harga}},-</td>
<td><img src="{{ asset('image/'. $order->images) }}" style="height: 150px; width: 200px; "> </td>
<td><button class="btn btn-danger">Belum Dikonfirmasi</button> </td>
<td>
<a href="{{url('data_order/upload', $order->id)}}" class="btn btn-primary">Upload Resi Pembayaran</a>
<a href="{{url('/data_order/destroy',$order->id)}}" class="btn btn-danger"
onclick="return confirm('Are you sure to cancel order??')">Cancel</a>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- /page content -->
@endsection
@endif
\ No newline at end of file
......@@ -6,7 +6,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="/customer" class="site_title"><i class="fa fa-paw"></i> <span>TBS Center</span></a>
</div>
<div class="clearfix"></div>
......@@ -18,7 +18,7 @@
</div>
<div class="profile_info">
<span>Welcome,</span>
<h2>Staff</h2>
<h2>Customer</h2>
</div>
</div>
<!-- /menu profile quick info -->
......@@ -30,28 +30,23 @@
<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="/customer"><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>
<li><a><i class="fa fa-table"></i> Order Ticket <span class="fa fa-chevron-down"></span></a>
<ul class="nav child_menu">
<li><a href="">Data Pemesanan Tiket</a></li>
<li><a href="">Data Tiket dikonfirmasi</a></li>
<li><a href="/ticket">Pesan Ticket</a></li>
<li><a href="/data_order">Data Pemesanan</a></li>
<li><a href="data_konfirmasi">Data Pemesanan Dikonfirmasi</a></li>
</ul>
</li>
<li><a><i class="fa fa-edit"></i> Ticket <span class="fa fa-chevron-down"></span></a>
<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=""> CRUD Tiket</a></li>
<li><a href=""> Give Feedback</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="#">Input Data Pengunjung</a></li>
</ul>
</li>
</ul>
</div>
</div>
......@@ -91,19 +86,13 @@
<span class=" fa fa-angle-down"></span>
</a>
<ul class="dropdown-menu dropdown-usermenu pull-right">
<li><a href="javascript:;"> Profile</a></li>
<li>
<a href="javascript:;">
<span class="badge bg-red pull-right">50%</span>
<span>Settings</span>
</a>
</li>
<li><a href="javascript:;">Help</a></li>
<li><a href="javascript:;"></a></li>
<li>
<form action="/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>
......@@ -113,24 +102,16 @@
</div>
<!-- /top navigation -->
<!-- page content -->
<div class="right_col" role="main">
<div class="">
<div class="page-title">
<div class="title_left">
<h3>Tables <small>Some examples to get you started</small></h3>
<h3>Tables <small></small></h3>
</div>
<div class="title_right">
<div class="col-md-5 col-sm-5 col-xs-12 form-group pull-right top_search">
<div class="input-group">
<input type="text" class="form-control" placeholder="Search for...">
<span class="input-group-btn">
<button class="btn btn-default" type="button">Go!</button>
</span>
</div>
</div>
</div>
</div>
<div class="clearfix"></div>
......@@ -149,24 +130,36 @@
<div class="clearfix"></div>
</div>
<div class="x_content">
<form action="{{route('pengunjung.store')}}" method="post" enctype="multipart/form-data">
<form action="{{url('/data_order/upload/'.$orders->id)}}" method="post" enctype="multipart/form-data">
<input name="_method" type="hidden" value="PUT">
{{csrf_field()}}
<label>Jenis Tiket</label>
<div class="form-group{{ $errors->has('nama') ? ' has-error' : '' }}">
<input type="text" name="nama" class="form-control" placeholder="Nama">
<input type="text" name="nama" class="form-control" value="{{$orders->nama}}" readonly>
{!! $errors->first('nama', '<p class="help-block">:message</p>') !!}
</div>
<div class="form-group{{ $errors->has('alamat') ? ' has-error' : '' }}">
<input type="text" name="alamat" class="form-control" placeholder="Alamat">
{!! $errors->first('alamat', '<p class="help-block">:message</p>') !!}
</div>
<label>Jumlah</label>
<div class="form-group{{ $errors->has('jumlah') ? ' has-error' : '' }}">
<input type="text" name="jumlah" class="form-control" placeholder="Jumlah">
<input type="text" name="jumlah" class="form-control" value="{{$orders->jumlah}}" readonly>
{!! $errors->first('jumlah', '<p class="help-block">:message</p>') !!}
</div>
<label>Total Harga</label>
<div class="form-group{{ $errors->has('harga') ? ' has-error' : '' }}">
<input type="text" name="harga" class="form-control" value="{{$orders->harga}}" readonly>
{!! $errors->first('harga', '<p class="help-block">:message</p>') !!}
</div>
<label>Upload Resi</label>
<div class="form-group{{ $errors->has('images') ? ' has-error' : '' }}">
<input type="file" id="inputimages" name="images" class="form-control">
{!! $errors->first('images', '<p class="help-block">:message</p>') !!}
</div>
<div class="form-group">
<input type="submit" class="btn btn-primary" value="Add">
<input type="submit" class="btn btn-primary" value="Save">
</div>
</form>
</div>
......
......@@ -10,78 +10,78 @@
<title>TB Silalahi Center</title>
<!-- Bootstrap -->
<link href="../vendors/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
<link href="{{asset('../vendors/bootstrap/dist/css/bootstrap.min.css')}}" rel="stylesheet">
<!-- Font Awesome -->
<link href="../vendors/font-awesome/css/font-awesome.min.css" rel="stylesheet">
<link href="{{asset('../vendors/font-awesome/css/font-awesome.min.css')}}" rel="stylesheet">
<!-- NProgress -->
<link href="../vendors/nprogress/nprogress.css" rel="stylesheet">
<link href="{{asset('../vendors/nprogress/nprogress.css')}}" rel="stylesheet">
<!-- bootstrap-daterangepicker -->
<link href="../vendors/bootstrap-daterangepicker/daterangepicker.css" rel="stylesheet">
<link href="{{asset('../vendors/bootstrap-daterangepicker/daterangepicker.css')}}" rel="stylesheet">
<!-- iCheck -->
<link href="../vendors/iCheck/skins/flat/green.css" rel="stylesheet">
<link href="{{asset('../vendors/iCheck/skins/flat/green.css')}}" rel="stylesheet">
<!-- Datatables -->
<link href="../vendors/datatables.net-bs/css/dataTables.bootstrap.min.css" rel="stylesheet">
<link href="../vendors/datatables.net-buttons-bs/css/buttons.bootstrap.min.css" rel="stylesheet">
<link href="../vendors/datatables.net-fixedheader-bs/css/fixedHeader.bootstrap.min.css" rel="stylesheet">
<link href="../vendors/datatables.net-responsive-bs/css/responsive.bootstrap.min.css" rel="stylesheet">
<link href="../vendors/datatables.net-scroller-bs/css/scroller.bootstrap.min.css" rel="stylesheet">
<link href="{{asset('../vendors/datatables.net-bs/css/dataTables.bootstrap.min.css')}}" rel="stylesheet">
<link href="{{asset('../vendors/datatables.net-buttons-bs/css/buttons.bootstrap.min.css')}}" rel="stylesheet">
<link href="{{asset('../vendors/datatables.net-fixedheader-bs/css/fixedHeader.bootstrap.min.css')}}" rel="stylesheet">
<link href="{{asset('../vendors/datatables.net-responsive-bs/css/responsive.bootstrap.min.css')}}" rel="stylesheet">
<link href="{{asset('../vendors/datatables.net-scroller-bs/css/scroller.bootstrap.min.css')}}" rel="stylesheet">
<!-- Custom Theme Style -->
<link href="../build/css/custom.min.css" rel="stylesheet">
<link href="{{asset('../build/css/custom.min.css')}}" rel="stylesheet">
</head>
<body class="nav-md">
@yield('content')
<!-- jQuery -->
<script src="../vendors/jquery/dist/jquery.min.js"></script>
<script src="{{asset('../vendors/jquery/dist/jquery.min.js')}}"></script>
<!-- Bootstrap -->
<script src="../vendors/bootstrap/dist/js/bootstrap.min.js"></script>
<script src="{{asset('../vendors/bootstrap/dist/js/bootstrap.min.js')}}"></script>
<!-- FastClick -->
<script src="../vendors/fastclick/lib/fastclick.js"></script>
<script src="{{asset('../vendors/fastclick/lib/fastclick.js')}}"></script>
<!-- NProgress -->
<script src="../vendors/nprogress/nprogress.js"></script>
<script src="{{asset('../vendors/nprogress/nprogress.js')}}"></script>
<!-- Chart.js -->
<script src="../vendors/Chart.js/dist/Chart.min.js"></script>
<script src="{{asset('../vendors/Chart.js/dist/Chart.min.js')}}"></script>
<!-- jQuery Sparklines -->
<script src="../vendors/jquery-sparkline/dist/jquery.sparkline.min.js"></script>
<script src="{{asset('../vendors/jquery-sparkline/dist/jquery.sparkline.min.js')}}"></script>
<!-- Flot -->
<script src="../vendors/Flot/jquery.flot.js"></script>
<script src="../vendors/Flot/jquery.flot.pie.js"></script>
<script src="../vendors/Flot/jquery.flot.time.js"></script>
<script src="../vendors/Flot/jquery.flot.stack.js"></script>
<script src="../vendors/Flot/jquery.flot.resize.js"></script>
<script src="{{asset('../vendors/Flot/jquery.flot.js')}}"></script>
<script src="{{asset('../vendors/Flot/jquery.flot.pie.js')}}"></script>
<script src="{{asset('../vendors/Flot/jquery.flot.time.js')}}"></script>
<script src="{{asset('../vendors/Flot/jquery.flot.stack.js')}}"></script>
<script src="{{asset('../vendors/Flot/jquery.flot.resize.js')}}"></script>
<!-- Flot plugins -->
<script src="../vendors/flot.orderbars/js/jquery.flot.orderBars.js"></script>
<script src="../vendors/flot-spline/js/jquery.flot.spline.min.js"></script>
<script src="../vendors/flot.curvedlines/curvedLines.js"></script>
<script src="{{asset('../vendors/flot.orderbars/js/jquery.flot.orderBars.js')}}"></script>
<script src="{{asset('../vendors/flot-spline/js/jquery.flot.spline.min.js')}}"></script>
<script src="{{asset('../vendors/flot.curvedlines/curvedLines.js')}}"></script>
<!-- DateJS -->
<script src="../vendors/DateJS/build/date.js"></script>
<script src="{{asset('../vendors/DateJS/build/date.js')}}"></script>
<!-- bootstrap-daterangepicker -->
<script src="../vendors/moment/min/moment.min.js"></script>
<script src="../vendors/bootstrap-daterangepicker/daterangepicker.js"></script>
<script src="{{asset('../vendors/moment/min/moment.min.js')}}"></script>
<script src="{{asset('../vendors/bootstrap-daterangepicker/daterangepicker.js')}}"></script>
<!-- iCheck -->
<script src="../vendors/iCheck/icheck.min.js"></script>
<script src="{{asset('../vendors/iCheck/icheck.min.js')}}"></script>
<!-- Datatables -->
<script src="../vendors/datatables.net/js/jquery.dataTables.min.js"></script>
<script src="../vendors/datatables.net-bs/js/dataTables.bootstrap.min.js"></script>
<script src="../vendors/datatables.net-buttons/js/dataTables.buttons.min.js"></script>
<script src="../vendors/datatables.net-buttons-bs/js/buttons.bootstrap.min.js"></script>
<script src="../vendors/datatables.net-buttons/js/buttons.flash.min.js"></script>
<script src="../vendors/datatables.net-buttons/js/buttons.html5.min.js"></script>
<script src="../vendors/datatables.net-buttons/js/buttons.print.min.js"></script>
<script src="../vendors/datatables.net-fixedheader/js/dataTables.fixedHeader.min.js"></script>
<script src="../vendors/datatables.net-keytable/js/dataTables.keyTable.min.js"></script>
<script src="../vendors/datatables.net-responsive/js/dataTables.responsive.min.js"></script>
<script src="../vendors/datatables.net-responsive-bs/js/responsive.bootstrap.js"></script>
<script src="../vendors/datatables.net-scroller/js/dataTables.scroller.min.js"></script>
<script src="../vendors/jszip/dist/jszip.min.js"></script>
<script src="../vendors/pdfmake/build/pdfmake.min.js"></script>
<script src="../vendors/pdfmake/build/vfs_fonts.js"></script>
<script src="{{asset('../vendors/datatables.net/js/jquery.dataTables.min.js')}}"></script>
<script src="{{asset('../vendors/datatables.net-bs/js/dataTables.bootstrap.min.js')}}"></script>
<script src="{{asset('../vendors/datatables.net-buttons/js/dataTables.buttons.min.js')}}"></script>
<script src="{{asset('../vendors/datatables.net-buttons-bs/js/buttons.bootstrap.min.js')}}"></script>
<script src="{{asset('../vendors/datatables.net-buttons/js/buttons.flash.min.js')}}"></script>
<script src="{{asset ('../vendors/datatables.net-buttons/js/buttons.html5.min.js')}}"></script>
<script src="{{asset('../vendors/datatables.net-buttons/js/buttons.print.min.js')}}"></script>
<script src="{{asset('../vendors/datatables.net-fixedheader/js/dataTables.fixedHeader.min.js')}}"></script>
<script src="{{asset('../vendors/datatables.net-keytable/js/dataTables.keyTable.min.js')}}"></script>
<script src="{{asset('../vendors/datatables.net-responsive/js/dataTables.responsive.min.js')}}"></script>
<script src="{{asset('../vendors/datatables.net-responsive-bs/js/responsive.bootstrap.js')}}"></script>
<script src="{{asset('../vendors/datatables.net-scroller/js/dataTables.scroller.min.js')}}"></script>
<script src="{{asset('../vendors/jszip/dist/jszip.min.js')}}"></script>
<script src="{{asset('../vendors/pdfmake/build/pdfmake.min.js')}}"></script>
<script src="{{asset('../vendors/pdfmake/build/vfs_fonts.js')}}"></script>
<!-- Custom Theme Scripts -->
<script src="../build/js/custom.min.js"></script>
<script src="{{asset('../build/js/custom.min.js')}}"></script>
</body>
</html>
<!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="../vendors/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
<!-- Font Awesome -->
<link href="../vendors/font-awesome/css/font-awesome.min.css" rel="stylesheet">
<!-- NProgress -->
<link href="../vendors/nprogress/nprogress.css" rel="stylesheet">
<!-- Animate.css -->
<link href="../vendors/animate.css/animate.min.css" rel="stylesheet">
<!-- Custom Theme Style -->
<link href="../build/css/custom.min.css" rel="stylesheet">
</head>
@yield('body')
</html>
@if(Sentinel::check())
@extends('layouts.master-manager')
@section('content')
<!-- page content -->
<div class="right_col" role="main">
<div class="">
<div class="page-title">
<div class="title_left">
<h3>Users <small>Some examples to get you started</small></h3>
</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">
<h2>Data Penjualan Tiket</h2>
<ul class="nav navbar-right panel_toolbox">
<li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
</li>
</li>
</ul>
<div class="clearfix"></div>
</div>
<div class="x_content">
<table id="datatable-buttons" class="table table-striped table-bordered">
<thead>
<tr>
<th>#</th>
<th>Subjects</th>
<th>Feedback</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<?php $no=1; ?>
@foreach($feedbacks as $feedback)
<tr>
<td>{{$no++}}</td>
<td>{{$feedback->subjects}}</td>
<td>{{$feedback->description}}</td>
<td></td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- /page content -->
@endsection
@endif
\ No newline at end of file
@if(Sentinel::check())
@extends('layouts.master-manager')
@section('content')
<!-- page content -->
<div class="right_col" role="main">
<div class="">
<div class="page-title">
<div class="title_left">
<h3>Users <small>Some examples to get you started</small></h3>
</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">
<h2>Data Penjualan Tiket</h2>
<ul class="nav navbar-right panel_toolbox">
<li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
</li>
</li>
</ul>
<div class="clearfix"></div>
</div>
<div class="x_content">
@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 id="datatable-buttons" class="table table-striped table-bordered">
<thead>
<tr>
<th>#</th>
<th>ID Transaction</th>
<th>ID User</th>
<th>Jenis Tiket</th>
<th>Jumlah</th>
<th>Total Harga</th>
<th>Status</th>
</tr>
</thead>
<tbody>
<?php $no=1; ?>
@foreach($transactions as $trans)
<tr>
<td>{{$no++}}</td>
<td>{{$trans->id}}</td>
<td>{{$trans->user_id}}</td>
<td>{{$trans->nama}}</td>
<td>{{$trans->jumlah}}</td>
<td>{{$trans->harga}}</td>
<td>Dibayar</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- /page content -->
@endsection
@endif
\ No newline at end of file
@if(Sentinel::check())
@extends('layouts.master-manager')
@section('content')
<!-- page content -->
<div class="right_col" role="main">
<div class="">
<div class="page-title">
<div class="title_left">
<h3>Users <small>Some examples to get you started</small></h3>
</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">
<h2>Data Penjualan Tiket</h2>
<ul class="nav navbar-right panel_toolbox">
<li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
</li>
</li>
</ul>
<div class="clearfix"></div>
</div>
<div class="x_content">
@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 id="datatable-buttons" class="table table-striped table-bordered">
<thead>
<tr>
<th>#</th>
<th>Nama Pengunjung</th>
<th>Jumlah Tiket</th>
<th>Total harga</th>
<th>Status</th>
</tr>
</thead>
<tbody>
<?php $no=1; ?>
@foreach($pengunjungs as $pengunjung)
<tr>
<td>{{$no++}}</td>
<td>{{$pengunjung->nama_pengunjung}}</td>
<td>{{$pengunjung->jumlah}}</td>
<td>{{$pengunjung->total_harga}}</td>
<td>Dibayar</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- /page content -->
@endsection
@endif
<?php
/**
* Created by PhpStorm.
* User: totapetro
* Date: 5/18/2017
* Time: 8:31 PM
*/
\ No newline at end of file
<?php
/**
* Created by PhpStorm.
* User: totapetro
* Date: 5/20/2017
* Time: 2:13 PM
*/
\ No newline at end of file
@if(Sentinel::check())
@extends('layouts.master-staff')
@section('content')
<!-- page content -->
<div class="right_col" role="main">
<div class="">
<div class="page-title">
<div class="title_left">
<h3>Form Pengunjung</h3>
</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">
<h2>Input Data Pengunjung <small>1 Tiket = Rp10000,-</small></h2>
<ul class="nav navbar-right panel_toolbox">
<li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
</li>
</ul>
<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
@if(!empty($errors->first()))
<div class='alert alert-warning'>{!! $errors->first() !!}</div>
@endif
<form action="{{url('/pengunjung/store')}}" method="post" data-parsley-validate class="form-horizontal form-label-left">
{{csrf_field()}}
<div class="form-group{{ $errors->has('nama_pengunjung') ? ' has-error' : '' }}">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name">Nama Pengunjung
<span class="required">*</span>
</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input type="text" name="nama_pengunjung" required="required" class="form-control col-md-7 col-xs-12">
{!! $errors->first('nama_pengunjung', '<p class="help-block">:message</p>') !!}
</div>
</div>
<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">
<input type="number" onkeyup="Harga(this.value)" min="1" name="jumlah" required="required" class="form-control col-md-7 col-xs-12">
{!! $errors->first('jumlah', '<p class="help-block">:message</p>') !!}
</div>
</div>
<div class="form-group{{ $errors->has('total_harga') ? ' has-error' : '' }}">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name">Total Harga (Rp)<span class="required">*</span>
</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<span class="form-control col-md-7 col-xs-12" id="total_harga" name="total_harga"></span>
{!! $errors->first('total_harga', '<p class="help-block">:message</p>') !!}
</div>
</div>
<script>function Harga(str)
{
document.getElementById("total_harga").innerHTML = str*10000;
return;
}
</script>
<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">Simpan</button>
</div>
</div>
</form>
</div>
</div>
</div>
<div class="col-md-12 col-sm-12 col-xs-12">
<div class="x_panel">
<div class="x_title">
<h2><b>Data Pengunjung dan Pembelian Tiket Manual</b></h2>
<ul class="nav navbar-right panel_toolbox">
<li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
</li>
</ul>
<div class="clearfix"></div>
</div>
<div class="x_content">
<table class="table table-hover">
<thead>
<tr>
<th>#</th>
<th>Nama</th>
<th>Jumlah Tiket</th>
<th>Total Harga</th>
<th>Status</th>
</tr>
</thead>
<tbody>
<?php $no=1; ?>
@foreach($pengunjungs as $peng)
<tr>
<td>{{$no++}}</td>
<td>{{$peng->nama_pengunjung}}</td>
<td>{{$peng->jumlah}}</td>
<td>{{$peng->total_harga}}</td>
<td>Lunas</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- /page content -->
@endsection
@endif
......@@ -159,7 +159,7 @@
<thead>
<tr>
<th>#</th>
<th>Name</th>
<th>Ticket Category</th>
<th>Price</th>
<th>Image</th>
<th>Action</th>
......
......@@ -27,10 +27,11 @@ Route::group(['middleware' => 'admin'], function()
Route::group(['middleware' => 'manager'], function()
{
Route::get('/manager', 'ManagerController@index');
Route::resource('/pegawai', 'KaryawanController@pegawai');
Route::get('/penjualan', 'ManagerController@penjualan');
Route::get('/viewpengunjung', 'ManagerController@pengunjung');
Route::get('/viewfeedback', 'ManagerController@viewFeedback');
});
Route::group(['middleware' => 'staff'], function ()
{
Route::get('/staff', 'StaffController@index');
......@@ -38,8 +39,9 @@ Route::group(['middleware' => 'staff'], function ()
Route::get('/pemesanan', 'TicketController@datapesanan');
Route::get('/lunas/{id}','TicketController@lunas');
Route::get('/data_transaksi','TicketController@datatransaksi');
Route::resource('/pengunjung', 'PengunjungController');
Route::get('/pengunjung', 'StaffController@pengunjung');
Route::post('/pengunjung/store', 'StaffController@storepengunjung');
Route::get('/member', 'StaffController@viewMember');
});
Route::group(['middleware' => 'customer'], function ()
......@@ -49,11 +51,12 @@ Route::group(['middleware' => 'customer'], function ()
Route::get('/ticket/beli/{id}','TicketController@beli');
Route::post('/ticket/beli','TicketController@storeorder');
Route::get('/order/{id}','TicketController@done');
Route::resource('user', 'UserController');
Route::resource('transaction', 'TransactionController');
});
Route::resource('/data_order','TicketController@dataorder');
Route::get('/data_order/destroy/{id}', 'TicketController@destroyorder');
Route::get('/data_order/upload/{id}', 'TicketController@upload');
Route::put('/data_order/upload/{id}', 'TicketController@update');
Route::get('/data_konfirmasi','TicketController@datakonfirmasi');
Route::get('/feedback', 'CustomerController@feedbackIndex');
Route::post('/feedback/create', 'CustomerController@createFeedback');
});
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -15,4 +15,5 @@ return array(
'e7223560d890eab89cda23685e711e2c' => $vendorDir . '/psy/psysh/src/Psy/functions.php',
'f0906e6318348a765ffb6eb24e0d0938' => $vendorDir . '/laravel/framework/src/Illuminate/Foundation/helpers.php',
'58571171fd5812e6e447dce228f52f4d' => $vendorDir . '/laravel/framework/src/Illuminate/Support/helpers.php',
'f18cc91337d49233e5754e93f3ed9ec3' => $vendorDir . '/laravelcollective/html/src/helpers.php',
);
......@@ -37,6 +37,7 @@ return array(
'Dotenv\\' => array($vendorDir . '/vlucas/phpdotenv/src'),
'Doctrine\\Instantiator\\' => array($vendorDir . '/doctrine/instantiator/src/Doctrine/Instantiator'),
'DeepCopy\\' => array($vendorDir . '/myclabs/deep-copy/src/DeepCopy'),
'Collective\\Html\\' => array($vendorDir . '/laravelcollective/html/src'),
'ClassPreloader\\' => array($vendorDir . '/classpreloader/classpreloader/src'),
'Cartalyst\\Support\\' => array($vendorDir . '/cartalyst/support/src'),
'Cartalyst\\Sentinel\\' => array($vendorDir . '/cartalyst/sentinel/src'),
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -2024,12 +2024,12 @@
"version_normalized": "0.9.5.0",
"source": {
"type": "git",
"url": "https://github.com/padraic/mockery.git",
"url": "https://github.com/mockery/mockery.git",
"reference": "4db079511a283e5aba1b3c2fb19037c645e70fc2"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/padraic/mockery/zipball/4db079511a283e5aba1b3c2fb19037c645e70fc2",
"url": "https://api.github.com/repos/mockery/mockery/zipball/4db079511a283e5aba1b3c2fb19037c645e70fc2",
"reference": "4db079511a283e5aba1b3c2fb19037c645e70fc2",
"shasum": ""
},
......@@ -3679,5 +3679,61 @@
"php",
"security"
]
},
{
"name": "laravelcollective/html",
"version": "v5.3.1",
"version_normalized": "5.3.1.0",
"source": {
"type": "git",
"url": "https://github.com/LaravelCollective/html.git",
"reference": "2f7f2e127c6fed47f269ea29ab5efeb8f65e9d35"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/LaravelCollective/html/zipball/2f7f2e127c6fed47f269ea29ab5efeb8f65e9d35",
"reference": "2f7f2e127c6fed47f269ea29ab5efeb8f65e9d35",
"shasum": ""
},
"require": {
"illuminate/http": "5.3.*",
"illuminate/routing": "5.3.*",
"illuminate/session": "5.3.*",
"illuminate/support": "5.3.*",
"illuminate/view": "5.3.*",
"php": ">=5.6.4"
},
"require-dev": {
"illuminate/database": "5.3.*",
"mockery/mockery": "~0.9.4",
"phpunit/phpunit": "~5.4"
},
"time": "2016-12-13T14:23:36+00:00",
"type": "library",
"installation-source": "dist",
"autoload": {
"psr-4": {
"Collective\\Html\\": "src/"
},
"files": [
"src/helpers.php"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Taylor Otwell",
"email": "taylorotwell@gmail.com"
},
{
"name": "Adam Engebretson",
"email": "adam@laravelcollective.com"
}
],
"description": "HTML and Form Builders for the Laravel Framework",
"homepage": "http://laravelcollective.com"
}
]
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