Commit f99148e8 by Rinto

New

parent 8362e985
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
namespace App\Http\Controllers; namespace App\Http\Controllers;
use App\Models\Batal;
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;
...@@ -112,7 +113,7 @@ class AdminController extends Controller ...@@ -112,7 +113,7 @@ class AdminController extends Controller
} }
public function edit(Request $request, $id){ public function edit(Request $request, $id){
// code : from itsolutionstuff.com and modified by group 9 using intervention image
$input = $request->all(); $input = $request->all();
if($request->file('image')){ if($request->file('image')){
$this->validate($request, [ $this->validate($request, [
...@@ -196,7 +197,7 @@ class AdminController extends Controller ...@@ -196,7 +197,7 @@ class AdminController extends Controller
} }
public function editsupir(Request $request, $id){ public function editsupir(Request $request, $id){
// code : from itsolutionstuff.com and modified by group 9 using intervention image
$input = $request->all(); $input = $request->all();
if($request->file('image')){ if($request->file('image')){
$this->validate($request, [ $this->validate($request, [
...@@ -225,6 +226,21 @@ class AdminController extends Controller ...@@ -225,6 +226,21 @@ class AdminController extends Controller
return view('admin.profil.index',$this->data); return view('admin.profil.index',$this->data);
} }
public function history(){
$key = Input::get('search');
$this->data['title'] = ' Riwayat Pemesanan Bus IT Del';
if(isset($key)){
$this->data['batal'] = Batal::where('client_username','like','%'.$key.'%')->orderBy('id','desc')->paginate(10);
$this->data['pemesanan'] = Pemesanan::where('client_username','like','%'.$key.'%')->orderBy('id','desc')->paginate(10);
}else{
$this->data['batal'] = Batal::orderBy('id','desc')->paginate(10);
$this->data['pemesanan'] = Pemesanan::orderBy('id','desc')->paginate(10);
}
$this->data['total'] = DB::table('batal')->get();
$this->data['total'] = DB::table('pemesanan')->get();
return view('admin.history.index',$this->data);
}
public function pemesanan(){ public function pemesanan(){
$key = Input::get('search'); $key = Input::get('search');
$this->data['title'] = 'Pemesanan Bus IT Del'; $this->data['title'] = 'Pemesanan Bus IT Del';
...@@ -247,4 +263,10 @@ class AdminController extends Controller ...@@ -247,4 +263,10 @@ class AdminController extends Controller
pemesanan::find($id)->delete(); pemesanan::find($id)->delete();
return redirect(url('/admin/pemesanan'))->with('info','Pembatalan pemesanan berhasil dilakukan'); return redirect(url('/admin/pemesanan'))->with('info','Pembatalan pemesanan berhasil dilakukan');
} }
public function konfirmasi(Request $request, $id){
$input = $request->all();
pemesanan::find($id)->update($input);
return redirect(url('/admin/pemesanan'))->with('info','Pemesanan Bus Berhasil di Konfirmasi');
}
} }
...@@ -68,6 +68,8 @@ class KlienController extends Controller ...@@ -68,6 +68,8 @@ class KlienController extends Controller
$this->data['history'] = DB::table('batal')->where('client_username' , $username)->orderBy('id','desc')->paginate(10); $this->data['history'] = DB::table('batal')->where('client_username' , $username)->orderBy('id','desc')->paginate(10);
$this->data['total'] = DB::table('batal')->where('client_username' , $username)->get(); $this->data['total'] = DB::table('batal')->where('client_username' , $username)->get();
$this->data['status'] = DB::table('pemesanan')->where('client_username' , $username)->orderBy('id','desc')->paginate(10);
$this->data['total'] = DB::table('pemesanan')->where('client_username' , $username)->get();
return view('klien.history.index',$this->data); return view('klien.history.index',$this->data);
} }
...@@ -93,6 +95,7 @@ class KlienController extends Controller ...@@ -93,6 +95,7 @@ class KlienController extends Controller
public function batal($id){ public function batal($id){
$this->data['title'] = 'Detail Pemesanan'; $this->data['title'] = 'Detail Pemesanan';
$this->data['pemesanan'] = Pemesanan::find($id); $this->data['pemesanan'] = Pemesanan::find($id);
pemesanan::find($id)->delete();
return view('klien.status.batal',$this->data); return view('klien.status.batal',$this->data);
} }
......
...@@ -7,6 +7,6 @@ use Illuminate\Database\Eloquent\Model; ...@@ -7,6 +7,6 @@ use Illuminate\Database\Eloquent\Model;
class Pemesanan extends Model class Pemesanan extends Model
{ {
protected $table = 'pemesanan'; protected $table = 'pemesanan';
protected $fillable = ['id','tujuan','jumlah','alasan','berangkat','kembali','client_username','plat_bus']; protected $fillable = ['id','tujuan','jumlah','alasan','berangkat','kembali','client_username','plat_bus','status'];
// //
} }
\ No newline at end of file
...@@ -3,9 +3,9 @@ ...@@ -3,9 +3,9 @@
-- http://www.phpmyadmin.net -- http://www.phpmyadmin.net
-- --
-- Host: 127.0.0.1 -- Host: 127.0.0.1
-- Generation Time: 09 Jan 2017 pada 13.00 -- Generation Time: 12 Mei 2017 pada 11.23
-- Versi Server: 10.1.10-MariaDB -- Versi Server: 10.1.16-MariaDB
-- PHP Version: 7.0.4 -- PHP Version: 7.0.9
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00"; SET time_zone = "+00:00";
...@@ -17,326 +17,117 @@ SET time_zone = "+00:00"; ...@@ -17,326 +17,117 @@ SET time_zone = "+00:00";
/*!40101 SET NAMES utf8mb4 */; /*!40101 SET NAMES utf8mb4 */;
-- --
-- Database: `taman` -- Database: `pemesanan_bus`
-- --
-- -------------------------------------------------------- -- --------------------------------------------------------
-- --
-- Struktur dari tabel `barang` -- Struktur dari tabel `batal`
-- --
CREATE TABLE `barang` ( CREATE TABLE `batal` (
`id` int(11) NOT NULL,
`name` varchar(100) NOT NULL,
`type` varchar(100) NOT NULL,
`quantity` varchar(100) NOT NULL,
`deskripsi` text NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `barang`
--
INSERT INTO `barang` (`id`, `name`, `type`, `quantity`, `deskripsi`, `created_at`, `updated_at`) VALUES
(32, 'Kursi bundar', 'Kayu', '20', 'Tinggi 80cm. Terbuat dari kayu jati', NULL, NULL),
(33, 'Vas Bunga', 'Keramik', '20', 'Berukuran 45cm. Tidak bermotif', NULL, NULL),
(34, 'Sendok', 'Sendok Aluminium', '300 buah', 'Berukuran 25 cm. \r\n ', '2017-01-03 07:36:54', '2017-01-03 08:16:33'),
(35, 'Garpu', 'Garpu aluminium', '300 buah', 'Berpasangan dengan sendok\r\n ', '2017-01-03 07:42:57', '2017-01-03 07:42:57'),
(36, 'Vassy', 'Vas Bunga', '20 buah', ' Berwarna cokelat polos\r\n ', '2017-01-03 07:44:30', '2017-01-03 07:44:30'),
(37, 'Choco Chair', 'Kursi kayu', '20 buah', ' Terbuat dari kayu jati\r\n ', '2017-01-03 07:45:55', '2017-01-03 07:45:55'),
(38, 'Tabel Boo', 'Meja Kayu', '20 buah', 'Terbuat dari kayu jati ', '2017-01-03 07:47:09', '2017-01-03 07:47:09'),
(39, 'Washy', 'Wastafel', '3 buah', ' Terbuat dari keramik\r\n ', '2017-01-03 07:48:38', '2017-01-03 07:48:38'),
(40, 'Cosmos', 'Rice Cooker', '3', ' Menghasilkan beras yang empuk dan tidak berbau.\r\n ', '2017-01-03 07:49:55', '2017-01-03 07:49:55'),
(41, 'Kulkas LG', 'Kulkas', '3 buah', 'Terdiri dari 3 pintu dengan tinggi 180 cm \r\n ', '2017-01-03 08:13:55', '2017-01-03 08:13:55');
-- --------------------------------------------------------
--
-- Struktur dari tabel `customer_data`
--
CREATE TABLE `customer_data` (
`id` int(10) NOT NULL, `id` int(10) NOT NULL,
`username` varchar(50) NOT NULL, `tujuan` varchar(100) NOT NULL,
`first_name` varchar(50) NOT NULL, `jumlah` int(100) NOT NULL,
`last_name` varchar(50) NOT NULL, `alasan` text NOT NULL,
`balance` int(20) NOT NULL, `berangkat` date NOT NULL,
`kembali` date NOT NULL,
`client_username` varchar(100) NOT NULL,
`plat_bus` varchar(100) NOT NULL,
`alasan_batal` text 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;
-- --
-- Dumping data untuk tabel `customer_data` -- Dumping data untuk tabel `batal`
--
INSERT INTO `customer_data` (`id`, `username`, `first_name`, `last_name`, `balance`, `created_at`, `updated_at`) VALUES
(18, 'ester', 'Ester', 'Marbun', 19500, '2017-01-05 18:14:26', '2017-01-06 00:43:05'),
(19, 'eko', 'Eko', 'Simanjuntak', 30000, '2017-01-05 18:14:44', '2017-01-05 18:34:06'),
(20, 'amendo', 'Amendo', 'Sitinjak', 30000, '2017-01-05 18:14:59', '2017-01-05 18:33:48'),
(21, 'anastasya', 'Anastasya', 'Manullang', 30000, '2017-01-05 18:15:20', '2017-01-05 18:33:37'),
(22, 'anggiat', 'Anggiat', 'Tambunan', 30000, '2017-01-05 18:15:35', '2017-01-05 18:33:29'),
(23, 'arren', 'Arren', 'Situngkir', 30000, '2017-01-05 18:15:50', '2017-01-05 18:33:20'),
(24, 'chika', 'Chika', 'Hutapea', 30000, '2017-01-05 18:16:27', '2017-01-05 18:33:03'),
(25, 'edward', 'Edward', 'Simarmata', 30000, '2017-01-05 18:17:41', '2017-01-05 18:32:44'),
(26, 'gideon', 'Gideon', 'Panjaitan', 30000, '2017-01-05 18:18:45', '2017-01-05 18:32:36'),
(27, 'greace', 'Greace', 'Situmorang', 30000, '2017-01-05 18:20:39', '2017-01-05 18:32:27'),
(28, 'irene', 'Irene', 'Panjaitan', 30000, '2017-01-05 18:21:22', '2017-01-05 18:32:13'),
(29, 'jhon', 'Jhon', 'Tampubolon', 30000, '2017-01-05 18:22:04', '2017-01-05 18:32:05'),
(30, 'joel', 'Joel', 'Marpaung', 102500, '2017-01-05 18:22:15', '2017-01-08 23:59:26'),
(31, 'johan', 'Johan', 'Lumbanbatu', 30000, '2017-01-05 18:23:08', '2017-01-05 18:31:44'),
(32, 'juliper', 'Juliper', 'Simanjuntak', 30000, '2017-01-05 18:23:24', '2017-01-05 18:31:34'),
(33, 'lestari', 'Lestari', 'Siregar', 30000, '2017-01-05 18:23:40', '2017-01-05 18:31:09'),
(34, 'lily', 'Lily', 'Naibaho', 30000, '2017-01-05 18:23:54', '2017-01-05 18:31:01'),
(35, 'martupa', 'Martupa', 'Lumbantoruan', 30000, '2017-01-05 18:24:09', '2017-01-05 18:30:34'),
(36, 'palti', 'Palti', 'Sinaga', 30000, '2017-01-05 18:24:21', '2017-01-05 18:30:10'),
(37, 'patota', 'Patota', 'Siahaan', 30000, '2017-01-05 18:24:34', '2017-01-05 18:30:01'),
(38, 'pratiwi', 'Pratiwi', 'Manik', 30000, '2017-01-05 18:24:47', '2017-01-05 18:29:53'),
(39, 'rahel', 'Rahel', 'Purba', 30000, '2017-01-05 18:24:59', '2017-01-05 18:29:33'),
(40, 'rizky', 'Rizky', 'Manurung', 30000, '2017-01-05 18:25:11', '2017-01-05 18:29:21'),
(41, 'winda', 'Winda', 'Sianipar', 30000, '2017-01-05 18:25:34', '2017-01-05 18:29:02'),
(42, 'yessica', 'Yessica', 'Sitorus', 30000, '2017-01-05 18:25:51', '2017-01-05 18:28:52'),
(43, 'yolanda', 'Yolanda', 'Hutajulu', 30000, '2017-01-05 18:26:06', '2017-01-05 18:28:41'),
(44, 'yonatan', 'Yonatan', 'Parapat', 30000, '2017-01-05 18:26:22', '2017-01-05 18:28:26'),
(45, 'hans', 'Hans', 'Purba', 30000, '2017-01-05 18:26:33', '2017-01-05 18:28:12'),
(46, 'jhoncha', 'Jhon', 'Sipahutar', 30000, '2017-01-05 18:27:09', '2017-01-05 18:28:04'),
(47, 'rinto', 'Rinto', 'Tambunan', 65000, '2017-01-05 18:27:24', '2017-01-08 23:54:22'),
(49, 'christine', 'christine', 'christine', 0, '2017-01-09 05:55:52', '2017-01-09 05:55:52');
-- --------------------------------------------------------
--
-- Struktur dari tabel `dapur`
--
CREATE TABLE `dapur` (
`id` int(10) NOT NULL,
`name` varchar(100) NOT NULL,
`type` varchar(100) NOT NULL,
`quantity` varchar(100) NOT NULL,
`deskripsi` text NOT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `dapur`
-- --
INSERT INTO `dapur` (`id`, `name`, `type`, `quantity`, `deskripsi`, `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
(7, 'Wortel', 'Sayur', '3 kg', 'Berwarna jingga cerah\r\n ', '2017-01-03 07:51:57', '2017-01-03 07:51:57'), (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'),
(8, 'Tepung terigu', 'Tepung', '10 kg', 'Lembut dan menjadikan masakan lebih enak \r\n ', '2017-01-03 07:53:34', '2017-01-03 07:53:34'), (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'),
(9, 'Jeruk', 'Buah', '3 kg', 'Jeruk sunkist \r\n ', '2017-01-03 07:54:43', '2017-01-03 07:54:43'), (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'),
(10, 'Choco chips', 'Cemilan', '1 kg', 'Berbentuk butir-butir \r\n ', '2017-01-03 07:56:51', '2017-01-03 07:56:51'), (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'),
(11, 'Aspartam', 'Gula', '20 kg', 'Berbentuk kristal dan rasa manis yang tinggi. \r\n ', '2017-01-03 07:58:43', '2017-01-03 07:58:43'), (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'),
(12, 'Garam Laut', 'Garam', '10 kg', 'Putih bersih berbentuk kristal \r\n ', '2017-01-03 08:00:07', '2017-01-03 08:00:07'), (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');
(13, 'Ladaku', 'Lada', '800 gr', 'Rasa spicy dan wangi \r\n ', '2017-01-03 08:01:47', '2017-01-03 08:01:47'),
(14, 'Mericaaca', 'Merica', '800 gr', 'Wangi dan sedikit manis\r\n ', '2017-01-03 08:03:59', '2017-01-03 08:03:59'),
(15, 'Kopi Robusta', 'Kopi', '3 kg', 'Wangi dan tahan lama \r\n ', '2017-01-03 08:05:19', '2017-01-03 08:05:19'),
(16, 'Susu kental manis', 'Susu', '3 kaleng', 'Manis dan kaya kalsium \r\n ', '2017-01-03 08:06:47', '2017-01-03 08:06:47'),
(17, 'Udang', 'Ikan laut', '3 kg', 'Diambil dari Bikini Buttom \r\n ', '2017-01-03 08:08:43', '2017-01-03 08:08:43'),
(18, 'Daging sapi segar', 'Daging', '20 kg', 'Diambil dari sapi kuat dan perkasa \r\n \r\n ', '2017-01-06 03:11:27', '2017-01-05 20:11:27');
-- -------------------------------------------------------- -- --------------------------------------------------------
-- --
-- Struktur dari tabel `feedback` -- Struktur dari tabel `bus`
-- --
CREATE TABLE `feedback` ( CREATE TABLE `bus` (
`id` int(10) NOT NULL, `id` int(10) NOT NULL,
`customer` varchar(100) NOT NULL, `nama_bus` varchar(100) NOT NULL,
`subjek` varchar(100) NOT NULL, `jenis_bus` varchar(100) NOT NULL,
`kriteria` varchar(100) NOT NULL, `plat_bus` varchar(100) NOT NULL,
`deskripsi` text NOT NULL, `deskripsi` text NOT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `feedback`
--
INSERT INTO `feedback` (`id`, `customer`, `subjek`, `kriteria`, `deskripsi`, `created_at`, `updated_at`) VALUES
(7, 'rinto', 'Pelayanan', 'Pujian', 'Menu makanan di tempat ini sangat beragam dan sangat enak, terlebih lagi makanan nya steril dan sehat', '2017-01-05 19:10:55', '2017-01-05 19:10:55'),
(8, 'ester', 'Website', 'Pujian', 'Sistem informasi ini sangat bermanfaat dikarenakan saya tak lagi repot untuk memesan makanan yang akan saya pesan dan tidak akan membutuhkan waktu yang lama untuk melakukan pemesanan.', '2017-01-05 19:14:22', '2017-01-05 19:14:22'),
(9, 'joel', 'Tempat', 'Kritik', 'Meja yang saya tempati tadi agak berantakan dan kotor, mohon untuk selanjutnya agar lebih di perhatikan, terimakasih. ', '2017-01-05 19:17:41', '2017-01-05 19:17:41'),
(10, 'rinto', 'Menu', 'Pujian', ' Menunya bagus', '2017-01-06 00:38:39', '2017-01-06 00:38:39'),
(11, 'joel', 'Website', 'Pujian', 'Bagus Websitenya ', '2017-01-08 23:39:05', '2017-01-08 23:39:05'),
(12, 'joel', 'Menu', 'Pujian', 'Bagus ', '2017-01-08 23:39:41', '2017-01-08 23:39:41'),
(13, 'joel', 'Menu', 'Pujian', 'coba', '2017-01-08 23:39:53', '2017-01-08 23:39:53'),
(14, 'joel', 'Menu', 'Pujian', 'coba ', '2017-01-08 23:40:08', '2017-01-08 23:40:08');
-- --------------------------------------------------------
--
-- Struktur dari tabel `menu`
--
CREATE TABLE `menu` (
`id` int(10) NOT NULL,
`product_name` varchar(100) NOT NULL,
`product_type` varchar(100) NOT NULL,
`price` int(20) NOT NULL,
`deskripsi` text NOT NULL,
`status` varchar(100) NOT NULL,
`image` varchar(100) NOT NULL, `image` varchar(100) 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;
-- --
-- Dumping data untuk tabel `menu` -- Dumping data untuk tabel `bus`
-- --
INSERT INTO `menu` (`id`, `product_name`, `product_type`, `price`, `deskripsi`, `status`, `image`, `created_at`, `updated_at`) VALUES INSERT INTO `bus` (`id`, `nama_bus`, `jenis_bus`, `plat_bus`, `deskripsi`, `image`, `created_at`, `updated_at`) VALUES
(14, 'Nasi Goreng', 'Makanan', 15000, 'Nasi goreng makanan yang dibuat dari nasi yang digoreng dengan bumbu dan bahan-bahan lainnya. Nasi goreng adalah makanan populer di Asia Timur dan Asia Tenggara. Nasi adalah sebuah bagian penting dari masakan tradisional Tionghoa, menurut catatan sejarah sudah mulai ada sejak 4000 SM. Nasi goreng kemudian tersebar ke Asia Tenggara dibawa oleh perantau-perantau Tionghoa yang menetap di sana dan menciptakan nasi goreng khas lokal yang didasarkan atas perbedaan bumbu-bumbu dan cara menggoreng. Nasi goreng sebenarnya muncul dari beberapa sifat dalam kebudayaan Tionghoa, yang tidak suka mencicipi makanan dingin dan juga membuang sisa makanan beberapa hari sebelumnya. Makanya, nasi yang dingin itu kemudian digoreng untuk dihidangkan kembali di meja makan.\r\n\r\n \r\n \r\n ', 'Tersedia', '1483665408.png', '2017-01-05 11:05:30', '2017-01-05 11:16:48'), (1, 'Optimus', 'Autobot', '911', 'Optimus Prime', '1493174984.jpg', '2017-04-25 00:29:05', '2017-04-25 19:49:44'),
(15, 'Pecel lele', 'Makanan', 10000, ' \r\n Pecel lele (atau Pecek lele) ini adalah nama sebuah makanan yang terbuat dari ikan lele. Makanan yang dimaksud adalah ikan lele yang digoreng kering dengan minyak dan lalu disajikan dengan sambal tomat dan lalapan. Lalapan biasa terdiri dari kemangi, kubis, ketimun dan kacang panjang. Pecel lele adalah sebuah makanan yang murah dan meriah. Makanan ini sangat digemari di pulau Jawa sebagai alternatif masakan ayam, terutama ayam goreng.\r\n ', 'Tersedia', '1483664899.jpg', '2017-01-05 11:08:19', '2017-01-05 11:08:19'), (4, 'Bumble Bee', 'Autobot', '912', 'Killer Bee', '1493344306.jpg', '2017-04-27 18:51:47', '2017-04-27 18:52:02');
(16, 'Nasi Kuning', 'Makanan', 15000, 'Makanan ini terbuat dari beras yang dimasak bersama dengan kunyit serta santan dan rempah-rempah. Dengan ditambahkannya bumbu-bumbu dan santan, nasi kuning memiliki rasa yang lebih gurih daripada nasi putih. Nasi kuning adalah salah satu variasi dari nasi putih yang sering digunakan sebagai tumpeng. Nasi kuning biasa disajikan dengan bermacam lauk-pauk khas Indonesia.\r\n \r\n \r\n ', 'Tersedia', '1483665473.png', '2017-01-05 11:11:29', '2017-01-05 11:17:53'),
(17, 'Gudeg', 'Makanan', 15500, ' \r\nGudeg (bahasa Jawa gudheg) adalah makanan khas Yogyakarta dan Jawa Tengah yang terbuat dari nangka muda yang dimasak dengan santan. Perlu waktu berjam-jam untuk membuat masakan ini. Warna coklat biasanya dihasilkan oleh daun jati yang dimasak bersamaan. Gudeg dimakan dengan nasi dan disajikan dengan kuah santan kental (areh), ayam kampung, telur, tahu dan sambal goreng krecek. ', 'Tersedia', '1483665199.jpg', '2017-01-05 11:13:19', '2017-01-05 11:13:19'),
(18, 'Gado-gado', 'Makanan', 20000, 'Gado-gado ini adalah salah satu makanan yang berasal dari Indonesia yang berupa sayur-sayuran yang direbus dan dicampur jadi satu, dengan bumbu kacang atau saus dari kacang tanah yang dihaluskan disertai irisan telur dan di atasnya ditaburkan bawang goreng. Sedikit emping goreng atau kerupuk (ada juga yang memakai kerupuk udang) juga ditambahkan. Gado-gado dapat dimakan begitu saja seperti salad dengan bumbu/saus kacang, tapi juga dapat dimakan beserta nasi putih atau kadang-kadang juga disajikan dengan lontong.\r\n \r\n \r\n \r\n ', 'Tersedia', '1483665640.png', '2017-01-05 11:20:18', '2017-01-05 11:24:59'),
(19, 'Keripik kentang', 'Snack', 10000, ' Rasa gurih dari kripik kentang membawa makanan ini menjadi makanan gurih yang banyak memiliki idola. Rasanya yang renyah dan enak menjadikan makanan ini masuk dalam jajaran makanan enak di cafe ini. \r\n ', 'Tersedia', '1483665847.png', '2017-01-05 11:24:07', '2017-01-05 11:29:48'),
(20, 'Bakwan', 'Gorengan', 1000, ' Bakwan merupakan makanan yang berisi beraneka sayuran yang dicampur dengan tepung kemudian digoreng. Biasanya makanan ini dijual oleh tukang gorengan, baik yang menggunakan gerobak, amupun di warung-warung. Setiap kota memiliki panggilan yang berbeda untuk makanan ini. seperti di Jawa Barat menamainya dengan bala-bala, di Jakarta menamainya Bakwan, sedangkan di Surabaya menamainya Ote-Ote. Biasanya bahan-bahan sayuran yang digunakan untuk membuat bakwan ini bisa berupa tauge, kubis, dan wortel yang di potong tipis-tipis kemudian dicampurkan.\r\n ', 'Tidak Tersedia', '1483666114.png', '2017-01-05 11:28:34', '2017-01-05 11:30:27'),
(21, 'Lumpia', 'Gorengan', 2000, 'Makanan ini salah satu cemilan yang paling favorit oleh banyak orang karena memiliki rasa yang enak. Makanan ini berasal dari Semarang, Jawa Tengah. Di Semarang kita bisa menemukan cemilan ini di Restoran hingga pedagang kaki lima.', 'Tersedia', '1483666501.png', '2017-01-05 11:35:01', '2017-01-05 11:35:01'),
(22, 'Cireng', 'Gorengan', 3000, 'Cireng merupakan singkatan dari Aci (Kanji) digoreng adalah makanan cemilan yang berasal dari daerah Sunda yang dibuat dengan cara menggoreng campuran adonan yang berbahan utama tepung kanji atau tapioka. Makanan ini sangat popluer di daerah Jawa Barat, bahkan di Bandung makanan ini dijual dalam berbagai bentuk dan variasi rasa. bahan makanan ini antara lain terdiri dari tepung kanji, tepung terigu, air, merica bubuk, garam, bawang putih, keelai, daun bawang dan minyak goreng. ', 'Tidak Tersedia', '1483666950.png', '2017-01-05 11:42:30', '2017-01-05 11:42:30'),
(23, 'Lentho', 'Snack', 3000, ' Makanan ini biasa disajikan sebagai menu pendamping Lontong Balap. Tapi, makanan ini juga bisa dimakan sebagai cemilan juga. Makanan ini terasa lebih enak bila dinikmati dengan sambal petis. \r\n ', 'Tersedia', '1483667458.png', '2017-01-05 11:49:07', '2017-01-05 11:50:58'),
(24, 'Kue Mangkok', 'Snack', 2000, ' Kue ini berbentuk sangat lucu, imut-imut, dan memiliki rasa yang sangat enak. Kue mangkok memiliki rasa manis dan sedikit asam, karena di dalamnya terdapat campuran tapai ketan. Biasanya, di dasar kue mangkok digunakan daun pisang untuk membungkus sekaligus memperindahnya. Kue mangkok juga bisa diberi pewarna agar lebih menarik ketika disajikan.\r\n ', 'Tersedia', '1483667770.png', '2017-01-05 11:56:10', '2017-01-09 05:40:15');
-- -------------------------------------------------------- -- --------------------------------------------------------
-- --
-- Struktur dari tabel `order_product` -- Struktur dari tabel `pemesanan`
-- --
CREATE TABLE `order_product` ( CREATE TABLE `pemesanan` (
`id` int(10) NOT NULL, `id` int(10) NOT NULL,
`product_name` varchar(100) NOT NULL, `tujuan` varchar(100) NOT NULL,
`product_type` varchar(50) NOT NULL, `jumlah` int(100) NOT NULL,
`quantity` int(10) NOT NULL, `alasan` text NOT NULL,
`total_price` int(20) NOT NULL, `berangkat` date NOT NULL,
`table_number` int(10) NOT NULL, `kembali` date NOT NULL,
`customer_username` varchar(100) NOT NULL, `client_username` varchar(100) NOT NULL,
`product_id` int(10) NOT NULL, `plat_bus` varchar(100) NOT NULL,
`status` varchar(100) 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;
-- --
-- Dumping data untuk tabel `order_product` -- Dumping data untuk tabel `pemesanan`
-- --
INSERT INTO `order_product` (`id`, `product_name`, `product_type`, `quantity`, `total_price`, `table_number`, `customer_username`, `product_id`, `created_at`, `updated_at`) VALUES INSERT INTO `pemesanan` (`id`, `tujuan`, `jumlah`, `alasan`, `berangkat`, `kembali`, `client_username`, `plat_bus`, `status`, `created_at`, `updated_at`) VALUES
(13, 'Kue Mangkok', 'Snack', 2, 4000, 3, 'joel', 24, '2017-01-05 19:21:05', '2017-01-05 19:21:05'), (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');
(14, 'Nasi Kuning', 'Makanan', 1, 15000, 4, 'joel', 16, '2017-01-05 19:21:07', '2017-01-05 19:21:07'),
(15, 'Gudeg', 'Makanan', 3, 46500, 3, 'joel', 17, '2017-01-05 19:21:08', '2017-01-05 19:21:08'),
(16, 'Pecel lele', 'Makanan', 1, 10000, 5, 'joel', 15, '2017-01-05 19:21:09', '2017-01-05 19:21:09'),
(17, 'Lumpia', 'Gorengan', 2, 4000, 6, 'joel', 21, '2017-01-05 19:21:10', '2017-01-05 19:21:10'),
(18, 'Keripik kentang', 'Snack', 1, 10000, 7, 'rinto', 19, '2017-01-06 00:24:45', '2017-01-06 00:24:45'),
(19, 'Kue Mangkok', 'Snack', 3, 6000, 4, 'joel', 24, '2017-01-06 00:42:13', '2017-01-06 00:42:13'),
(20, 'Gudeg', 'Makanan', 1, 15500, 1, 'ester', 17, '2017-01-06 00:43:05', '2017-01-06 00:43:05'),
(21, 'Kue Mangkok', 'Snack', 1, 2000, 1, 'joel', 24, '2017-01-08 23:48:07', '2017-01-08 23:48:07'),
(22, 'Kue Mangkok', 'Snack', 1, 2000, 1, 'joel', 24, '2017-01-08 23:57:26', '2017-01-08 23:57:26');
-- -------------------------------------------------------- -- --------------------------------------------------------
-- --
-- Struktur dari tabel `order_product_temp` -- Struktur dari tabel `supir`
-- --
CREATE TABLE `order_product_temp` ( CREATE TABLE `supir` (
`id` int(10) NOT NULL, `id` int(10) NOT NULL,
`product_name` varchar(100) NOT NULL, `nama_supir` varchar(100) NOT NULL,
`product_type` varchar(50) NOT NULL, `ttl` varchar(100) NOT NULL,
`quantity` int(10) NOT NULL, `alamat` varchar(100) NOT NULL,
`total_price` int(10) NOT NULL, `jk` varchar(100) NOT NULL,
`table_number` int(10) NOT NULL, `agama` varchar(100) NOT NULL,
`customer_username` varchar(100) NOT NULL, `image` varchar(100) NOT NULL,
`product_id` int(10) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Struktur dari tabel `topup_history`
--
CREATE TABLE `topup_history` (
`id` int(10) NOT NULL,
`balance` int(20) NOT NULL,
`customer_username` varchar(50) 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;
-- --
-- Dumping data untuk tabel `topup_history` -- Dumping data untuk tabel `supir`
--
INSERT INTO `topup_history` (`id`, `balance`, `customer_username`, `created_at`, `updated_at`) VALUES
(18, 30000, 'rinto', '2017-01-05 18:27:55', '2017-01-05 18:27:55'),
(19, 30000, 'jhoncha', '2017-01-05 18:28:04', '2017-01-05 18:28:04'),
(20, 30000, 'hans', '2017-01-05 18:28:12', '2017-01-05 18:28:12'),
(21, 30000, 'yonatan', '2017-01-05 18:28:26', '2017-01-05 18:28:26'),
(22, 30000, 'yolanda', '2017-01-05 18:28:41', '2017-01-05 18:28:41'),
(23, 30000, 'yessica', '2017-01-05 18:28:53', '2017-01-05 18:28:53'),
(24, 30000, 'winda', '2017-01-05 18:29:02', '2017-01-05 18:29:02'),
(25, 30000, 'rizky', '2017-01-05 18:29:21', '2017-01-05 18:29:21'),
(26, 30000, 'rahel', '2017-01-05 18:29:33', '2017-01-05 18:29:33'),
(27, 30000, 'pratiwi', '2017-01-05 18:29:53', '2017-01-05 18:29:53'),
(28, 30000, 'patota', '2017-01-05 18:30:01', '2017-01-05 18:30:01'),
(29, 30000, 'palti', '2017-01-05 18:30:10', '2017-01-05 18:30:10'),
(30, 30000, 'martupa', '2017-01-05 18:30:34', '2017-01-05 18:30:34'),
(31, 30000, 'lily', '2017-01-05 18:31:01', '2017-01-05 18:31:01'),
(32, 30000, 'lestari', '2017-01-05 18:31:09', '2017-01-05 18:31:09'),
(33, 30000, 'juliper', '2017-01-05 18:31:35', '2017-01-05 18:31:35'),
(34, 30000, 'johan', '2017-01-05 18:31:44', '2017-01-05 18:31:44'),
(35, 30000, 'joel', '2017-01-05 18:31:55', '2017-01-05 18:31:55'),
(36, 30000, 'jhon', '2017-01-05 18:32:05', '2017-01-05 18:32:05'),
(37, 30000, 'irene', '2017-01-05 18:32:13', '2017-01-05 18:32:13'),
(38, 30000, 'greace', '2017-01-05 18:32:27', '2017-01-05 18:32:27'),
(39, 30000, 'gideon', '2017-01-05 18:32:36', '2017-01-05 18:32:36'),
(40, 30000, 'edward', '2017-01-05 18:32:45', '2017-01-05 18:32:45'),
(41, 30000, 'chika', '2017-01-05 18:33:03', '2017-01-05 18:33:03'),
(42, 30000, 'arren', '2017-01-05 18:33:20', '2017-01-05 18:33:20'),
(43, 30000, 'anggiat', '2017-01-05 18:33:29', '2017-01-05 18:33:29'),
(44, 30000, 'anastasya', '2017-01-05 18:33:38', '2017-01-05 18:33:38'),
(45, 30000, 'amendo', '2017-01-05 18:33:48', '2017-01-05 18:33:48'),
(46, 30000, 'eko', '2017-01-05 18:34:06', '2017-01-05 18:34:06'),
(47, 30000, 'ester', '2017-01-05 18:34:14', '2017-01-05 18:34:14'),
(48, 100000, 'joel', '2017-01-05 19:19:35', '2017-01-05 19:19:35'),
(49, 10000000, 'rinto', '2017-01-05 20:13:34', '2017-01-05 20:13:34'),
(50, 15000, 'rinto', '2017-01-06 00:29:18', '2017-01-06 00:29:18'),
(51, 10000, 'rinto', '2017-01-06 00:30:14', '2017-01-06 00:30:14'),
(52, 5000, 'ester', '2017-01-06 00:32:33', '2017-01-06 00:32:33'),
(53, 10000, 'rinto', '2017-01-06 00:33:21', '2017-01-06 00:33:21'),
(54, 10000, 'baru', '2017-01-08 23:52:54', '2017-01-08 23:52:54'),
(55, 10000, 'joel', '2017-01-08 23:54:18', '2017-01-08 23:54:18'),
(56, 10000, 'rinto', '2017-01-08 23:54:22', '2017-01-08 23:54:22'),
(57, 1000, 'joel', '2017-01-08 23:55:10', '2017-01-08 23:55:10'),
(58, 1000, 'joel', '2017-01-08 23:55:33', '2017-01-08 23:55:33'),
(59, 10000, 'joel', '2017-01-08 23:57:41', '2017-01-08 23:57:41'),
(60, 20000, 'joel', '2017-01-08 23:57:44', '2017-01-08 23:57:44'),
(61, 10000, 'joel', '2017-01-08 23:58:46', '2017-01-08 23:58:46'),
(62, 10000, 'joel', '2017-01-08 23:59:26', '2017-01-08 23:59:26'),
(63, 1000, 'baru', '2017-01-09 05:38:37', '2017-01-09 05:38:37');
-- --------------------------------------------------------
--
-- Struktur dari tabel `topup_request`
-- --
CREATE TABLE `topup_request` ( INSERT INTO `supir` (`id`, `nama_supir`, `ttl`, `alamat`, `jk`, `agama`, `image`, `created_at`, `updated_at`) VALUES
`id` int(10) NOT NULL, (123, 'Supir', 'Sitoluama / 09-11-1996', 'Sitoluama', 'Laki-Laki', 'Lain', '1493345735.jpg', '2017-04-27 19:15:35', '2017-04-27 19:39:11');
`balance` int(20) NOT NULL,
`customer_username` varchar(50) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- -------------------------------------------------------- -- --------------------------------------------------------
...@@ -359,107 +150,39 @@ CREATE TABLE `users` ( ...@@ -359,107 +150,39 @@ 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
(1, 'admin', '$2y$10$A19nzArRlsMiqYeofRyc0uspK8O2tE9eirHIRnMjZsHUVx0wHlO7q', 'admin', 'x5aXo1rmtkg70rJIHoSBl3QighSB7O203IcuTkqccms79g5xoDXvNhsXYc01', '2016-12-22 19:20:37', '2017-01-09 05:59:46'), (2, 'k_klien', '$2y$10$RYpRtEdIeZoAhvhZJqDyUuwPq5t4jQIhRgyx8sUk2h4gKmP60dm.2', 'admin', 'yULUbsjStbXyR98yMSjpSdvl9qKMocrwB0sNBULxtU09KHswvCTB7rmG61sA', '2017-04-10 21:30:13', '2017-05-09 20:49:43'),
(46, 'kasir', '$2y$10$9INQvmugHQuZO/jj07j78eIx2mMMLkaEBGeubZH/AotdZjDox0QpG', 'kasir', 'LaboreQ2J9E3AZuBvqIti2eLB6s57ouGYzHSWGfhCkPUDFpE5avkEe8nn67x', '2016-12-27 00:42:36', '2017-01-09 05:38:45'), (4, 'k_supir', '$2y$10$uFVdCb3I5aoQuKX474arD.Jo4KjXCiejs4uMDNzYudRe.FTxdvn8S', 'k_supir', 'kqC7vPPEUTVSHx5PkSp9WaCE5FRQBaovCe42ClDcA2wGGcyb90Q7Rsihhcs8', '2017-04-18 21:02:08', '2017-05-09 20:42:03'),
(47, 'inventori', '$2y$10$TE1leDON290mDbCxQoKWQu8jImfzYr1.YAElhftDkon.8hpsUsGky', 'inventori', 'Cnvzv0uoANz5f4Qjutbo1jMmp69IhHYhTExbzqvD7kR1Y50314xLxfMFUfsU', '2016-12-27 00:42:52', '2017-01-09 05:45:00'), (7, 'klien', '$2y$10$YK4Otf.9YAXfxS4LI5MS/uydscvcS0oqIEHAncAodOpFgulK02UFm', 'klien', 'cB2G1oqNRffz9fkfTAkD1KW1iWITTdDOqW6wKDlo2ENWrXtJLAoN3OzQNhsh', '2017-04-21 07:39:53', '2017-05-09 20:50:40');
(48, 'pelayan', '$2y$10$RidUSaTSHEsuId.pDqxndO4wNNb2VKuOVy4yhtVY74Q2yd0n56Gy.', 'pelayan', 'cM9QzNzfXgqfRGq08bZ1tw9Ea1Oh3HMru5UahiC0X145oPctjJSWq3zB896w', '2016-12-27 00:43:01', '2017-01-09 05:41:45'),
(52, 'ester', '$2y$10$1.SkCwPIElomojWhCPZMOu3tdI4kITlVdA1duDHP6vGJEiBh7bPNO', 'customer', '5vKGkx66oP7fMB5C5ySep5zv7r2ow8diC7N5cl1nug99lwePdyJe94qkAN0d', '2017-01-05 18:14:26', '2017-01-06 00:43:08'),
(53, 'eko', '$2y$10$ao405UVwW4bsDMvx/Brv4Oz84V/5n05Vvl8maD9et1aOx.AXhiizu', 'customer', NULL, '2017-01-05 18:14:44', '2017-01-05 18:14:44'),
(54, 'amendo', '$2y$10$vdDA4nh4XdvJGt3.iCJy/O87cVIPr5wFfKbogs3aTwJdfPobwEmgK', 'customer', NULL, '2017-01-05 18:14:59', '2017-01-05 18:14:59'),
(55, 'anastasya', '$2y$10$m9mZ4LQJBzEqbMfefV4a1.k9OJkER8x25OZL5jdoip/u6pBXpTsxa', 'customer', NULL, '2017-01-05 18:15:20', '2017-01-05 18:15:20'),
(56, 'anggiat', '$2y$10$fxhMv8iYqZSRhxJgDdNkouGEP.xn6wPX9nunM1dpDUnwsN757M7h.', 'customer', NULL, '2017-01-05 18:15:35', '2017-01-05 18:15:35'),
(57, 'arren', '$2y$10$QYkfcNZNh4hPMo7lVIaUz.VTO3HAY8zVje590lfGYbbwENFvE8yW2', 'customer', NULL, '2017-01-05 18:15:50', '2017-01-05 18:15:50'),
(58, 'chika', '$2y$10$vcn7V4MCizZbdrIHGfjxWe.fhqalDA/VVUUIf7e42k2/.vFJFtgga', 'customer', NULL, '2017-01-05 18:16:27', '2017-01-05 18:16:27'),
(59, 'edward', '$2y$10$Ira0xb7ktdsYAy3W6nitbuybcraRwMAQqQNyONmQ9buK/eFSajAdy', 'customer', NULL, '2017-01-05 18:17:41', '2017-01-05 18:17:41'),
(60, 'gideon', '$2y$10$7jdFNlIPgKq57Ef3MOH5HukPFFJm.rkYXQ.sjb6T4uUbFaWkJzg6O', 'customer', NULL, '2017-01-05 18:18:44', '2017-01-05 18:18:44'),
(61, 'greace', '$2y$10$FmL0JbBpRWrQXdu07AVAFOTZJkOe2OaXOqvgbgpHGi1zrFqcKaDfC', 'customer', NULL, '2017-01-05 18:20:39', '2017-01-05 18:20:39'),
(62, 'irene', '$2y$10$Zlycxdh1phN.rmfoiK2YWO1D4tH3EKQffsLdlXZJkIzJPBJAAzGca', 'customer', NULL, '2017-01-05 18:21:22', '2017-01-05 18:21:22'),
(63, 'jhon', '$2y$10$mjXG2y4VKU3Ay9HldpvQKOEqANpCq616HyzNmt9UGGvaPpqUlW5gS', 'customer', NULL, '2017-01-05 18:22:04', '2017-01-05 18:22:04'),
(64, 'joel', '$2y$10$JS22efjwfGLimhN7GonYROoOx5i9TIVu8g2Z8ZdkG3EC5LU82OwBi', 'customer', '5VmuHZN47n5vuZMO695XhCS4GoUGyXhrUgApe4zZZO0xmzyCMRJJqxJUDbeO', '2017-01-05 18:22:15', '2017-01-09 05:57:26'),
(65, 'johan', '$2y$10$d8fXZYfnn3bkpbbbre1.buDvp/PSrxPaQvsv7wccUPaJlpaCsPzoa', 'customer', NULL, '2017-01-05 18:23:08', '2017-01-05 18:23:08'),
(66, 'juliper', '$2y$10$qpStTxd6xciHnRna9.Bzl.korHeBKvFa5l/Fq/frbxXYfUapov8h.', 'customer', NULL, '2017-01-05 18:23:24', '2017-01-05 18:23:24'),
(67, 'lestari', '$2y$10$riK8kTXUb3sbGUOEYdu0AeZlD4xSTiFBj2QKnWDy6YtKa4BFoCipi', 'customer', NULL, '2017-01-05 18:23:40', '2017-01-05 18:23:40'),
(68, 'lily', '$2y$10$c4HF9rfwoPbqyOUgGSU7aOTHvgGSJoUHZntc9uuIFwiCIk2CaaZ.O', 'customer', NULL, '2017-01-05 18:23:54', '2017-01-05 18:23:54'),
(69, 'martupa', '$2y$10$YuThH3AtEcecijuX29YLauCqGm4mIdjYFEnbhAJDgosiWqJb88pUC', 'customer', NULL, '2017-01-05 18:24:09', '2017-01-05 18:24:09'),
(70, 'palti', '$2y$10$HvOAakQKLDXIp69AimQmbOkhKdhAkwdd3jqMNBV.CZNnHKOQ1J9Nq', 'customer', NULL, '2017-01-05 18:24:21', '2017-01-05 18:24:21'),
(71, 'patota', '$2y$10$h3/WtY57IQV0LyvX5LvrGuj1kood0VfgXjwYAuY8Ub/EJqWbfP2wW', 'customer', NULL, '2017-01-05 18:24:34', '2017-01-05 18:24:34'),
(72, 'pratiwi', '$2y$10$zinaF3shDRNdccPvaIBNeOw.4VhrI37jTPZKDLWm/qD2jfEbA2jN2', 'customer', NULL, '2017-01-05 18:24:47', '2017-01-05 18:24:47'),
(73, 'rahel', '$2y$10$wSKh/UQhu8KBMdXTlHaFaOK6HVCn3Do27t0c8Be784nRha1nT8NLS', 'customer', NULL, '2017-01-05 18:24:58', '2017-01-05 18:24:58'),
(74, 'rizky', '$2y$10$cHsMVfYorE5wK/Tw5A0abOJTX7AriXYx6yciUHzDdzcXw2WQC30.e', 'customer', NULL, '2017-01-05 18:25:11', '2017-01-05 18:25:11'),
(75, 'winda', '$2y$10$CzdyOr20u8HvQE.i0Fq1ous1KZnSClNViQQBbHebT8I4njHt3i7cC', 'customer', NULL, '2017-01-05 18:25:34', '2017-01-05 18:25:34'),
(76, 'yessica', '$2y$10$KhvUVMAz2VSnoR1/UAk81ejkFiG/ggwU9nHtR.DxKkG//dQnELBZ.', 'customer', NULL, '2017-01-05 18:25:51', '2017-01-05 18:25:51'),
(77, 'yolanda', '$2y$10$EU0S5STwKWXDUWQ.Gt4EDOhqsgmD0FPskjfiWlTjhTYoSq2uq9dQK', 'customer', NULL, '2017-01-05 18:26:06', '2017-01-05 18:26:06'),
(78, 'yonatan', '$2y$10$ccJ/kckNJLQYpOEXyIeEtu8vBETqP4Uq.usAzAuYnWHeirT1LVpYK', 'customer', NULL, '2017-01-05 18:26:22', '2017-01-05 18:26:22'),
(79, 'hans', '$2y$10$Na/UejmGKYjiX4R9XzIAZ.DEra/0i5fu.QYTsbm29rdnrynfWU7aK', 'customer', NULL, '2017-01-05 18:26:33', '2017-01-05 18:26:33'),
(80, 'jhoncha', '$2y$10$rWU12Bzy.F/UjZmEuvwVFedMjoBoJKm/9dRdtBuAXuIB/kMT0i5O6', 'customer', NULL, '2017-01-05 18:27:09', '2017-01-05 18:27:09'),
(81, 'rinto', '$2y$10$Jj1Jbi2gKLkhp1jlxscpKemRpe9uubR3pzjQlkH/xZHXTeKfVRZdy', 'customer', '29iyGeO7IFTh4ub4QlSkPjcQYSEgLa6qWmGFqPzPFxanIl7YnZUIRIrFdq1s', '2017-01-05 18:27:24', '2017-01-06 00:38:51'),
(85, 'christine', '$2y$10$cd1pCSnr16eP/AJhk7zFOuHOjhHvCTxAyC7R2B/Xv2py60TLVjT2e', 'customer', NULL, '2017-01-09 05:55:52', '2017-01-09 05:55:52');
-- --
-- Indexes for dumped tables -- Indexes for dumped tables
-- --
-- --
-- Indexes for table `barang` -- Indexes for table `batal`
-- --
ALTER TABLE `barang` ALTER TABLE `batal`
ADD PRIMARY KEY (`id`); ADD PRIMARY KEY (`id`);
-- --
-- Indexes for table `customer_data` -- Indexes for table `bus`
--
ALTER TABLE `customer_data`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `username` (`username`);
--
-- Indexes for table `dapur`
-- --
ALTER TABLE `dapur` ALTER TABLE `bus`
ADD PRIMARY KEY (`id`); ADD PRIMARY KEY (`id`);
-- --
-- Indexes for table `feedback` -- Indexes for table `pemesanan`
-- --
ALTER TABLE `feedback` ALTER TABLE `pemesanan`
ADD PRIMARY KEY (`id`); ADD PRIMARY KEY (`id`);
-- --
-- Indexes for table `menu` -- Indexes for table `supir`
-- --
ALTER TABLE `menu` ALTER TABLE `supir`
ADD PRIMARY KEY (`id`); ADD PRIMARY KEY (`id`);
-- --
-- Indexes for table `order_product`
--
ALTER TABLE `order_product`
ADD PRIMARY KEY (`id`),
ADD KEY `customer_id` (`customer_username`),
ADD KEY `product_id` (`product_id`);
--
-- Indexes for table `order_product_temp`
--
ALTER TABLE `order_product_temp`
ADD PRIMARY KEY (`id`),
ADD KEY `customer_id` (`customer_username`),
ADD KEY `product_id` (`product_id`);
--
-- Indexes for table `topup_history`
--
ALTER TABLE `topup_history`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `topup_request`
--
ALTER TABLE `topup_request`
ADD PRIMARY KEY (`id`),
ADD KEY `customer_username` (`customer_username`);
--
-- Indexes for table `users` -- Indexes for table `users`
-- --
ALTER TABLE `users` ALTER TABLE `users`
...@@ -471,55 +194,25 @@ ALTER TABLE `users` ...@@ -471,55 +194,25 @@ ALTER TABLE `users`
-- --
-- --
-- AUTO_INCREMENT for table `barang` -- AUTO_INCREMENT for table `batal`
--
ALTER TABLE `barang`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=43;
--
-- AUTO_INCREMENT for table `customer_data`
--
ALTER TABLE `customer_data`
MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=50;
--
-- AUTO_INCREMENT for table `dapur`
--
ALTER TABLE `dapur`
MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=20;
--
-- AUTO_INCREMENT for table `feedback`
--
ALTER TABLE `feedback`
MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15;
--
-- AUTO_INCREMENT for table `menu`
--
ALTER TABLE `menu`
MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=26;
--
-- AUTO_INCREMENT for table `order_product`
--
ALTER TABLE `order_product`
MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=23;
--
-- AUTO_INCREMENT for table `order_product_temp`
-- --
ALTER TABLE `order_product_temp` ALTER TABLE `batal`
MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
-- --
-- AUTO_INCREMENT for table `topup_history` -- AUTO_INCREMENT for table `bus`
-- --
ALTER TABLE `topup_history` ALTER TABLE `bus`
MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=64; MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
-- --
-- AUTO_INCREMENT for table `topup_request` -- AUTO_INCREMENT for table `pemesanan`
-- --
ALTER TABLE `topup_request` ALTER TABLE `pemesanan`
MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11; MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=27;
-- --
-- AUTO_INCREMENT for table `users` -- AUTO_INCREMENT for table `users`
-- --
ALTER TABLE `users` ALTER TABLE `users`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=87; MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
@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-bus"></i>Riwayat Pemesanan Bus</li>
</ol><!-- breadcrumbs -->
</section>
<!-- Main content -->
<section class="content">
<!-- /.row -->
<div class="row">
<div class="col-xs-12">
<div class="box">
<div class="box-header">
<h3 class="box-title">List Pemesanan</h3>
<div class="box-tools">
<form action="{{url('/admin/pemesanan')}}">
<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>
<!-- /.box-header -->
<div class="box-body table-responsive no-padding">
<table class="table table-hover">
<thead><tr>
<th>Nama Pemesan</th>
<th>Tujuan</th>
<th>Berangkat</th>
<th>Alasan Pembatalan</th>
<th>Status</th>
</tr></thead>
<tbody>
@foreach($batal as $bata)
<tr>
<td>{{$bata->client_username}}</td>
<td>{{$bata->tujuan}}</td>
<td>{{$bata->berangkat}}</td>
<td>{{$bata->alasan_batal}}</td>
<td><span class="label label-danger">Dibatalkan</span>
</tr>
</form>
@endforeach
@foreach($pemesanan as $pesan)
<tr>
<td>{{$pesan->client_username}}</td>
<td>{{$pesan->tujuan}}</td>
<td>{{$pesan->berangkat}}</td>
<td></td>
<td><span class="label label-info">{{$pesan->status}}</span>
</tr>
</form>
@endforeach
</tbody>
</table>
</div>
<!-- /.box-body -->
</div>
<!-- /.box -->
</div>
</div>
</section>
<!-- /.content -->
</div>
</div>
</body>
@endif
\ No newline at end of file
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
</div> </div>
<!-- /.box-footer --> <!-- /.box-footer -->
<div class="box-footer"> <div class="box-footer">
<form action="" method="post"> <form action="{{url('/admin/pemesanan/konfirmasi',$pemesanan->id)}}" method="post" enctype="multipart/form-data">
{{ csrf_field() }} {{ csrf_field() }}
<div class="form-group has-feedback"> <div class="form-group has-feedback">
<label class="col-md-4 control-label">Nama Pemesan</label> <label class="col-md-4 control-label">Nama Pemesan</label>
...@@ -63,6 +63,12 @@ ...@@ -63,6 +63,12 @@
<label class="col-md-4 control-label">Plat Bus</label> <label class="col-md-4 control-label">Plat Bus</label>
<input type="text" class="form-control" name="plat_bus" value="{{$pemesanan->plat_bus}}" readonly> <input type="text" class="form-control" name="plat_bus" value="{{$pemesanan->plat_bus}}" readonly>
</div> </div>
<div class="form-group">
<label class="col-md-4 control-label">Status</label>
<input type="text" value="diproses" class="form-control" name="status" readonly>
</div>
<div class="form-group has-feedback"> <div class="form-group has-feedback">
<a href="{{url('admin/pemesanan/konfirmasi',$pemesanan->id)}}" class="btn btn-danger">Konfirmasi</a> <a href="{{url('admin/pemesanan/konfirmasi',$pemesanan->id)}}" class="btn btn-danger">Konfirmasi</a>
<a href="{{url('admin/pemesanan/tolak',$pemesanan->id)}}" class="btn btn-danger">Tolak</a> <a href="{{url('admin/pemesanan/tolak',$pemesanan->id)}}" class="btn btn-danger">Tolak</a>
......
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
<td>{{$pesan->client_username}}</td> <td>{{$pesan->client_username}}</td>
<td>{{$pesan->tujuan}}</td> <td>{{$pesan->tujuan}}</td>
<td>{{$pesan->berangkat}}</td> <td>{{$pesan->berangkat}}</td>
<td><span class="label label-info">Request</span></td> <td><span class="label label-info">{{$pesan->status}}</span></td>
<td colspan="3"> <td colspan="3">
<a href="{{url('admin/pemesanan/detail',$pesan->id)}}" class="btn btn-danger">Detail</a> <a href="{{url('admin/pemesanan/detail',$pesan->id)}}" class="btn btn-danger">Detail</a>
</td> </td>
......
...@@ -29,8 +29,7 @@ ...@@ -29,8 +29,7 @@
<thead><tr> <thead><tr>
<th>Nama Pemesan</th> <th>Nama Pemesan</th>
<th>Tujuan</th> <th>Tujuan</th>
<th>Berangkat</th> <th>Tanggal Berangkat</th>
<th>Alasan Pembatalan</th>
<th>Status</th> <th>Status</th>
</tr></thead> </tr></thead>
<tbody> <tbody>
...@@ -39,11 +38,17 @@ ...@@ -39,11 +38,17 @@
<td>{{$his->client_username}}</td> <td>{{$his->client_username}}</td>
<td>{{$his->tujuan}}</td> <td>{{$his->tujuan}}</td>
<td>{{$his->berangkat}}</td> <td>{{$his->berangkat}}</td>
<td>{{$his->alasan_batal}}</td>
<td><span class="label label-danger">Dibatalkan</span> <td><span class="label label-danger">Dibatalkan</span>
</tr> </tr>
</form> </form>
@endforeach @endforeach
@foreach($status as $stat)
<tr>
<td>{{$stat->client_username}}</td>
<td>{{$stat->tujuan}}</td>
<td>{{$stat->berangkat}}</td>
<td><span class="label label-info">Request</span>
@endforeach
</tbody> </tbody>
</table> </table>
</div> </div>
......
...@@ -84,6 +84,11 @@ ...@@ -84,6 +84,11 @@
</div> </div>
<div class="form-group"> <div class="form-group">
<label>Status</label>
<input type="text" value="request" class="form-control" name="status" readonly>
</div>
<div class="form-group">
</div> </div>
<!-- /.form-group --> <!-- /.form-group -->
......
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
<td>{{$stat->tujuan}}</td> <td>{{$stat->tujuan}}</td>
<td>{{$stat->berangkat}}</td> <td>{{$stat->berangkat}}</td>
<td>{{$stat->plat_bus}}</td> <td>{{$stat->plat_bus}}</td>
<td><span class="label label-info">Request</span> <td><span class="label label-info">{{$stat->status}}</span>
<button class="label label-danger">Batalkan</button></td> <button class="label label-danger">Batalkan</button></td>
</tr> </tr>
</form> </form>
......
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
<input type="text" class="form-control" name="jumlah" value="{{$pemesanan->jumlah}}" readonly> <input type="text" class="form-control" name="jumlah" value="{{$pemesanan->jumlah}}" readonly>
</div> </div>
<div class="form-group has-feedback"> <div class="form-group has-feedback">
<label class="col-md-4 control-label">Alasan</label> <label class="col-md-6 control-label">Keperluan Pemesanan</label>
<textarea class="form-control" placeholder="Berikan deskripsi disini" rows="3" name="alasan" readonly>{{$pemesanan->alasan}}</textarea> <textarea class="form-control" placeholder="Berikan deskripsi disini" rows="3" name="alasan" readonly>{{$pemesanan->alasan}}</textarea>
</div> </div>
<div class="form-group has-feedback"> <div class="form-group has-feedback">
......
...@@ -3,9 +3,9 @@ ...@@ -3,9 +3,9 @@
<!-- Logo --> <!-- Logo -->
<a href="index2.html" class="logo"> <a href="index2.html" class="logo">
<!-- mini logo for sidebar mini 50x50 pixels --> <!-- mini logo for sidebar mini 50x50 pixels -->
<span class="logo-mini"><b>SI</b>PB</span> <span class="logo-mini"><b>BoD</b>IS</span>
<!-- logo for regular state and mobile devices --> <!-- logo for regular state and mobile devices -->
<span class="logo-lg"><b>SI</b>Pemesanan_Bus</span> <span class="logo-lg">Booking Driver<b>IS</b></span>
</a> </a>
<!-- Header Navbar: style can be found in header.less --> <!-- Header Navbar: style can be found in header.less -->
<nav class="navbar navbar-static-top" role="navigation"> <nav class="navbar navbar-static-top" role="navigation">
......
...@@ -59,6 +59,13 @@ ...@@ -59,6 +59,13 @@
</a> </a>
</li> </li>
<li class="{{Request::segment(2) == 'riwayat' ? 'active' : ''}}">
<a href="{{url('admin/history')}}">
<i class="fa fa-group"></i>
<span>Riwayat</span>
</a>
</li>
</ul> </ul>
@elseif(Auth::user()->role == 'k_supir') @elseif(Auth::user()->role == 'k_supir')
......
...@@ -3,6 +3,7 @@ Use App\Models\Bus; ...@@ -3,6 +3,7 @@ Use App\Models\Bus;
Use App\Models\Supir; Use App\Models\Supir;
Use App\Models\Users; Use App\Models\Users;
Use App\Models\Pemesanan; Use App\Models\Pemesanan;
Use App\Models\Batal;
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| Web Routes | Web Routes
...@@ -24,7 +25,7 @@ Route::group(['namespace' => 'auth'],function(){ ...@@ -24,7 +25,7 @@ Route::group(['namespace' => 'auth'],function(){
Auth::logout(); Auth::logout();
return redirect('/'); return redirect('/');
})->name('logout'); })->name('logout');
Route::post('/register','RegisterController@store'); Route::get('/register','RegisterController@store');
}); });
...@@ -57,8 +58,12 @@ Route::group(['prefix' => 'admin','middleware' => 'admin'], function() { ...@@ -57,8 +58,12 @@ Route::group(['prefix' => 'admin','middleware' => 'admin'], function() {
Route::get('/profil','AdminController@profil'); Route::get('/profil','AdminController@profil');
Route::get('/history','AdminController@history');
Route::get('/pemesanan','AdminController@pemesanan'); Route::get('/pemesanan','AdminController@pemesanan');
Route::get('/pemesanan/detail/{id}','AdminController@detailpemesanan'); Route::get('/pemesanan/detail/{id}','AdminController@detailpemesanan');
Route::get('/pemesanan/tolak/{id}','AdminController@tolak');
Route::get('/pemesanan/konfirmasi/{id}','AdminController@konfirmasi');
}); });
Route::group(['prefix' => 'k_supir','middleware' => 'k_supir'], function() { Route::group(['prefix' => 'k_supir','middleware' => 'k_supir'], function() {
...@@ -83,4 +88,6 @@ Route::group(['prefix' => 'klien','middleware' => 'klien'], function() { ...@@ -83,4 +88,6 @@ Route::group(['prefix' => 'klien','middleware' => 'klien'], function() {
Route::get('/status','KlienController@status'); Route::get('/status','KlienController@status');
Route::get('/pemesanan/batal/{id}','KlienController@batal'); Route::get('/pemesanan/batal/{id}','KlienController@batal');
Route::get('/pesan/pilih_bus/{id}','KlienController@pilih_bus'); Route::get('/pesan/pilih_bus/{id}','KlienController@pilih_bus');
Route::get('/status/batal/{id}','KlienController@batal');
Route::post('/kirim_pembatalan','KlienController@kirim_pembatalan');
}); });
\ No newline at end of file
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