Commit 8824de27 by Rinto

new

parent 98fa27bc
......@@ -284,24 +284,12 @@ class AdminController extends Controller
return redirect(url('/admin/history'))->with('info','History berhasil dihapus');
}
public function history_detail($id){
$this->data['title'] = 'Detail Pemesanan';
$this->data['batal'] = Batal::find($id);
return view('admin.history.detail',$this->data);
}
public function hapus_history2($id){
$konfir = DB::table('konfirmasi')->where('id' , $id)->first();
Konfirmasi::find($id)->delete();
return redirect(url('/admin/history'))->with('info','History berhasil dihapus');
}
public function history_detail2($id){
$this->data['title'] = 'Detail Pemesanan';
$this->data['konfirmasi'] = Konfirmasi::find($id);
return view('admin.history.detail',$this->data);
}
public function pemesanan(){
$key = Input::get('search');
$this->data['title'] = 'Pemesanan Bus IT Del';
......
......@@ -156,10 +156,44 @@ class K_SupirController extends Controller
$this->data['title'] = 'Jadwal Supir IT Del';
if(isset($key)){
$this->data['jadwal'] = Jadwal::where('hari','like','%'.$key.'%')->orderBy('id','asc')->paginate(10);
$this->data['supir'] = Supir::where('nama_bus','like','%'.$key.'%')->orderBy('id','desc')->paginate(10);
}else{
$this->data['jadwal'] = Jadwal::orderBy('id','asc')->paginate(10);
$this->data['supir'] = Supir::orderBy('id','desc')->paginate(10);
}
$this->data['total'] = DB::table('jadwal')->get();
$this->data['total'] = DB::table('supir')->get();
return view('k_supir.supir.jadwal',$this->data);
}
public function update_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);
$this->data['supir'] = Supir::where('nama_bus','like','%'.$key.'%')->orderBy('id','desc')->paginate(10);
}else{
$this->data['jadwal'] = Jadwal::orderBy('id','asc')->paginate(10);
$this->data['supir'] = Supir::orderBy('id','desc')->paginate(10);
}
$this->data['total'] = DB::table('jadwal')->get();
$this->data['total'] = DB::table('supir')->get();
return view('k_supir.supir.update_jadwal',$this->data);
}
public function invoice_print(){
$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);
$this->data['supir'] = Supir::where('nama_bus','like','%'.$key.'%')->orderBy('id','desc')->paginate(10);
}else{
$this->data['jadwal'] = Jadwal::orderBy('id','asc')->paginate(10);
$this->data['supir'] = Supir::orderBy('id','desc')->paginate(10);
}
$this->data['total'] = DB::table('jadwal')->get();
$this->data['total'] = DB::table('supir')->get();
return view('k_supir.supir.invoice-print',$this->data);
}
}
......@@ -27,8 +27,13 @@ class KlienController extends Controller
public function pemesanan(Request $request){
$input = $request->all();
Pemesanan::create($input);
return redirect(url('/klien/status/'))->with('info','Data Bus berhasil ditambah');
if($berangkat = DB::table('pemesanan')->where('berangkat' , $input['berangkat'])->first()){
return redirect()->back()->with('info','Tanggal Salah');
}else{
Pemesanan::create($input);
return redirect(url('/klien/status/'))->with('info','Pemesanan Berhasil di Lakukan');
}
}
public function bus(){
......@@ -103,7 +108,6 @@ class KlienController extends Controller
public function kirim_pembatalan(Request $request,$id){
$this->data['pemesanan'] = Pemesanan::find($id);
pemesanan::find($id)->delete();
$input = $request->all();
Batal::create($input);
return redirect(url('/klien'))->with('info','Pembatalan Berhasil dilakukan');
......@@ -111,10 +115,16 @@ class KlienController extends Controller
public function history_detail($id){
$this->data['title'] = 'Detail Pemesanan';
$this->data['pemesanan'] = Pemesanan::find($id);
$this->data['batal'] = Batal::find($id);
return view('klien.history.detail',$this->data);
}
public function history_detail2($id){
$this->data['title'] = 'Detail Pemesanan';
$this->data['konfirmasi'] = Konfirmasi::find($id);
return view('klien.history.detail2',$this->data);
}
public function profil(){
$this->data['title'] = 'Profil';
return view('klien.profil.index',$this->data);
......
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Coba extends Model
{
protected $table = 'coba';
protected $fillable = ['nama_bus','jenis_bus','plat_bus','deskripsi'];
//
}
\ No newline at end of file
......@@ -28,11 +28,7 @@ CREATE TABLE `batal` (
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 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-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-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-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-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 13:43:54', '2017-05-09 13:43:54');
(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');
-- --------------------------------------------------------
......@@ -63,6 +59,64 @@ INSERT INTO `bus` (`id`, `nama_bus`, `jenis_bus`, `plat_bus`, `deskripsi`, `imag
-- --------------------------------------------------------
--
-- Struktur dari tabel `jadwal`
--
CREATE TABLE `jadwal` (
`id` int(100) NOT NULL,
`hari` varchar(100) NOT NULL,
`nama_supir` varchar(100) NOT NULL,
`nama_supir2` varchar(100) NOT NULL,
`pukul` time NOT NULL,
`pukul2` time NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `jadwal`
--
INSERT INTO `jadwal` (`id`, `hari`, `nama_supir`, `nama_supir2`, `pukul`, `pukul2`, `created_at`, `updated_at`) VALUES
(1, 'Senin', 'Supir', 'Supir 2', '06:00:00', '18:00:00', '2017-05-08 13:59:32', '2017-05-08 13:59:32'),
(2, 'Selasa', '', '', '00:00:00', '00:00:00', '2017-05-08 13:59:32', '2017-05-23 07:00:00'),
(3, 'Rabu', '', '', '00:00:00', '00:00:00', '2017-05-08 13:59:32', '2017-05-08 13:59:32'),
(4, 'Kamis', '', '', '00:00:00', '00:00:00', '2017-05-08 13:59:32', '2017-05-08 13:59:32'),
(5, 'Jumat', '', '', '00:00:00', '00:00:00', '2017-05-08 13:59:32', '2017-05-08 13:59:32'),
(6, 'Sabtu', '', '', '00:00:00', '00:00:00', '2017-05-08 13:59:32', '2017-05-08 13:59:32'),
(7, 'Minggu', '', '', '00:00:00', '00:00:00', '2017-05-08 13:59:32', '2017-05-08 13:59:32');
-- --------------------------------------------------------
--
-- Struktur dari tabel `konfirmasi`
--
CREATE TABLE `konfirmasi` (
`id` int(10) NOT NULL,
`tujuan` varchar(100) NOT NULL,
`jumlah` int(100) NOT NULL,
`alasan` text NOT NULL,
`berangkat` date NOT NULL,
`kembali` date NOT NULL,
`client_username` varchar(100) NOT NULL,
`status` varchar(100) NOT NULL,
`plat_bus` varchar(100) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `konfirmasi`
--
INSERT INTO `konfirmasi` (`id`, `tujuan`, `jumlah`, `alasan`, `berangkat`, `kembali`, `client_username`, `status`, `plat_bus`, `created_at`, `updated_at`) VALUES
(3, 'Bandung', 20, 'Jalan-Jalan', '2016-10-15', '2017-10-10', 'klien', 'disetujui', ' ', '2017-05-22 02:41:23', '2017-05-22 02:41:23'),
(33, 'ww', 2, 'tryy', '2016-10-10', '2017-10-10', 'klien', 'disetujui', ' ', '2017-05-18 03:10:31', '2017-05-18 03:10:31');
-- --------------------------------------------------------
--
-- Struktur dari tabel `pemesanan`
--
......@@ -80,6 +134,14 @@ CREATE TABLE `pemesanan` (
`updated_at` timestamp NULL DEFAULT NULL
) 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
(1, 'Medan', 10, 'ON MIPA', '2016-10-10', '2017-10-10', 'klien', '912', 'diproses', '2017-05-22 02:37:29', '2017-05-22 02:40:10'),
(2, 'Semarang', 10, 'Jalan-Jalan', '2017-05-14', '2017-05-17', 'klien', '911', 'diproses', '2017-05-22 02:38:02', '2017-05-22 02:40:05');
-- --------------------------------------------------------
--
......@@ -103,7 +165,9 @@ CREATE TABLE `supir` (
--
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 12:15:35', '2017-04-27 12: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'),
(1234, 'Supir 2', 'Sitoluama / 09-11-1996', 'Sitoluama', 'Laki-Laki', 'K.Protestan', '1495427521.jpg', '2017-05-21 21:32:01', '2017-05-21 21:32:01'),
(12345, 'Supir 3', 'Sitoluama / 09-11-1996', 'Sitoluama', 'Laki-Laki', 'K.Protestan', '1495427542.jpg', '2017-05-21 21:32:22', '2017-05-21 21:32:22');
-- --------------------------------------------------------
......@@ -126,9 +190,9 @@ CREATE TABLE `users` (
--
INSERT INTO `users` (`id`, `username`, `password`, `role`, `remember_token`, `created_at`, `updated_at`) VALUES
(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', 'ffE9cqJeQm31h8mSTGsQD8KmK71ueZc86IqzkRQZYA0FdHCJo7HhDPv4fPn9', '2017-04-18 14:02:08', '2017-05-18 03:10:50'),
(7, 'klien', '$2y$10$YK4Otf.9YAXfxS4LI5MS/uydscvcS0oqIEHAncAodOpFgulK02UFm', 'klien', 'sJKqYy96MGFlu5Ts1rFgdQk3Ccfdh7ghfZ4zVFpQBETomugzA6lxRG7MPd74', '2017-04-21 00:39:53', '2017-05-18 03:05:10');
(2, 'k_klien', '$2y$10$RYpRtEdIeZoAhvhZJqDyUuwPq5t4jQIhRgyx8sUk2h4gKmP60dm.2', 'admin', 'GGIwhAb49IYn3f6wRzrC7URwGQdH1zBJx2Wzf3JZavJxXMYfUgaPsTixHyZM', '2017-04-10 14:30:13', '2017-05-22 23:28:54'),
(4, 'k_supir', '$2y$10$uFVdCb3I5aoQuKX474arD.Jo4KjXCiejs4uMDNzYudRe.FTxdvn8S', 'k_supir', 'IMYQGyZejnP2rrUw56m2WBmRYiW6bahGoyVHybq80OLK3POWtF6wGicwRwEA', '2017-04-18 14:02:08', '2017-05-22 02:36:47'),
(7, 'klien', '$2y$10$YK4Otf.9YAXfxS4LI5MS/uydscvcS0oqIEHAncAodOpFgulK02UFm', 'klien', 'coiJnOEng5lvmU40fjVIg11TUnblMkb86dl02mk13EZmiTYb0hxZloHpaDfk', '2017-04-21 00:39:53', '2017-05-22 02:39:40');
--
-- Indexes for dumped tables
......@@ -147,6 +211,18 @@ ALTER TABLE `bus`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `jadwal`
--
ALTER TABLE `jadwal`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `konfirmasi`
--
ALTER TABLE `konfirmasi`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `pemesanan`
--
ALTER TABLE `pemesanan`
......@@ -173,17 +249,22 @@ ALTER TABLE `users`
-- AUTO_INCREMENT for table `batal`
--
ALTER TABLE `batal`
MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `bus`
--
ALTER TABLE `bus`
MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
--
-- AUTO_INCREMENT for table `jadwal`
--
ALTER TABLE `jadwal`
MODIFY `id` int(100) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
--
-- AUTO_INCREMENT for table `pemesanan`
--
ALTER TABLE `pemesanan`
MODIFY `id` int(10) NOT NULL AUTO_INCREMENT;
MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `users`
--
......
......@@ -8,8 +8,8 @@
<!-- 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 class="breadcrumb"><li><a href="/"><i class="fa fa-home"></i> Home</a></li>
<li class="active"><i class="fa fa-bus"></i> Riwayat Pemesanan Bus</li>
</ol><!-- breadcrumbs -->
</section>
......@@ -51,7 +51,6 @@
<td>{{$bata->berangkat}}</td>
<td><span class="label label-danger">Dibatalkan</span>
<td colspan="3">
<a href="{{url('admin/history/detail',$bata->id)}}" class="btn btn-danger">Detail</a>
<a href="{{url('admin/history/hapus',$bata->id)}}" class="btn btn-danger">Hapus</a>
</td>
</tr>
......@@ -64,7 +63,6 @@
<td>{{$konfir->berangkat}}</td>
<td><span class="label label-info">{{$konfir->status}}</span>
<td colspan="3">
<a href="{{url('admin/history/detail2',$konfir->id)}}" class="btn btn-danger">Detail</a>
<a href="{{url('admin/history/hapus2',$konfir->id)}}" class="btn btn-danger">Hapus</a>
</td>
</tr>
......
......@@ -46,8 +46,6 @@
<thead><tr>
<th>Username User</th>
<th>Role</th>
<th>Created At</th>
<th>Updated At</th>
<th>Aksi</th>
</tr></thead>
<tbody>
......@@ -55,11 +53,8 @@
<tr>
<td>{{$stf->username}}</td>
<td>{{$stf->role}}</td>
<td>{{$stf->created_at}}</td>
<td>{{$stf->updated_at}}</td>
<td>
<a href="{{url('admin/user/hapus',$stf->id)}}" class="btn btn-danger">Hapus</a>
<i fa-user-plus></i>
</td>
</tr>
</form>
......
......@@ -48,7 +48,7 @@
<td>{{$konfir->client_username}}</td>
<td>{{$konfir->tujuan}}</td>
<td>{{$konfir->berangkat}}</td>
<td><span class="label label-info">{{$konfir->status}}</span>
<td><span class="label label-info">{{$konfir->status}}</span></td>
<td colspan="3">
<a href="{{url('k_supir/history/detail',$konfir->id)}}" class="btn btn-danger">Detail</a>
</td>
......
......@@ -5,29 +5,160 @@
<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>
<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 -->
<section class="content">
<!-- /.row -->
<div class="row"></div>
<section class="invoice">
<!-- title row -->
<div class="row">
<div class="col-xs-12">
<h2 class="page-header">
<i class="fa fa-globe"></i> AdminLTE, Inc.
<small class="pull-right">Date: 2/10/2014</small>
</h2>
</div>
<!-- /.col -->
</div>
<!-- info row -->
<div class="row invoice-info">
<div class="col-sm-4 invoice-col">
From
<address>
<strong>Admin, Inc.</strong><br>
795 Folsom Ave, Suite 600<br>
San Francisco, CA 94107<br>
Phone: (804) 123-5432<br>
Email: info@almasaeedstudio.com
</address>
</div>
<!-- /.col -->
<div class="col-sm-4 invoice-col">
To
<address>
<strong>John Doe</strong><br>
795 Folsom Ave, Suite 600<br>
San Francisco, CA 94107<br>
Phone: (555) 539-1037<br>
Email: john.doe@example.com
</address>
</div>
<!-- /.col -->
<div class="col-sm-4 invoice-col">
<b>Invoice #007612</b><br>
<br>
<b>Order ID:</b> 4F3S8J<br>
<b>Payment Due:</b> 2/22/2014<br>
<b>Account:</b> 968-34567
</div>
<!-- /.col -->
</div>
<!-- /.row -->
<!-- Table row -->
<div class="row">
<div class="col-xs-12 table-responsive">
<table class="table table-striped">
<thead>
<tr>
<th>Qty</th>
<th>Product</th>
<th>Serial #</th>
<th>Description</th>
<th>Subtotal</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>Call of Duty</td>
<td>455-981-221</td>
<td>El snort testosterone trophy driving gloves handsome</td>
<td>$64.50</td>
</tr>
<tr>
<td>1</td>
<td>Need for Speed IV</td>
<td>247-925-726</td>
<td>Wes Anderson umami biodiesel</td>
<td>$50.00</td>
</tr>
<tr>
<td>1</td>
<td>Monsters DVD</td>
<td>735-845-642</td>
<td>Terry Richardson helvetica tousled street art master</td>
<td>$10.70</td>
</tr>
<tr>
<td>1</td>
<td>Grown Ups Blue Ray</td>
<td>422-568-642</td>
<td>Tousled lomo letterpress</td>
<td>$25.99</td>
</tr>
</tbody>
</table>
</div>
<!-- /.col -->
</div>
<!-- /.row -->
<div class="row">
<!-- accepted payments column -->
<div class="col-xs-6">
<p class="lead">Payment Methods:</p>
<img src="../../dist/img/credit/visa.png" alt="Visa">
<img src="../../dist/img/credit/mastercard.png" alt="Mastercard">
<img src="../../dist/img/credit/american-express.png" alt="American Express">
<img src="../../dist/img/credit/paypal2.png" alt="Paypal">
<p class="text-muted well well-sm no-shadow" style="margin-top: 10px;">
Etsy doostang zoodles disqus groupon greplin oooj voxy zoodles, weebly ning heekya handango imeem plugg
dopplr jibjab, movity jajah plickers sifteo edmodo ifttt zimbra.
</p>
</div>
<!-- /.col -->
<div class="col-xs-6">
<p class="lead">Amount Due 2/22/2014</p>
<div class="table-responsive">
<table class="table">
<tbody><tr>
<th style="width:50%">Subtotal:</th>
<td>$250.30</td>
</tr>
<tr>
<th>Tax (9.3%)</th>
<td>$10.34</td>
</tr>
<tr>
<th>Shipping:</th>
<td>$5.80</td>
</tr>
<tr>
<th>Total:</th>
<td>$265.24</td>
</tr>
</tbody></table>
</div>
</div>
<!-- /.col -->
</div>
<!-- /.row -->
<!-- this row will not appear when printing -->
<div class="row no-print">
<div class="col-xs-12">
<a href="invoice-print.html" target="_blank" class="btn btn-default"><i class="fa fa-print"></i> Print</a>
<button type="button" class="btn btn-success pull-right"><i class="fa fa-credit-card"></i> Submit Payment
</button>
<button type="button" class="btn btn-primary pull-right" style="margin-right: 5px;">
<i class="fa fa-download"></i> Generate PDF
</button>
</div>
</div>
</section>
</section>
<!-- /.content -->
</div>
......
......@@ -66,7 +66,7 @@
</div>
<div class="form-group has-feedback">
<div class="input-group input-group-sm">
<input type="text" value="{{$pemesanan->plat_bus}}" class="form-control" name="plat_bus" readonly>
<input type="text" value="{{$pemesanan->plat_bus}}" class="form-control" name="plat_bus" required>
<span class="input-group-btn">
<a href="{{url('k_supir/pemesanan/pilih')}}" type="button" class="btn btn-info btn-flat">Pilih Bus</a>
</span>
......
<!DOCTYPE html>
<html idmmzcc-ext-docid="480679936" style="height: auto;">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Booking Driver IS</title>
<!-- Tell the browser to be responsive to screen width -->
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<!-- Bootstrap 3.3.5 -->
<link rel="stylesheet" href="{{ asset('AdminLTE-2.3.0/bootstrap/css/bootstrap.min.css') }}">
<!-- Font Awesome -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
<!-- Ionicons -->
<link rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">
<!-- Theme style -->
<link rel="stylesheet" href="{{ asset('AdminLTE-2.3.0/dist/css/AdminLTE.min.css') }}">
<!-- AdminLTE Skins. Choose a skin from the css/skins
folder instead of downloading all of them to reduce the load. -->
<link rel="stylesheet" href="{{ asset('AdminLTE-2.3.0/dist/css/skins/_all-skins.min.css') }}">
<!-- iCheck -->
<link rel="stylesheet" href="{{ asset('AdminLTE-2.3.0/plugins/iCheck/flat/blue.css') }}">
<!-- Morris chart -->
<link rel="stylesheet" href="{{ asset('AdminLTE-2.3.0/plugins/morris/morris.css') }}">
<!-- jvectormap -->
<link rel="stylesheet" href="{{ asset('AdminLTE-2.3.0/plugins/jvectormap/jquery-jvectormap-1.2.2.css') }}">
<!-- Date Picker -->
<link rel="stylesheet" href="{{ asset('AdminLTE-2.3.0/plugins/datepicker/datepicker3.css') }}">
<!-- Daterange picker -->
<link rel="stylesheet" href="{{ asset('AdminLTE-2.3.0/plugins/daterangepicker/daterangepicker-bs3.css') }}">
<!-- bootstrap wysihtml5 - text editor -->
<link rel="stylesheet" href="{{ asset('AdminLTE-2.3.0/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css') }}">
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<script src="{{ asset('AdminLTE-2.3.0/plugins/jQuery/jquery-2.2.3.min.js') }}" type="text/javascript"></script>
<script src="{{ asset('AdminLTE-2.3.0/plugins/datepicker/bootstrap2-toggle.min.js') }}" type="text/javascript"></script>
<script src="{{ asset('AdminLTE-2.3.0/plugins/datepicker/bootstrap-datepicker.js') }}" type="text/javascript"></script>
<script src="{{ asset('AdminLTE-2.3.0/plugins/datepicker/locales/bootstrap-datepicker.id.js') }}" type="text/javascript"></script>
<![endif]-->
</head>
<body onload="window.print();">
<div class="wrapper">
<!-- Main content -->
<section class="invoice">
<!-- title row -->
<div class="row">
<div class="col-xs-12">
<h2 class="page-header">
<i class="fa fa-globe"></i> Jadwal Supir
<small class="pull-right">Date: 2/10/2014</small>
</h2>
</div>
<!-- /.col -->
</div>
<!-- info row -->
<div class="row invoice-info"></div>
<!-- Table row -->
<div class="row">
<div class="col-xs-12 table-responsive">
<table class="table table-striped">
<thead>
<tr>
<th>Hari</th>
<th>Nama Supir 1</th>
<th>Status</th>
<th>Nama Supir 2</th>
<th>Status</th>
</tr>
</thead>
<tbody>
@foreach($jadwal as $jad)
<tr>
<td><b>{{$jad->hari}}</b></td>
<td>
<div class="input-group">
<input name="message" placeholder="Nama Supir" class="form-control" type="text">
</div>
</td>
<td>
<span class="label label-info">Bertugas</span>
</td>
<td>
<div class="input-group">
<input name="message" placeholder="Nama Supir" class="form-control" type="text">
</div>
</td>
<td>
<span class="label label-info">Bertugas</span>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</section>
<!-- /.content -->
</div>
<!-- ./wrapper -->
</body>
</html>
\ No newline at end of file
......@@ -15,58 +15,65 @@
<!-- 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>
<section class="invoice">
<!-- title row -->
<div class="row">
<div class="col-xs-12">
<h2 class="page-header">
<i class="fa fa-globe"></i> Jadwal Supir
<small class="pull-right">Date: 2/10/2014</small>
</h2>
</div>
<!-- /.box -->
<!-- /.col -->
</div>
</div>
<!-- info row -->
<div class="row invoice-info"></div>
<!-- Table row -->
<div class="row">
<div class="col-xs-12 table-responsive">
<table class="table table-striped">
<thead>
<tr>
<th>Hari</th>
<th>Nama Supir 1</th>
<th>Pukul</th>
<th>Nama Supir 2</th>
<th>Pukul</th>
</tr>
</thead>
<tbody>
@foreach($jadwal as $jad)
<tr>
<td><b>{{$jad->hari}}</b></td>
<td>
{{$jad->nama_supir}}
</td>
<td>
{{$jad->pukul}}
</td>
<td>
{{$jad->nama_supir2}}
</td>
<td>
{{$jad->pukul2}}
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
<!-- /.box-footer -->
<div class="box-footer">
<a href="{{url('k_supir/supir/update_jadwal')}}" class="btn btn-info">Update Jadwal</a>
<a href="{{url('k_supir/supir/invoice-print')}}" target="_blank" class="btn btn-default"><i class="fa fa-print"></i> Print</a>
</div>
</section>
</section>
<!-- /.content -->
</div>
</div>
</body>
@endif
\ No newline at end of file
</body>@endif
@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>
<li class="active"><i class="fa fa-users"></i>Update Jadwal Supir</li>
</ol><!-- breadcrumbs -->
</section>
<!-- Main content -->
<section class="content">
<!-- /.row -->
<div class="row">
<div class="col-md-9">
<section class="invoice">
<!-- title row -->
<div class="row">
<div class="col-xs-12">
<h2 class="page-header">
<i class="fa fa-globe"></i> Jadwal Supir
<small class="pull-right">Date: 2/10/2014</small>
</h2>
</div>
<!-- /.col -->
</div>
<!-- info row -->
<div class="row invoice-info"></div>
<!-- Table row -->
<div class="row">
<div class="col-xs-12 table-responsive">
<table class="table table-striped">
<thead>
<tr>
<th>Hari</th>
<th>Nama Supir 1</th>
<th>Pukul</th>
<th>Nama Supir 2</th>
<th>Pukul</th>
</tr>
</thead>
<tbody>
@foreach($jadwal as $jad)
<tr>
<td><b>{{$jad->hari}}</b></td>
<td>
{{$jad->nama_supir}}
</td>
<td>
{{$jad->pukul}}
</td>
<td>
{{$jad->nama_supir2}}
</td>
<td>
{{$jad->pukul2}}
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
<!-- /.box-footer -->
<div class="box-footer">
<a href="{{url('k_supir/supir/update_jadwal')}}" class="btn btn-info">Simpan</a>
</div>
</section>
</div>
<!-- /.col -->
<div class="col-md-3">
<!-- Box Comment -->
<div class="box box-widget">
<div class="box-header with-border">
<div class="user-block">
<span class="username">Supir Terdaftar</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">
<table class="table table-hover">
<thead><tr>
<th>Nama Supir</th>
<th>Gambar</th>
</tr></thead>
<tbody>
@foreach($supir as $supi)
<tr>
<td>
<div id="external-events">
<div class="external-event bg-yellow ui-draggable ui-draggable-handle" style="position: relative;">
{{$supi->nama_supir}}
</div>
</div>
</td>
<td>
<div class="user-block">
<img style="display: block;margin-left: auto;margin-right: auto;" src="{{ asset('image/' . $supi->image) }}"/>
</div>
</td>
</tr>
</form>
@endforeach
</tbody>
</table>
</div>
<!-- /.box-body -->
<!-- /.box-footer -->
<div class="box-footer"></div>
<!-- /.box-footer -->
</div>
<!-- /.box -->
</div>
<!-- /.col -->
</div>
</section>
<!-- /.content -->
</div>
</div>
</body>
@endif
\ No newline at end of file
......@@ -8,9 +8,9 @@
<!-- 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>Pemesanan</li>
<li class="active"><i class="fa-users"></i>Detail Pesanan</li>
<ol class="breadcrumb"><li><a href="{{url('/')}}"><i class="fa fa-home"></i> Home</a></li>
<li class="active"><i class="fa fa-clipboard"></i> Riwayat Pemesanan</li>
<li class="active"><i class="fa fa-clipboard"></i> Detail Pemesanan</li>
</ol><!-- breadcrumbs -->
</section>
......@@ -23,7 +23,7 @@
<div class="box box-widget">
<div class="box-header with-border">
<div class="user-block">
<span class="username">{{$pemesanan->client_username}}</span>
<span class="username">{{$batal->client_username}}</span>
</div>
<!-- /.user-block -->
<div class="box-tools">
......@@ -37,32 +37,33 @@
{{ csrf_field() }}
<div class="form-group has-feedback">
<label class="col-md-4 control-label">Nama Pemesan</label>
<input type="text" class="form-control" name="client_username" value="{{$pemesanan->client_username}}" readonly>
<input type="text" class="form-control" name="client_username" value="{{$batal->client_username}}" readonly>
</div>
<div class="form-group has-feedback">
<label class="col-md-4 control-label">Tujuan</label>
<input type="text" class="form-control" name="tujuan" value="{{$pemesanan->tujuan}}" readonly>
<input type="text" class="form-control" name="tujuan" value="{{$batal->tujuan}}" readonly>
</div>
<div class="form-group has-feedback">
<label class="col-md-4 control-label">Jumlah</label>
<input type="text" class="form-control" name="jumlah" value="{{$pemesanan->jumlah}}" readonly>
<input type="text" class="form-control" name="jumlah" value="{{$batal->jumlah}}" readonly>
</div>
<div class="form-group has-feedback">
<label class="col-md-4 control-label">Alasan</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>{{$batal->alasan}}</textarea>
</div>
<div class="form-group has-feedback">
<label class="col-md-4 control-label">Berangkat</label>
<input type="text" class="form-control" name="berangkat" value="{{$pemesanan->berangkat}}" readonly>
<input type="text" class="form-control" name="berangkat" value="{{$batal->berangkat}}" readonly>
</div>
<div class="form-group has-feedback">
<label class="col-md-4 control-label">Kembali</label>
<input type="text" class="form-control" name="kembali" value="{{$pemesanan->kembali}}" readonly>
<input type="text" class="form-control" name="kembali" value="{{$batal->kembali}}" readonly>
</div>
<div class="form-group has-feedback">
<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="{{$batal->plat_bus}}" readonly>
</div>
<td>Status : <span class="label label-danger">Dibatalkan</span></td>
</form><br>
</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="{{url('/')}}"><i class="fa fa-home"></i> Home</a></li>
<li class="active"><i class="fa fa-clipboard"></i> Riwayat Pemesanan</li>
<li class="active"><i class="fa fa-clipboard"></i> Detail Pemesanan</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">
<span class="username">{{$konfirmasi->client_username}}</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-footer -->
<div class="box-footer">
<form action=" " method="post" enctype="multipart/form-data">
{{ csrf_field() }}
<div class="form-group has-feedback">
<label class="col-md-4 control-label">Nama Pemesan</label>
<input type="text" class="form-control" name="client_username" value="{{$konfirmasi->client_username}}" readonly>
</div>
<div class="form-group has-feedback">
<label class="col-md-4 control-label">Tujuan</label>
<input type="text" class="form-control" name="tujuan" value="{{$konfirmasi->tujuan}}" readonly>
</div>
<div class="form-group has-feedback">
<label class="col-md-4 control-label">Jumlah</label>
<input type="text" class="form-control" name="jumlah" value="{{$konfirmasi->jumlah}}" readonly>
</div>
<div class="form-group has-feedback">
<label class="col-md-4 control-label">Alasan</label>
<textarea class="form-control" placeholder="Berikan deskripsi disini" rows="3" name="alasan" readonly>{{$konfirmasi->alasan}}</textarea>
</div>
<div class="form-group has-feedback">
<label class="col-md-4 control-label">Berangkat</label>
<input type="text" class="form-control" name="berangkat" value="{{$konfirmasi->berangkat}}" readonly>
</div>
<div class="form-group has-feedback">
<label class="col-md-4 control-label">Kembali</label>
<input type="text" class="form-control" name="kembali" value="{{$konfirmasi->kembali}}" readonly>
</div>
<div class="form-group has-feedback">
<label class="col-md-4 control-label">Plat Bus</label>
<input type="text" class="form-control" name="plat_bus" value="{{$konfirmasi->plat_bus}}" readonly>
</div>
<td>Status : <span class="label label-info">{{$konfirmasi->status}}</span></td>
</form><br>
</div>
<!-- /.box-footer -->
</div>
<!-- /.box -->
</div>
<!-- /.col -->
</div>
</section>
<!-- /.content -->
</div>
</div>
</body>
@endif
\ No newline at end of file
......@@ -53,7 +53,7 @@
<td>{{$stat->berangkat}}</td>
<td><span class="label label-info">{{$stat->status}}</span></td>
<td colspan="1">
<a href="{{url('klien/history/detail',$stat->id)}}" class="btn btn-danger">Detail</a>
<a href="{{url('klien/history/detail2',$stat->id)}}" class="btn btn-danger">Detail</a>
</td>
</tr>
@endforeach
......
......@@ -38,7 +38,8 @@
<label>Pilih Kendaraan (Optional)</label>
<input type="text" value=" " class="form-control" name="plat_bus" required>
<span class="input-group-btn">
<a href="{{url('klien/pesan/pilih')}}" type="button" class="btn btn-info btn-flat">Pilih Bus</a>
<a href="{{url('klien/pesan/pilih')}}" type="button" onclick="return confirm('Pilih Bus??')"
class="btn btn-info btn-flat">Pilih Bus</a>
</span>
</div>
......
......@@ -63,6 +63,8 @@ Route::group(['prefix' => 'admin','middleware' => 'admin'], function() {
Route::get('/profil','AdminController@profil');
Route::get('/history','AdminController@history');
Route::get('/history/hapus/{id}','AdminController@hapus_history');
Route::get('/history/hapus2/{id}','AdminController@hapus_history2');
Route::get('/pemesanan','AdminController@pemesanan');
Route::get('/pemesanan/detail/{id}','AdminController@detailpemesanan');
Route::get('/pemesanan/tolak/{id}','AdminController@tolak');
......@@ -91,6 +93,8 @@ Route::group(['prefix' => 'k_supir','middleware' => 'k_supir'], function() {
Route::get('/supir','K_SupirController@supir');
Route::get('/supir/detail/{id}','K_SupirController@detailsupir');
Route::get('/supir/jadwal','K_SupirController@jadwal');
Route::get('/supir/update_jadwal','K_SupirController@update_jadwal');
Route::get('/supir/invoice-print','K_SupirController@invoice_print');
});
......@@ -112,6 +116,7 @@ Route::group(['prefix' => 'klien','middleware' => 'klien'], function() {
Route::get('/status/batal/{id}','KlienController@batal');
Route::post('/kirim_pembatalan','KlienController@kirim_pembatalan');
Route::get('/history/detail/{id}','KlienController@history_detail');
Route::get('/history/detail2/{id}','KlienController@history_detail2');
Route::get('/profil','KlienController@profil');
Route::get('/profil/ubah','KlienController@ubah_profil');
});
\ 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