Commit 5577d57c by Rinto

New Code

parent 8f287c8e
...@@ -2,8 +2,6 @@ ...@@ -2,8 +2,6 @@
namespace App\Http\Controllers; namespace App\Http\Controllers;
use App\Models\Batal;
use App\Models\Konfirmasi;
use Illuminate\Http\Request; use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\DB;
...@@ -14,6 +12,9 @@ use App\Models\Bus; ...@@ -14,6 +12,9 @@ use App\Models\Bus;
use App\Models\Users; use App\Models\Users;
use App\Models\Supir; use App\Models\Supir;
use App\Models\Pemesanan; use App\Models\Pemesanan;
use App\Models\Batal;
use App\Models\Konfirmasi;
use App\Models\Jadwal;
use Validator; use Validator;
use App\Http\Controllers\Controller; use App\Http\Controllers\Controller;
use App\User; use App\User;
...@@ -26,10 +27,10 @@ class AdminController extends Controller ...@@ -26,10 +27,10 @@ class AdminController extends Controller
$input = $request->all(); $input = $request->all();
if($username = DB::table('users')->where('username' , $input['username'])->first()){ if($username = DB::table('users')->where('username' , $input['username'])->first()){
return redirect()->back()->with('info','We are so sorry :( .Username is exists. Please choose another username'); return redirect()->back()->with('info','We are so sorry :-( .Username is exists. Please choose another username');
}else{ }else{
User::create(['username' => $input['username'],'password' => bcrypt($input['password']),'role' => $input['role']])->id; User::create(['username' => $input['username'],'password' => bcrypt($input['password']),'role' => $input['role']])->id;
return redirect(url('/admin/user'))->with('info','Data User Berhasil ditambah'); return redirect(url('/admin/user'))->with('info box','Data User Berhasil ditambah');
} }
} }
......
...@@ -20,7 +20,7 @@ class LoginController extends Controller ...@@ -20,7 +20,7 @@ class LoginController extends Controller
//$this->middleware('guest', ['except' => 'logout']); //$this->middleware('guest', ['except' => 'logout']);
} }
// <!-- code : login - krs app - arnosa.net - and modified by group 9 -->
public function Login(Request $request){ public function Login(Request $request){
$validator = Validator::make($request->all(), [ $validator = Validator::make($request->all(), [
'username' => 'required|exists:users,username', 'username' => 'required|exists:users,username',
......
...@@ -14,6 +14,7 @@ use App\Models\Users; ...@@ -14,6 +14,7 @@ use App\Models\Users;
use App\Models\Supir; use App\Models\Supir;
use App\Models\Pemesanan; use App\Models\Pemesanan;
use App\Models\Konfirmasi; use App\Models\Konfirmasi;
use App\Models\Jadwal;
use Validator; use Validator;
use App\Http\Controllers\Controller; use App\Http\Controllers\Controller;
use App\User; use App\User;
...@@ -130,4 +131,35 @@ class K_SupirController extends Controller ...@@ -130,4 +131,35 @@ class K_SupirController extends Controller
$this->data['konfirmasi'] = Konfirmasi::find($id); $this->data['konfirmasi'] = Konfirmasi::find($id);
return view('k_supir.history.detail',$this->data); return view('k_supir.history.detail',$this->data);
} }
public function supir(){
$key = Input::get('search');
$this->data['title'] = 'Supir Bus IT Del';
if(isset($key)){
$this->data['supir'] = Supir::where('nama_bus','like','%'.$key.'%')->orderBy('id','desc')->paginate(10);
}else{
$this->data['supir'] = Supir::orderBy('id','desc')->paginate(10);
}
$this->data['total'] = DB::table('supir')->get();
return view('k_supir.supir.index',$this->data);
}
public function detailsupir($id){
$this->data['title'] = 'Detail Supir';
$this->data['supir'] = Supir::find($id);
return view('k_supir.supir.detail',$this->data);
}
public function jadwal(){
$key = Input::get('search');
$this->data['title'] = 'Jadwal Supir IT Del';
if(isset($key)){
$this->data['jadwal'] = Jadwal::where('hari','like','%'.$key.'%')->orderBy('id','asc')->paginate(10);
}else{
$this->data['jadwal'] = Jadwal::orderBy('id','asc')->paginate(10);
}
$this->data['total'] = DB::table('jadwal')->get();
return view('k_supir.supir.jadwal',$this->data);
}
} }
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
namespace App\Http\Controllers; namespace App\Http\Controllers;
use App\User;
use Illuminate\Http\Request; use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Auth;
...@@ -113,4 +114,15 @@ class KlienController extends Controller ...@@ -113,4 +114,15 @@ class KlienController extends Controller
$this->data['pemesanan'] = Pemesanan::find($id); $this->data['pemesanan'] = Pemesanan::find($id);
return view('klien.history.detail',$this->data); return view('klien.history.detail',$this->data);
} }
public function profil(){
$this->data['title'] = 'Profil';
return view('klien.profil.index',$this->data);
}
public function ubah_profil(){
$this->data['title'] = 'Profil';
return view('klien.profil.ubah',$this->data);
}
} }
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Jadwal extends Model
{
protected $table = 'jadwal';
protected $fillable = ['hari'];
//
}
\ No newline at end of file
...@@ -7,6 +7,6 @@ use Illuminate\Database\Eloquent\Model; ...@@ -7,6 +7,6 @@ use Illuminate\Database\Eloquent\Model;
class Users extends Model class Users extends Model
{ {
protected $table = 'users'; protected $table = 'users';
protected $fillable = ['username','password','role']; protected $fillable = ['username','password','role','remember_token'];
// //
} }
\ No newline at end of file
-- phpMyAdmin SQL Dump
-- version 4.5.1
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: 12 Mei 2017 pada 11.23
-- Versi Server: 10.1.16-MariaDB
-- PHP Version: 7.0.9
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
-- --
-- Database: `pemesanan_bus` -- Database: `pemesanan_bus`
-- --
...@@ -45,12 +27,12 @@ CREATE TABLE `batal` ( ...@@ -45,12 +27,12 @@ CREATE TABLE `batal` (
-- --
INSERT INTO `batal` (`id`, `tujuan`, `jumlah`, `alasan`, `berangkat`, `kembali`, `client_username`, `plat_bus`, `alasan_batal`, `created_at`, `updated_at`) VALUES INSERT INTO `batal` (`id`, `tujuan`, `jumlah`, `alasan`, `berangkat`, `kembali`, `client_username`, `plat_bus`, `alasan_batal`, `created_at`, `updated_at`) VALUES
(1, 'Medan', 10, 'Jalan-Jalan', '2016-10-10', '2017-10-10', 'klien', ' ', 'Mau Mati', '2017-05-08 20:59:32', '2017-05-08 20:59:32'), (1, 'Medan', 10, 'Jalan-Jalan', '2016-10-10', '2017-10-10', 'klien', ' ', 'Mau Mati', '2017-05-08 13:59:32', '2017-05-08 13:59:32'),
(2, 'Medan', 10, 'Mau ke surga', '2016-10-10', '2017-10-10', 'klien', ' ', 'Mau ke surga', '2017-05-09 02:02:07', '2017-05-09 02:02:07'), (2, 'Medan', 10, 'Mau ke surga', '2016-10-10', '2017-10-10', 'klien', ' ', 'Mau ke surga', '2017-05-08 19:02:07', '2017-05-08 19:02:07'),
(3, 'Medan', 10, 'Jalan-Jalan', '2016-10-10', '2017-10-10', 'klien', ' ', 'Surga Lagi', '2017-05-09 02:02:23', '2017-05-09 02:02:23'), (3, 'Medan', 10, 'Jalan-Jalan', '2016-10-10', '2017-10-10', 'klien', ' ', 'Surga Lagi', '2017-05-08 19:02:23', '2017-05-08 19:02:23'),
(4, 'Semarang', 10, 'MIPA', '2016-10-10', '2017-10-10', 'test', ' ', 'Malas Aja', '2017-05-09 02:17:32', '2017-05-09 02:17:32'), (4, 'Semarang', 10, 'MIPA', '2016-10-10', '2017-10-10', 'test', ' ', 'Malas Aja', '2017-05-08 19:17:32', '2017-05-08 19:17:32'),
(5, 'Jakarta', 10, 'MIPA', '2016-10-10', '2017-10-10', 'klien', ' ', 'Malas Aja', '2017-05-09 02:44:56', '2017-05-09 02:44:56'), (5, 'Jakarta', 10, 'MIPA', '2016-10-10', '2017-10-10', 'klien', ' ', 'Malas Aja', '2017-05-08 19:44:56', '2017-05-08 19:44:56'),
(6, 'GARUT', 10, 'BELAJAT', '0000-00-00', '2017-03-04', 'klien', ' ', 'NAIK BBM', '2017-05-09 20:43:54', '2017-05-09 20:43:54'); (6, 'GARUT', 10, 'BELAJAT', '0000-00-00', '2017-03-04', 'klien', ' ', 'NAIK BBM', '2017-05-09 13:43:54', '2017-05-09 13:43:54');
-- -------------------------------------------------------- -- --------------------------------------------------------
...@@ -62,9 +44,9 @@ CREATE TABLE `bus` ( ...@@ -62,9 +44,9 @@ CREATE TABLE `bus` (
`id` int(10) NOT NULL, `id` int(10) NOT NULL,
`nama_bus` varchar(100) NOT NULL, `nama_bus` varchar(100) NOT NULL,
`jenis_bus` varchar(100) NOT NULL, `jenis_bus` varchar(100) NOT NULL,
`plat_bus` varchar(100) NOT NULL, `plat_bus` varchar(1000) NOT NULL,
`deskripsi` text NOT NULL, `deskripsi` text NOT NULL,
`image` varchar(100) NOT NULL, `image` varchar(1000) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1; ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
...@@ -74,8 +56,9 @@ CREATE TABLE `bus` ( ...@@ -74,8 +56,9 @@ CREATE TABLE `bus` (
-- --
INSERT INTO `bus` (`id`, `nama_bus`, `jenis_bus`, `plat_bus`, `deskripsi`, `image`, `created_at`, `updated_at`) VALUES INSERT INTO `bus` (`id`, `nama_bus`, `jenis_bus`, `plat_bus`, `deskripsi`, `image`, `created_at`, `updated_at`) VALUES
(1, 'Optimus', 'Autobot', '911', 'Optimus Prime', '1493174984.jpg', '2017-04-25 00:29:05', '2017-04-25 19:49:44'), (1, 'Optimus', 'Autobot', '911', 'Optimus Prime', '1493174984.jpg', '2017-04-24 17:29:05', '2017-04-25 12:49:44'),
(4, 'Bumble Bee', 'Autobot', '912', 'Killer Bee', '1493344306.jpg', '2017-04-27 18:51:47', '2017-04-27 18:52:02'); (4, 'Bumble Bee', 'Autobot', '912', 'Killer Bee', '1494822927.jpg', '2017-04-27 11:51:47', '2017-05-14 14:35:27'),
(8, 'Perkasa', 'Truck', 'BB 8387 CE', 'Kapasitas 30 orang', '1494836360.jpg', '2017-05-14 18:19:20', '2017-05-14 18:19:20');
-- -------------------------------------------------------- -- --------------------------------------------------------
...@@ -97,13 +80,6 @@ CREATE TABLE `pemesanan` ( ...@@ -97,13 +80,6 @@ CREATE TABLE `pemesanan` (
`updated_at` timestamp NULL DEFAULT NULL `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1; ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `pemesanan`
--
INSERT INTO `pemesanan` (`id`, `tujuan`, `jumlah`, `alasan`, `berangkat`, `kembali`, `client_username`, `plat_bus`, `status`, `created_at`, `updated_at`) VALUES
(26, 'Bandung', 10, 'Study tour', '2017-05-14', '2017-05-17', 'klien', '912', 'request', '2017-05-09 19:44:23', '2017-05-09 19:44:23');
-- -------------------------------------------------------- -- --------------------------------------------------------
-- --
...@@ -117,7 +93,7 @@ CREATE TABLE `supir` ( ...@@ -117,7 +93,7 @@ CREATE TABLE `supir` (
`alamat` varchar(100) NOT NULL, `alamat` varchar(100) NOT NULL,
`jk` varchar(100) NOT NULL, `jk` varchar(100) NOT NULL,
`agama` varchar(100) NOT NULL, `agama` varchar(100) NOT NULL,
`image` varchar(100) NOT NULL, `image` varchar(1000) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1; ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
...@@ -127,7 +103,7 @@ CREATE TABLE `supir` ( ...@@ -127,7 +103,7 @@ CREATE TABLE `supir` (
-- --
INSERT INTO `supir` (`id`, `nama_supir`, `ttl`, `alamat`, `jk`, `agama`, `image`, `created_at`, `updated_at`) VALUES INSERT INTO `supir` (`id`, `nama_supir`, `ttl`, `alamat`, `jk`, `agama`, `image`, `created_at`, `updated_at`) VALUES
(123, 'Supir', 'Sitoluama / 09-11-1996', 'Sitoluama', 'Laki-Laki', 'Lain', '1493345735.jpg', '2017-04-27 19:15:35', '2017-04-27 19:39:11'); (123, 'Supir', 'Sitoluama / 09-11-1996', 'Sitoluama', 'Laki-Laki', 'Lain', '1493345735.jpg', '2017-04-27 12:15:35', '2017-04-27 12:39:11');
-- -------------------------------------------------------- -- --------------------------------------------------------
...@@ -150,9 +126,9 @@ CREATE TABLE `users` ( ...@@ -150,9 +126,9 @@ CREATE TABLE `users` (
-- --
INSERT INTO `users` (`id`, `username`, `password`, `role`, `remember_token`, `created_at`, `updated_at`) VALUES INSERT INTO `users` (`id`, `username`, `password`, `role`, `remember_token`, `created_at`, `updated_at`) VALUES
(2, 'k_klien', '$2y$10$RYpRtEdIeZoAhvhZJqDyUuwPq5t4jQIhRgyx8sUk2h4gKmP60dm.2', 'admin', 'yULUbsjStbXyR98yMSjpSdvl9qKMocrwB0sNBULxtU09KHswvCTB7rmG61sA', '2017-04-10 21:30:13', '2017-05-09 20:49:43'), (2, 'k_klien', '$2y$10$RYpRtEdIeZoAhvhZJqDyUuwPq5t4jQIhRgyx8sUk2h4gKmP60dm.2', 'admin', 'ZolY6T7tuo30qr6bRwhndEUHeOcUF8vtuH1yulTyPUNntFD0APd7px3QvDI6', '2017-04-10 14:30:13', '2017-05-18 03:11:25'),
(4, 'k_supir', '$2y$10$uFVdCb3I5aoQuKX474arD.Jo4KjXCiejs4uMDNzYudRe.FTxdvn8S', 'k_supir', 'kqC7vPPEUTVSHx5PkSp9WaCE5FRQBaovCe42ClDcA2wGGcyb90Q7Rsihhcs8', '2017-04-18 21:02:08', '2017-05-09 20:42:03'), (4, 'k_supir', '$2y$10$uFVdCb3I5aoQuKX474arD.Jo4KjXCiejs4uMDNzYudRe.FTxdvn8S', 'k_supir', 'ffE9cqJeQm31h8mSTGsQD8KmK71ueZc86IqzkRQZYA0FdHCJo7HhDPv4fPn9', '2017-04-18 14:02:08', '2017-05-18 03:10:50'),
(7, 'klien', '$2y$10$YK4Otf.9YAXfxS4LI5MS/uydscvcS0oqIEHAncAodOpFgulK02UFm', 'klien', 'cB2G1oqNRffz9fkfTAkD1KW1iWITTdDOqW6wKDlo2ENWrXtJLAoN3OzQNhsh', '2017-04-21 07:39:53', '2017-05-09 20:50:40'); (7, 'klien', '$2y$10$YK4Otf.9YAXfxS4LI5MS/uydscvcS0oqIEHAncAodOpFgulK02UFm', 'klien', 'sJKqYy96MGFlu5Ts1rFgdQk3Ccfdh7ghfZ4zVFpQBETomugzA6lxRG7MPd74', '2017-04-21 00:39:53', '2017-05-18 03:05:10');
-- --
-- Indexes for dumped tables -- Indexes for dumped tables
...@@ -202,12 +178,12 @@ ALTER TABLE `batal` ...@@ -202,12 +178,12 @@ ALTER TABLE `batal`
-- AUTO_INCREMENT for table `bus` -- AUTO_INCREMENT for table `bus`
-- --
ALTER TABLE `bus` ALTER TABLE `bus`
MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
-- --
-- AUTO_INCREMENT for table `pemesanan` -- AUTO_INCREMENT for table `pemesanan`
-- --
ALTER TABLE `pemesanan` ALTER TABLE `pemesanan`
MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=27; MODIFY `id` int(10) NOT NULL AUTO_INCREMENT;
-- --
-- AUTO_INCREMENT for table `users` -- AUTO_INCREMENT for table `users`
-- --
......
...@@ -65,8 +65,6 @@ ...@@ -65,8 +65,6 @@
</div> </div>
<!-- /.box --> <!-- /.box -->
</div> </div>
</div> </div>
</section> </section>
<!-- /.content --> <!-- /.content -->
......
...@@ -71,6 +71,7 @@ ...@@ -71,6 +71,7 @@
<!-- /.box-body --> <!-- /.box-body -->
<div class="box-footer"> <div class="box-footer">
<a href="{{url('admin/user/tambah')}}" class="btn btn-danger">Tambah User</a> <a href="{{url('admin/user/tambah')}}" class="btn btn-danger">Tambah User</a>
<i class="fa fa-user-plus"></i>
</div> </div>
</div> </div>
<!-- /.box --> <!-- /.box -->
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
<div class="login-box"> <div class="login-box">
<!-- /.login-logo --> <!-- /.login-logo -->
<div class="login-box-body"> <div class="login-box-body">
<p class="login-box-msg">Add new User Sistem</p> <p class="login-box-msg"><span class="glyphicon glyphicon-user"></span> Add new User Sistem</p>
<form action="{{route('admin.store')}}" method="post" enctype="multipart/form-data"> <form action="{{route('admin.store')}}" method="post" enctype="multipart/form-data">
{{ csrf_field() }} {{ csrf_field() }}
<div class="form-group has-feedback"> <div class="form-group has-feedback">
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
<input class="form-control" type="password" name="password" required/> <input class="form-control" type="password" name="password" required/>
<span class="glyphicon glyphicon-lock form-control-feedback"></span> <span class="glyphicon glyphicon-lock form-control-feedback"></span>
</div> </div>
<div class="form-group has-feedback"> <div class="form-group has-feedback">
<label class="col-md-4 control-label">Role</label> <label class="col-md-4 control-label">Role</label>
<select class="form-control" name="role" required> <select class="form-control" name="role" required>
...@@ -42,8 +43,9 @@ ...@@ -42,8 +43,9 @@
</div> </div>
<div class="row"> <div class="row">
<!-- /.col --> <!-- /.col -->
<div class="col-xs-4"> <div class="col-xs-6">
<input type="submit" value="Tambah User" class="btn btn-danger"> <input type="submit" value="Tambah User" class="btn btn-danger">
<i class="fa fa-user-plus"></i>
</div> </div>
<!-- /.col --> <!-- /.col -->
</div> </div>
......
...@@ -30,7 +30,6 @@ ...@@ -30,7 +30,6 @@
<!-- /.col --> <!-- /.col -->
</div> </div>
</form> </form>
<a class="text-center" href="{{url('/register')}}">Register a new membership</a>
</div> </div>
<!-- /.login-box-body --> <!-- /.login-box-body -->
</div> </div>
......
...@@ -6,34 +6,26 @@ ...@@ -6,34 +6,26 @@
<div class="wrapper" style="height: auto;"> <div class="wrapper" style="height: auto;">
<div class="content-wrapper"> <div class="content-wrapper">
<!-- Content Header (Page header) --> <!-- Content Header (Page header) -->
<section class="content-header"></section> <section id="content-menu" class="content-menu">
<div class="module-menu-container"></div>
<ol class="breadcrumb"><li><a href="/"><i class="fa fa-home"></i> Home</a></li>
<a href="#" data-skin="skin-blue" class="btn btn-primary btn-xs"><i class="fa fa-eye"></i></a>
<a href="#" data-skin="skin-blue-light" class="btn btn-primary btn-xs"><i class="fa fa-eye"></i></a>
<a href="#" data-skin="skin-yellow" class="btn btn-warning btn-xs"><i class="fa fa-eye"></i></a>
<a href="#" data-skin="skin-yellow-light" class="btn btn-warning btn-xs"><i class="fa fa-eye"></i></a>
<a href="#" data-skin="skin-green" class="btn btn-success btn-xs"><i class="fa fa-eye"></i></a>
<a href="#" data-skin="skin-green-light" class="btn btn-success btn-xs"><i class="fa fa-eye"></i></a>
<a href="#" data-skin="skin-purple" class="btn bg-purple btn-xs"><i class="fa fa-eye"></i></a>
<a href="#" data-skin="skin-purple-light" class="btn bg-purple btn-xs"><i class="fa fa-eye"></i></a>
<a href="#" data-skin="skin-red" class="btn btn-danger btn-xs"><i class="fa fa-eye"></i></a>
<a href="#" data-skin="skin-red-light" class="btn btn-danger btn-xs"><i class="fa fa-eye"></i></a>
<a href="#" data-skin="skin-black" class="btn bg-black btn-xs"><i class="fa fa-eye"></i></a>
<a href="#" data-skin="skin-black-light" class="btn bg-black btn-xs"><i class="fa fa-eye"></i></a>
</ol><!-- breadcrumbs -->
</section>
<!-- Main content --> <!-- Main content -->
<section class="content"> <section class="content">
<div class="row">
<div class="callout callout-danger">
<h4>I am a danger callout!</h4>
<p>There is a problem that we need to fix. A wonderful serenity has taken possession of my entire soul,
like these sweet mornings of spring which I enjoy with my whole heart.</p>
</div>
<div class="callout callout-info">
<h4>I am an info callout!</h4>
<p>Follow the steps to continue to payment.</p>
</div>
<div class="callout callout-warning">
<h4>I am a warning callout!</h4>
<p>This is a yellow callout.</p>
</div>
<div class="callout callout-success">
<h4>I am a success callout!</h4>
<p>This is a green callout.</p>
</div>
</div>
<!-- /.row --> <!-- /.row -->
<div class="row"></div> <div class="row"></div>
</section> </section>
......
@if(Auth::check())
@extends('layouts.layout')
@include('layouts.header')
<body class="skin-blue sidebar-mini" style="height: auto;">
<div class="wrapper" style="height: auto;">
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section id="content-menu" class="content-menu">
<div class="module-menu-container"></div>
<ol class="breadcrumb"><li><a href="/"><i class="fa-home"></i> Home</a></li>
<li class="active"><i class="fa-users"></i>Supir</li>
<li class="active"><i class="fa-users"></i>Detail Supir</li>
</ol><!-- breadcrumbs -->
</section>
<!-- Main content -->
<section class="content">
<!-- /.row -->
<div class="row">
<div class="col-md-6">
<!-- Box Comment -->
<div class="box box-widget">
<div class="box-header with-border">
<div class="user-block">
<img style="display: block;margin-left: auto;margin-right: auto;" src="{{ asset('image/' . $supir->image) }}"/>
<span class="username">{{$supir->nama_bus}}</span>
</div>
<!-- /.user-block -->
<div class="box-tools">
<button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
</div>
<!-- /.box-tools -->
</div>
<!-- /.box-header -->
<div class="box-body">
<img style="display: block;margin-left: auto;margin-right: auto;" src="{{ asset('image/' . $supir->image) }}"/>
</div>
<!-- /.box-footer -->
<div class="box-footer">
<form action="" method="post">
{{ csrf_field() }}
<div class="form-group has-feedback">
<label class="col-md-4 control-label">ID Supir</label>
<input type="text" class="form-control" name="id" value="{{$supir->id}}" readonly>
</div>
<div class="form-group has-feedback">
<label class="col-md-4 control-label">Nama Supir</label>
<input type="text" class="form-control" name="nama_supir" value="{{$supir->nama_supir}}" readonly>
</div>
<div class="form-group has-feedback">
<label class="col-md-4 control-label">Tempat/Tgl Lahir</label>
<input type="text" class="form-control" name="ttl" value="{{$supir->ttl}}" readonly>
</div>
<div class="form-group has-feedback">
<label class="col-md-4 control-label">Alamat</label>
<input type="text" class="form-control" name="alamat" value="{{$supir->alamat}}" readonly>
</div>
<div class="form-group has-feedback">
<label class="col-md-4 control-label">Jenis Kelamin</label>
<input type="text" class="form-control" name="jk" value="{{$supir->jk}}" readonly>
</div>
<div class="form-group has-feedback">
<label class="col-md-4 control-label">Agama</label>
<input type="text" class="form-control" name="agama" value="{{$supir->agama}}" readonly>
</div>
</form><br>
</div>
<!-- /.box-footer -->
</div>
<!-- /.box -->
</div>
<!-- /.col -->
</div>
</section>
<!-- /.content -->
</div>
</div>
</body>
@endif
\ No newline at end of file
@if(Auth::check())
@extends('layouts.layout')
@include('layouts.header')
<body class="skin-blue sidebar-mini" style="height: auto;">
<div class="wrapper" style="height: auto;">
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section id="content-menu" class="content-menu">
<div class="module-menu-container"></div>
<ol class="breadcrumb"><li><a href="/"><i class="fa-home"></i> Home</a></li>
<li class="active"><i class="fa-users"></i>Supir</li>
</ol><!-- breadcrumbs -->
</section>
<!-- Main content -->
<section class="content">
<!-- /.row -->
<div class="row">
<div class="col-xs-12">
<div class="box box-primary">
<div class="box-header">
<h3 class="box-title">Supir</h3>
<div class="box-tools">
<form action="{{url('/admin/supir')}}">
<div class="input-group input-group-sm" style="width: 150px;">
<input type="text" name="search" class="form-control pull-right"
placeholder="Username" id="search" type="text">
<div class="input-group-btn">
<button type="submit" class="btn btn-default"><i class="fa fa-search"></i></button>
</div>
</div>
</form>
</div>
<div class="form-group">
<?php $jumlah=0 ?>
@foreach($total as $tot)
<?php $jumlah++ ?>
@endforeach
<h4>Total Supir = {{$jumlah}}</h4>
</div>
</div>
<!-- /.box-header -->
<div class="box-body table-responsive no-padding">
<table class="table table-hover">
<thead><tr>
<th>Nama Supir</th>
<th>ID Supir</th>
<th>Aksi</th>
</tr></thead>
<tbody>
@foreach($supir as $supi)
<tr>
<td>{{$supi->nama_supir}}</td>
<td>{{$supi->id}}</td>
<td colspan="2">
<a href="{{url('k_supir/supir/detail',$supi->id)}}" class="btn btn-danger">Detail</a>
</td>
</tr>
</form>
@endforeach
</tbody>
</table>
{{$supir->links()}}
</div>
</div>
<!-- /.box -->
</div>
</div>
</section>
<!-- /.content -->
</div>
</div>
</body>
@endif
\ No newline at end of file
@if(Auth::check())
@extends('layouts.layout')
@include('layouts.header')
<body class="skin-blue sidebar-mini" style="height: auto;">
<div class="wrapper" style="height: auto;">
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section id="content-menu" class="content-menu">
<div class="module-menu-container"></div>
<ol class="breadcrumb"><li><a href="/"><i class="fa fa-home"></i> Home</a></li>
<li class="active"><i class="fa fa-users"></i>Supir</li>
</ol><!-- breadcrumbs -->
</section>
<!-- Main content -->
<section class="content">
<!-- /.row -->
<div class="row">
<div class="col-xs-12">
<div class="box box-primary">
<div class="box-header">
<h3 class="box-title">Jadwal Supir</h3>
<div class="box-tools"></div>
</div>
<!-- /.box-header -->
<div class="box-body table-responsive no-padding">
<table class="table table-hover">
<thead>
<tr>
<th>Hari</th>
<th>Nama Supir 1</th>
<th>ON/OFF</th>
<th>Nama Supir 2</th>
<th>ON/OFF</th>
</tr>
</thead>
<tbody>
@foreach($jadwal as $jad)
<tr>
<td><b>{{$jad->hari}}</b></td>
<td></td>
<td>
<div id="realtime" class="btn-group" data-toggle="btn-toggle">
<button type="button" class="btn btn-default btn-xs active" data-toggle="on">On</button>
<button type="button" class="btn btn-default btn-xs" data-toggle="off">Off</button>
</div>
</td>
<td></td>
<td>
<div id="realtime" class="btn-group" data-toggle="btn-toggle">
<button type="button" class="btn btn-default btn-xs active" data-toggle="on">On</button>
<button type="button" class="btn btn-default btn-xs" data-toggle="off">Off</button>
</div>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
<!-- /.box-body -->
<div class="box-footer"></div>
</div>
<!-- /.box -->
</div>
</div>
</section>
<!-- /.content -->
</div>
</div>
</body>
@endif
\ No newline at end of file
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<section id="content-menu" class="content-menu"> <section id="content-menu" class="content-menu">
<div class="module-menu-container"></div> <div class="module-menu-container"></div>
<ol class="breadcrumb"><li><a href="{{url('/')}}"><i class="fa fa-home"></i> Home</a></li> <ol class="breadcrumb"><li><a href="{{url('/')}}"><i class="fa fa-home"></i> Home</a></li>
<li class="active"><i class="fa fa-bus"></i> Pemesanan Bus</li> <li class="active"><i class="fa fa-clipboard"></i> Riwayat Pemesanan</li>
</ol><!-- breadcrumbs --> </ol><!-- breadcrumbs -->
</section> </section>
......
...@@ -62,24 +62,22 @@ ...@@ -62,24 +62,22 @@
<div class="col-md-6"> <div class="col-md-6">
<div class="form-group"> <div class="form-group">
<label>Rencana Keberangkatan:</label> <label>Rencana Keberangkatan:</label>
<div class="input-group date">
<div class="input-group">
<div class="input-group-addon"> <div class="input-group-addon">
<i class="fa fa-calendar"></i> <i class="fa fa-calendar"></i>
</div> </div>
<input class="form-control" placeholder="yyyy-mm-dd" data-inputmask="'alias': 'yyyy-mm-dd'" data-mask="" type="date" name="berangkat" required> <input class="form-control pull-right" id="datepicker" type="text" name="berangkat" required>
</div> </div>
<!-- /.input group --> <!-- /.input group -->
</div> </div>
<!-- /.form-group --> <!-- /.form-group -->
<div class="form-group"> <div class="form-group">
<label>Rencana Kembali:</label> <label>Rencana Kembali:</label>
<div class="input-group date">
<div class="input-group">
<div class="input-group-addon"> <div class="input-group-addon">
<i class="fa fa-calendar"></i> <i class="fa fa-calendar"></i>
</div> </div>
<input class="form-control" placeholder="yyyy-mm-dd" data-inputmask="'alias': 'yyyy-mm-dd'" data-mask="" type="date" name="kembali" required> <input class="form-control pull-right" id="datepicker" type="text" name="kembali" required>
</div> </div>
<!-- /.input group --> <!-- /.input group -->
</div> </div>
......
@if(Auth::check())
@extends('layouts.layout')
@include('layouts.header')
<body class="skin-blue sidebar-mini" style="height: auto;">
<div class="wrapper" style="height: auto;">
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section id="content-menu" class="content-menu">
<div class="module-menu-container"></div>
<ol class="breadcrumb"><li><a href="/"><i class="fa-home"></i> Home</a></li>
<li class="active"><i class="fa-users"></i>Profil</li>
</ol><!-- breadcrumbs -->
</section>
<!-- Main content -->
<section class="content">
<!-- /.row -->
<div class="row">
<div class="col-md-4">
<!-- Profile Image -->
<div class="box box-primary">
<div class="box-body box-profile">
<img class="profile-user-img img-responsive img-circle" src="{{ asset('image/' . Auth::user()->image) }}"/>
<h3 class="profile-username text-center"><span class="hidden-xs">{{ Auth::user()->username }}</span></h3>
<p class="text-muted text-center">Klien Sistem</p>
<ul class="list-group list-group-unbordered">
<li class="list-group-item">
<b>Nama Depan</b> <a class="pull-right">{{ Auth::user()->nama_depan }}</a>
</li>
<li class="list-group-item">
<b>Nama Belakang</b> <a class="pull-right">{{ Auth::user()->nama_belakang }}</a>
</li>
</ul>
<a href="{{url('klien/profil/ubah')}}" class="btn btn-primary btn-block"><b>Ubah</b></a>
</div>
<!-- /.box-body -->
</div>
<!-- /.box -->
</div>
</div>
</section>
<!-- /.content -->
</div>
</div>
</body>
@endif
\ No newline at end of file
@if(Auth::check())
@extends('layouts.layout')
@include('layouts.header')
<body class="skin-blue sidebar-mini" style="height: auto;">
<div class="wrapper" style="height: auto;">
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section id="content-menu" class="content-menu">
<div class="module-menu-container"></div>
<ol class="breadcrumb"><li><a href="/"><i class="fa-home"></i> Home</a></li>
<li class="active"><i class="fa-users"></i>Profil</li>
</ol><!-- breadcrumbs -->
</section>
<!-- Main content -->
<section class="content">
<!-- /.row -->
<div class="row">
<div class="col-md-4">
<!-- Profile Image -->
<div class="box box-primary">
<div class="box-body box-profile">
<img class="profile-user-img img-responsive img-circle" src="{{ asset('image/' . Auth::user()->image) }}" alt="Klien profile picture">
<h3 class="profile-username text-center"><span class="hidden-xs">{{ Auth::user()->username }}</span></h3>
<p class="text-muted text-center">Klien Sistem</p>
<ul class="list-group list-group-unbordered">
<li class="list-group-item">
<b>Nama Depan</b> <a class="pull-right">{{ Auth::user()->nama_depan }}</a>
</li>
<li class="list-group-item">
<b>Nama Belakang</b> <a class="pull-right">{{ Auth::user()->nama_belakang }}</a>
</li>
</ul>
<div class="form-group">
<input type="submit" value="Kirim" class="btn btn-primary btn-block">
</div>
</div>
<!-- /.box-body -->
</div>
<!-- /.box -->
</div>
</div>
</section>
<!-- /.content -->
</div>
</div>
</body>
@endif
\ No newline at end of file
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
<!-- Menu Footer--> <!-- Menu Footer-->
<li class="user-footer"> <li class="user-footer">
<div class="pull-left"> <div class="pull-left">
<a href="{{url('admin/profil')}}" class="btn btn-default btn-flat">Profile</a> <a href="{{url('klien/profil')}}" class="btn btn-default btn-flat">Profile</a>
</div> </div>
<div class="pull-right"> <div class="pull-right">
<a href="{{url('/logout')}}" class="btn btn-default btn-flat">Sign out</a> <a href="{{url('/logout')}}" class="btn btn-default btn-flat">Sign out</a>
...@@ -95,7 +95,7 @@ ...@@ -95,7 +95,7 @@
<!-- Menu Footer--> <!-- Menu Footer-->
<li class="user-footer"> <li class="user-footer">
<div class="pull-left"> <div class="pull-left">
<a href="{{url('admin/profil')}}" class="btn btn-default btn-flat">Profile</a> <a href="{{url('k_supir/profil')}}" class="btn btn-default btn-flat">Profile</a>
</div> </div>
<div class="pull-right"> <div class="pull-right">
<a href="{{url('/logout')}}" class="btn btn-default btn-flat">Sign out</a> <a href="{{url('/logout')}}" class="btn btn-default btn-flat">Sign out</a>
......
...@@ -18,8 +18,8 @@ ...@@ -18,8 +18,8 @@
<div class="input-group"> <div class="input-group">
<input type="text" name="q" class="form-control" placeholder="Search..."> <input type="text" name="q" class="form-control" placeholder="Search...">
<span class="input-group-btn"> <span class="input-group-btn">
<button type="submit" name="search" id="search-btn" class="btn btn-flat"><i class="fa fa-search"></i></button> <button type="submit" name="search" id="search-btn" class="btn btn-flat">
</span> <i class="fa fa-search"></i></button></span>
</div> </div>
</form> </form>
<!-- /.search form --> <!-- /.search form -->
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
</li> </li>
<li class="{{Request::segment(2) == 'bus' ? 'active' : ''}}"> <li class="{{Request::segment(2) == 'bus' ? 'active' : ''}}">
<a href="{{url('admin/bus')}}"> <a href="{{url('admin/bus')}}">
<i class="fa fa-truck"></i> <span>Bus</span> <i class="fa fa-truck"></i> <span>Kendaraan</span>
</a> </a>
</li> </li>
...@@ -46,6 +46,7 @@ ...@@ -46,6 +46,7 @@
<a href="#"><span>Supir</span> <i class="fa fa-angle-left pull-right"></i></a> <a href="#"><span>Supir</span> <i class="fa fa-angle-left pull-right"></i></a>
<ul class="treeview-menu"> <ul class="treeview-menu">
<li><a href="{{url('admin/supir')}}">Data Supir</a></li> <li><a href="{{url('admin/supir')}}">Data Supir</a></li>
<li><a href="{{url('admin/supir')}}">Jadwal Supir</a></li>
</ul> </ul>
</li> </li>
...@@ -108,17 +109,19 @@ ...@@ -108,17 +109,19 @@
</li> </li>
<li class="{{Request::segment(2) == 'bus' ? 'active' : ''}}"> <li class="{{Request::segment(2) == 'bus' ? 'active' : ''}}">
<a href="{{url('k_supir/bus')}}"> <a href="{{url('k_supir/bus')}}">
<i class="fa-truck"></i> <span>Bus</span> <i class="fa fa-truck"></i> <span>Kendaraan</span>
</a> </a>
</li> </li>
<li class="{{Request::segment(2) == 'bus' ? 'active' : ''}}"> <li class="treeview {{Request::segment(2) == 'supir' ? 'active' : ''}}">
<a href="{{url('k_supir/bus')}}"> <a href="#"><i class="fa fa-user-secret"></i><span>Supir</span> <i class="fa fa-angle-left pull-right"></i></a>
<i class="fa-truck"></i> <span>Jadwal Supir</span> <ul class="treeview-menu">
</a> <li><a href="{{url('k_supir/supir')}}">Data Supir</a></li>
<li><a href="{{url('k_supir/supir/jadwal')}}">Jadwal Supir</a></li>
</ul>
</li> </li>
<li class="{{Request::segment(2) == 'riwayat' ? 'active' : ''}}"> <li class="{{Request::segment(2) == 'riwayat' ? 'active' : ''}}">
<a href="{{url('k_supir/history')}}"> <a href="{{url('k_supir/history')}}">
<i class="fa fa-group"></i> <i class="fa fa fa-group"></i>
<span>Riwayat</span> <span>Riwayat</span>
</a> </a>
</li> </li>
......
...@@ -5,6 +5,7 @@ Use App\Models\Users; ...@@ -5,6 +5,7 @@ Use App\Models\Users;
Use App\Models\Pemesanan; Use App\Models\Pemesanan;
Use App\Models\Batal; Use App\Models\Batal;
use App\Models\Konfirmasi; use App\Models\Konfirmasi;
use App\Models\Jadwal;
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| Web Routes | Web Routes
...@@ -87,6 +88,9 @@ Route::group(['prefix' => 'k_supir','middleware' => 'k_supir'], function() { ...@@ -87,6 +88,9 @@ Route::group(['prefix' => 'k_supir','middleware' => 'k_supir'], function() {
Route::get('/pemesanan/pilih_bus/{id}','K_SupirController@pilih_bus'); Route::get('/pemesanan/pilih_bus/{id}','K_SupirController@pilih_bus');
Route::get('/history','K_SupirController@history'); Route::get('/history','K_SupirController@history');
Route::get('/history/detail/{id}','K_SupirController@history_detail'); Route::get('/history/detail/{id}','K_SupirController@history_detail');
Route::get('/supir','K_SupirController@supir');
Route::get('/supir/detail/{id}','K_SupirController@detailsupir');
Route::get('/supir/jadwal','K_SupirController@jadwal');
}); });
...@@ -108,4 +112,6 @@ Route::group(['prefix' => 'klien','middleware' => 'klien'], function() { ...@@ -108,4 +112,6 @@ Route::group(['prefix' => 'klien','middleware' => 'klien'], function() {
Route::get('/status/batal/{id}','KlienController@batal'); Route::get('/status/batal/{id}','KlienController@batal');
Route::post('/kirim_pembatalan','KlienController@kirim_pembatalan'); Route::post('/kirim_pembatalan','KlienController@kirim_pembatalan');
Route::get('/history/detail/{id}','KlienController@history_detail'); Route::get('/history/detail/{id}','KlienController@history_detail');
Route::get('/profil','KlienController@profil');
Route::get('/profil/ubah','KlienController@ubah_profil');
}); });
\ No newline at end of file
<?php
/*
* This file is part of Psy Shell.
*
* (c) 2012-2015 Justin Hileman
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Psy\VarDumper;
use Symfony\Component\Console\Formatter\OutputFormatter;
use Symfony\Component\VarDumper\Caster\Caster;
use Symfony\Component\VarDumper\Cloner\Stub;
/**
* A Presenter service.
*/
class Presenter
{
const VERBOSE = 1;
private $cloner;
private $dumper;
private $exceptionsImportants = array(
"\0*\0message",
"\0*\0code",
"\0*\0file",
"\0*\0line",
"\0Exception\0previous",
);
private $styles = array(
'num' => 'number',
'const' => 'const',
'str' => 'string',
'cchr' => 'default',
'note' => 'class',
'ref' => 'default',
'public' => 'public',
'protected' => 'protected',
'private' => 'private',
'meta' => 'comment',
'key' => 'comment',
'index' => 'number',
);
public function __construct(OutputFormatter $formatter)
{
$this->dumper = new Dumper($formatter);
$this->dumper->setStyles($this->styles);
$this->cloner = new Cloner();
$this->cloner->addCasters(array('*' => function ($obj, array $a, Stub $stub, $isNested, $filter = 0) {
if ($filter || $isNested) {
if ($obj instanceof \Exception) {
$a = Caster::filter($a, Caster::EXCLUDE_NOT_IMPORTANT | Caster::EXCLUDE_EMPTY, $this->exceptionsImportants);
} else {
$a = Caster::filter($a, Caster::EXCLUDE_PROTECTED | Caster::EXCLUDE_PRIVATE);
}
}
return $a;
}));
}
/**
* Register casters.
*
* @see http://symfony.com/doc/current/components/var_dumper/advanced.html#casters
*
* @param callable[] $casters A map of casters.
*/
public function addCasters(array $casters)
{
$this->cloner->addCasters($casters);
}
/**
* Present a reference to the value.
*
* @param mixed $value
*
* @return string
*/
public function presentRef($value)
{
return $this->present($value, 0);
}
/**
* Present a full representation of the value.
*
* If $depth is 0, the value will be presented as a ref instead.
*
* @param mixed $value
* @param int $depth (default: null)
* @param int $options One of Presenter constants
*
* @return string
*/
public function present($value, $depth = null, $options = 0)
{
$data = $this->cloner->cloneVar($value, !($options & self::VERBOSE) ? Caster::EXCLUDE_VERBOSE : 0);
if (null !== $depth) {
$data = $data->withMaxDepth($depth);
}
$output = '';
$this->dumper->dump($data, function ($line, $depth) use (&$output) {
if ($depth >= 0) {
if ('' !== $output) {
$output .= PHP_EOL;
}
$output .= str_repeat(' ', $depth) . $line;
}
});
return OutputFormatter::escape($output);
}
}
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