Commit aee6bd97 by Rinto

we got new

parent 881e5b35
......@@ -311,7 +311,8 @@ class AdminController extends Controller
{
$riwayat = Konfirmasi::all();
$riwayat2 = Batal::all();
return view('adminlte::k_klien.history.index', compact('riwayat','riwayat2'));
$riwayat3 = Tolak::all();
return view('adminlte::k_klien.history.index', compact('riwayat','riwayat2','riwayat3'));
}
public function detailriwayat($id)
......@@ -324,4 +325,9 @@ class AdminController extends Controller
$riwayat2 = Batal::find($id);
return view('adminlte::k_klien.history.detail2', compact('riwayat2'));
}
public function detailriwayat3($id)
{
$riwayat3 = Tolak::find($id);
return view('adminlte::k_klien.history.detail3', compact('riwayat3'));
}
}
\ No newline at end of file
<?php
namespace App\Http\Controllers;
use App\Tolak;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\DB;
......@@ -40,6 +41,12 @@ class KlienController extends Controller
return view('adminlte::klien.pesan.index', compact('pemesanan'));
}
public function pesanform()
{
$pemesanan = Pemesanan::all();
return view('adminlte::klien.pesan.indexform', compact('pemesanan'));
}
public function status()
{
$status = Pemesanan::all();
......@@ -134,21 +141,28 @@ class KlienController extends Controller
$this->data['title'] = 'History Pemesanan';
$this->data['users'] = Users::find($id);
$this->data['riwayat'] = DB::table('batal')->where('name' , $name)->orderBy('id','desc')->paginate(10);
$this->data['riwayatpesan'] = DB::table('konfirmasi')->where('name' , $name)->orderBy('id','desc')->paginate(10);
$this->data['total'] = DB::table('konfirmasi')->where('name' , $name)->get();
$this->data['riwayatpesan2'] = DB::table('batal')->where('name' , $name)->orderBy('id','desc')->paginate(10);
$this->data['total'] = DB::table('batal')->where('name' , $name)->get();
$this->data['riwayat2'] = DB::table('konfirmasi')->where('name' , $name)->orderBy('id','desc')->paginate(10);
$this->data['riwayatpesan3'] = DB::table('tolak')->where('name' , $name)->orderBy('id','desc')->paginate(10);
$this->data['total'] = DB::table('konfirmasi')->where('name' , $name)->get();
return view('adminlte::klien.riwayat.index',$this->data);
}
public function riwayats($id)
public function riwayatpesan($id)
{
$riwayatpesan = Konfirmasi::find($id);
return view('adminlte::klien.riwayat.detail', compact('riwayatpesan'));
}
public function riwayatpesan2($id)
{
$riwayats = Konfirmasi::find($id);
return view('adminlte::klien.riwayat.detail', compact('riwayats'));
$riwayatpesan2 = Batal::find($id);
return view('adminlte::klien.riwayat.detail2', compact('riwayatpesan2'));
}
public function riwayats2($id)
public function riwayatpesan3($id)
{
$riwayats2 = Batal::find($id);
return view('adminlte::klien.riwayat.detail2', compact('riwayats2'));
$riwayatpesan3 = Tolak::find($id);
return view('adminlte::klien.riwayat.detail3', compact('riwayatpesan3'));
}
}
\ No newline at end of file
--
-- Database: `pa21617d4ti04`
--
-- --------------------------------------------------------
--
-- Struktur dari tabel `batal`
--
CREATE TABLE `batal` (
`id` int(100) NOT NULL,
`tujuan` varchar(100) NOT NULL,
`jumlah` varchar(100) NOT NULL,
`alasan` text NOT NULL,
`berangkat` date NOT NULL,
`kembali` date NOT NULL,
`name` varchar(100) NOT NULL,
`plat_bus` varchar(100) NOT NULL,
`status` varchar(100) NOT NULL,
`alasan_batal` text NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `batal`
--
INSERT INTO `batal` (`id`, `tujuan`, `jumlah`, `alasan`, `berangkat`, `kembali`, `name`, `plat_bus`, `status`, `alasan_batal`, `created_at`, `updated_at`) VALUES
(3, 'Sipiongot Anymore', '11', 'Touring Lagi', '2016-10-10', '2017-10-10', 'Anggiat Tambunan', 'BB 8387 CE', 'Dibatalkan', 'Just Try the Systems', '2017-05-24 07:00:04', '2017-05-24 07:00:04');
-- --------------------------------------------------------
--
-- Struktur dari tabel `bus`
--
CREATE TABLE `bus` (
`id` int(100) NOT NULL,
`nama_bus` varchar(100) NOT NULL,
`jenis_bus` varchar(100) NOT NULL,
`plat_bus` varchar(100) NOT NULL,
`deskripsi` text NOT NULL,
`gambar` varchar(1000) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `bus`
--
INSERT INTO `bus` (`id`, `nama_bus`, `jenis_bus`, `plat_bus`, `deskripsi`, `gambar`, `created_at`, `updated_at`) VALUES
(8, 'Optimus', 'Autobot', '123', 'Figting', 'avatar5.png', '2017-05-26 00:57:08', '2017-05-26 00:57:08'),
(9, 'Bumble Bee', 'Autobot', 'BB 8387 CE', 'Transformers', 'avatar.png', '2017-05-26 02:04:55', '2017-05-26 02:04:55'),
(10, 'Bumble Bee2', 'Autobots', '54321', 'Figting', 'avatar2.png', '2017-05-26 03:13:43', '2017-05-26 03:13:43');
-- --------------------------------------------------------
--
-- 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,
`sampai_pukul` time NOT NULL,
`pukul2` time NOT NULL,
`sampai_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`, `sampai_pukul`, `pukul2`, `sampai_pukul2`, `created_at`, `updated_at`) VALUES
(1, 'Senin', '', '', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '2017-05-08 13:59:32', '2017-05-08 13:59:32'),
(2, 'Selasa', '', '', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '2017-05-08 13:59:32', '2017-05-08 13:59:32'),
(3, 'Rabu', '', '', '00:00:00', '00:00:00', '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', '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', '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', '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', '00:00:00', '00:00:00', '2017-05-08 13:59:32', '2017-05-08 13:59:32');
-- --------------------------------------------------------
--
-- Struktur dari tabel `jam_kerja`
--
CREATE TABLE `jam_kerja` (
`id` int(100) NOT NULL,
`nama_supir` varchar(100) NOT NULL,
`plat_bus` varchar(100) NOT NULL,
`tujuan` varchar(100) NOT NULL,
`berangkat` date NOT NULL,
`kembali` date NOT NULL,
`speed` varchar(100) NOT NULL,
`biaya` varchar(100) NOT NULL,
`bukti` 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 `jam_kerja`
--
INSERT INTO `jam_kerja` (`id`, `nama_supir`, `plat_bus`, `tujuan`, `berangkat`, `kembali`, `speed`, `biaya`, `bukti`, `created_at`, `updated_at`) VALUES
(1, 'Supir', 'BB8387 CE', 'Medan', '2016-10-10', '2017-10-10', '85 KM/H', 'Tidak ada', '', '2017-05-26 00:02:49', '2017-05-26 00:02:49');
-- --------------------------------------------------------
--
-- Struktur dari tabel `konfirmasi`
--
CREATE TABLE `konfirmasi` (
`id` int(100) NOT NULL,
`tujuan` varchar(100) NOT NULL,
`jumlah` varchar(100) NOT NULL,
`alasan` text NOT NULL,
`berangkat` date NOT NULL,
`kembali` date NOT NULL,
`name` varchar(100) NOT NULL,
`status` varchar(100) NOT NULL,
`nama_supir` 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`, `name`, `status`, `nama_supir`, `plat_bus`, `created_at`, `updated_at`) VALUES
(34, 'Medan', '10', 'ON MIPA', '2016-10-10', '2017-10-10', 'Anggiat Tambunan', 'Disetujui', 'Supir', 'BB8387 CE', '2017-05-25 23:25:21', '2017-05-25 23:25:21'),
(35, 'Semarang', '10', 'Jalan-Jalan', '2016-10-10', '2017-10-10', 'Anggiat Tambunan', 'Disetujui', 'Supir', 'nothing', '2017-05-25 23:28:21', '2017-05-25 23:28:21');
-- --------------------------------------------------------
--
-- Struktur dari tabel `pemesanan`
--
CREATE TABLE `pemesanan` (
`id` int(100) NOT NULL,
`tujuan` varchar(1000) NOT NULL,
`jumlah` int(100) NOT NULL,
`alasan` text NOT NULL,
`berangkat` date NOT NULL,
`kembali` date NOT NULL,
`name` varchar(199) NOT NULL,
`plat_bus` varchar(100) NOT NULL,
`status` 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 `pemesanan`
--
INSERT INTO `pemesanan` (`id`, `tujuan`, `jumlah`, `alasan`, `berangkat`, `kembali`, `name`, `plat_bus`, `status`, `created_at`, `updated_at`) VALUES
(3, 'Sipiongot', 10, 'Touring', '2016-10-10', '2017-10-10', 'Anggiat Tambunan', 'BB 8387 CE', 'Diproses', '2017-05-24 05:55:37', '2017-05-24 06:55:26'),
(5, 'Jakarta', 1, 'Pesta', '2016-10-10', '2017-10-10', 'Anggiat Tambunan', 'nothing', 'request', '2017-05-24 07:29:07', '2017-05-24 07:29:07');
-- --------------------------------------------------------
--
-- Struktur dari tabel `supir`
--
CREATE TABLE `supir` (
`id` int(100) NOT NULL,
`nama_supir` varchar(100) NOT NULL,
`ttl` varchar(100) NOT NULL,
`alamat` varchar(100) NOT NULL,
`jk` varchar(100) NOT NULL,
`agama` varchar(100) NOT NULL,
`image` varchar(1000) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `supir`
--
INSERT INTO `supir` (`id`, `nama_supir`, `ttl`, `alamat`, `jk`, `agama`, `image`, `created_at`, `updated_at`) VALUES
(1234, 'Supir', 'Sitoluama / 09-11-1996', 'Sitoluama', 'Laki-Laki', 'k.Protestan', '4833b4853890507c81cf40376694690c.jpg', '2017-05-23 18:56:58', '2017-05-23 18:56:58'),
(12345, 'Supir 2', 'Sitoluama / 09-11-1996', 'Sitoluama', 'Laki-Laki', 'k.Protestan', 'Y4BjlvD4_42cdbe_c.jpg', '2017-05-23 21:47:25', '2017-05-23 21:47:25'),
(54321, 'Supir 3', 'Sitoluama / 09-11-1996', 'Sitoluama', 'Laki-Laki', 'k.Protestan', 'avatar5.png', '2017-05-26 03:14:41', '2017-05-26 03:14:41');
-- --------------------------------------------------------
--
-- Struktur dari tabel `users`
--
CREATE TABLE `users` (
`id` int(10) UNSIGNED NOT NULL,
`name` varchar(255) NOT NULL,
`email` varchar(255) NOT NULL,
`username` varchar(255) NOT NULL,
`password` varchar(255) NOT NULL,
`status` varchar(10) DEFAULT NULL,
`remember_token` varchar(100) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `users`
--
INSERT INTO `users` (`id`, `name`, `email`, `username`, `password`, `status`, `remember_token`, `created_at`, `updated_at`) VALUES
(2, 'Rinto Daud Tambunan', 'rinto119tambunan@gmail.com', 'Rinto', '$2y$10$MjxMbI/K.rXuMUS5Y8yNnOBD5GbmrgtZ.D4aPQr0FooJCDvj4HBe.', 'k_klien', '9aNCiNopeCDhemlHLKPRqWCvMWskuzy0k4KzlvFh4pcu8U2MkuEMEVkRqovv', '2017-05-17 21:33:45', '2017-05-26 05:40:14'),
(3, 'Anggiat Tambunan', 'anggiat@gmail.com', 'Anggiat', '$2y$10$5M2xdnQUMta4XxnY0KaxjeXE5vzeYf90EYJr5EyebMsN4ZiHPo5ua', 'klien', 'BDtxiwgSQ93RMvlcbL4SngGgDXOzd3XNXHKuOljnFStVUhpb0tGQyaDeYy21', '2017-05-17 23:32:35', '2017-05-26 05:45:59'),
(4, 'Ester Marbun', 'ester@gmail.com', 'Ester', '$2y$10$8aRKaguOSfRGf755p6VU9eAIdUB8jIELeGM0UvO787HNAOdObPv0y', 'k_supir', 't3WUxHrnux5Joz8uWrmALveOyhWA8dbsQRqATWsSVjT8UdUBsbhQVl56ctDg', '2017-05-17 23:35:54', '2017-05-26 05:55:17');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `batal`
--
ALTER TABLE `batal`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `bus`
--
ALTER TABLE `bus`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `jadwal`
--
ALTER TABLE `jadwal`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `jam_kerja`
--
ALTER TABLE `jam_kerja`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `konfirmasi`
--
ALTER TABLE `konfirmasi`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `pemesanan`
--
ALTER TABLE `pemesanan`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `supir`
--
ALTER TABLE `supir`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `batal`
--
ALTER TABLE `batal`
MODIFY `id` int(100) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `bus`
--
ALTER TABLE `bus`
MODIFY `id` int(100) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
--
-- AUTO_INCREMENT for table `jadwal`
--
ALTER TABLE `jadwal`
MODIFY `id` int(100) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
--
-- AUTO_INCREMENT for table `jam_kerja`
--
ALTER TABLE `jam_kerja`
MODIFY `id` int(100) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `konfirmasi`
--
ALTER TABLE `konfirmasi`
MODIFY `id` int(100) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=36;
--
-- AUTO_INCREMENT for table `pemesanan`
--
ALTER TABLE `pemesanan`
MODIFY `id` int(100) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
......@@ -71,7 +71,7 @@
<div class="form-group{{ $errors->has('image') ? ' has-error' : '' }}">
<label for="title" class="col-md-4 control-label">Gambar</label>
<div class="col-md-6">
<input type="file" id="exampleInputImage" class="form-control" name="gambar" value="{{ old('gambar') }}" >
<input type="file" id="exampleInputImage" name="gambar" value="{{ old('gambar') }}" >
@if ($errors->has('image'))
<span class="help-block">
<strong>{{ $errors->first('image') }}</strong>
......
@extends('adminlte::layouts.app')
@extends('adminlte::layouts.app')
@section('htmlheader_title')
@section('htmlheader_title')
Detail
@endsection
@endsection
@section('contentheader_title')
@section('contentheader_title')
<ol class="breadcrumb"><li><a href="/"><i class="fa fa-home"></i> Home</a></li>
<li class="active"><i class="fa fa-file-archive-o"></i> Riwayat</li>
<li class="active"><i class="fa fa-eye"></i> Detail Pesanan</li>
</ol><!-- breadcrumbs -->
@endsection
@endsection
@section('main-content')
@section('main-content')
<div class="container-fluid spark-screen">
<div class="container">
......@@ -36,14 +36,79 @@
<div class="box-footer">
<form class="form-horizontal" action="{{ url('') }}" method="POST">
{!! csrf_field() !!}
<div class="form-group{{ $errors->has('name') ? ' has-error' : '' }}">
<label for="title" class="col-md-4 control-label">Nama Pemesan</label>
<div class="form-group{{ $errors->has('tujuan') ? ' has-error' : '' }}">
<label for="title" class="col-md-5 control-label">Tujuan</label>
<div class="col-md-6">
<input type="text" class="form-control" name="tujuan" value="{{ $riwayat2->tujuan}}" readonly>
@if ($errors->has('tujuan'))
<span class="help-block">
<strong>{{ $errors->first('tujuan') }}</strong>
</span>
@endif
</div>
</div>
<div class="form-group{{ $errors->has('jumlah') ? ' has-error' : '' }}">
<label for="title" class="col-md-5 control-label">Jumlah Penumpang</label>
<div class="col-md-6">
<input type="text" class="form-control" name="tujuan" value="{{ $riwayat2->jumlah}}" readonly>
@if ($errors->has('tujuan'))
<span class="help-block">
<strong>{{ $errors->first('tujuan') }}</strong>
</span>
@endif
</div>
</div>
<div class="form-group{{ $errors->has('alasan') ? ' has-error' : '' }}">
<label for="title" class="col-md-5 control-label">Keperluan Pemesanan</label>
<div class="col-md-6">
<input type="text" class="form-control" name="alasan" value="{{ $riwayat2->alasan}}" readonly>
@if ($errors->has('alasan'))
<span class="help-block">
<strong>{{ $errors->first('alasan') }}</strong>
</span>
@endif
</div>
</div>
<div class="form-group{{ $errors->has('berangkat') ? ' has-error' : '' }}">
<label for="title" class="col-md-5 control-label">Tanggal Berangkat</label>
<div class="col-md-6">
<input type="text" class="form-control" name="berangkat" value="{{ $riwayat2->berangkat}}" readonly>
@if ($errors->has('berangkat'))
<span class="help-block">
<strong>{{ $errors->first('berangkat') }}</strong>
</span>
@endif
</div>
</div>
<div class="form-group{{ $errors->has('kembali') ? ' has-error' : '' }}">
<label for="title" class="col-md-5 control-label">Tanggal Kembali</label>
<div class="col-md-6">
<input type="text" class="form-control" name="kembali" value="{{ $riwayat2->kembali}}" readonly>
@if ($errors->has('kembali'))
<span class="help-block">
<strong>{{ $errors->first('kembali') }}</strong>
</span>
@endif
</div>
</div>
<div class="form-group{{ $errors->has('plat_bus') ? ' has-error' : '' }}">
<label for="title" class="col-md-5 control-label">Plat Kendaraan</label>
<div class="col-md-6">
<input type="text" class="form-control" name="plat_bus" value="{{ $riwayat2->plat_bus}}" readonly>
@if ($errors->has('plat_bus'))
<span class="help-block">
<strong>{{ $errors->first('plat_bus') }}</strong>
</span>
@endif
</div>
</div>
<div class="form-group{{ $errors->has('alasan_batal') ? ' has-error' : '' }}">
<label for="title" class="col-md-5 control-label">Alasan Pembatalan Klien</label>
<div class="col-md-6">
<input type="text" class="form-control" name="name" value="{{ $riwayat2->name}}" readonly>
@if ($errors->has('name'))
<textarea class="form-control" readonly>{{ $riwayat2->alasan_batal}}</textarea>
@if ($errors->has('alasan_batal'))
<span class="help-block">
<strong>{{ $errors->first('name') }}</strong>
<strong>{{ $errors->first('alasan_batal') }}</strong>
</span>
@endif
</div>
......@@ -57,4 +122,4 @@
</div>
</div>
@endsection
@endsection
@extends('adminlte::layouts.app')
@section('htmlheader_title')
Detail
@endsection
@section('contentheader_title')
<ol class="breadcrumb"><li><a href="/"><i class="fa fa-home"></i> Home</a></li>
<li class="active"><i class="fa fa-file-archive-o"></i> Riwayat</li>
<li class="active"><i class="fa fa-eye"></i> Detail Pesanan</li>
</ol><!-- breadcrumbs -->
@endsection
@section('main-content')
<div class="container-fluid spark-screen">
<div class="container">
<div class="col-md-8 col-md-offset-2">
<div class="panel-body">
<div class="col-md-9">
<div class="box box-widget">
<div class="box-header with-border">
<div class="user-block">
<span class="username">{{ $riwayat3->name}}</span>
</div>
<!-- /.user-block -->
</div>
<div class="login-box-body">
<div class="user-block">
<span class="username">{{ $riwayat3->status}} Oleh Koordinator Klien</span>
</div>
<!-- /.user-block -->
</div>
<!-- /.box-footer -->
<div class="box-footer">
<form class="form-horizontal" action="{{ url('') }}" method="POST">
{!! csrf_field() !!}
<div class="form-group{{ $errors->has('tujuan') ? ' has-error' : '' }}">
<label for="title" class="col-md-5 control-label">Tujuan</label>
<div class="col-md-6">
<input type="text" class="form-control" name="tujuan" value="{{ $riwayat3->tujuan}}" readonly>
@if ($errors->has('tujuan'))
<span class="help-block">
<strong>{{ $errors->first('tujuan') }}</strong>
</span>
@endif
</div>
</div>
<div class="form-group{{ $errors->has('jumlah') ? ' has-error' : '' }}">
<label for="title" class="col-md-5 control-label">Jumlah Penumpang</label>
<div class="col-md-6">
<input type="text" class="form-control" name="tujuan" value="{{ $riwayat3->jumlah}}" readonly>
@if ($errors->has('tujuan'))
<span class="help-block">
<strong>{{ $errors->first('tujuan') }}</strong>
</span>
@endif
</div>
</div>
<div class="form-group{{ $errors->has('alasan') ? ' has-error' : '' }}">
<label for="title" class="col-md-5 control-label">Keperluan Pemesanan</label>
<div class="col-md-6">
<input type="text" class="form-control" name="alasan" value="{{ $riwayat3->alasan}}" readonly>
@if ($errors->has('alasan'))
<span class="help-block">
<strong>{{ $errors->first('alasan') }}</strong>
</span>
@endif
</div>
</div>
<div class="form-group{{ $errors->has('berangkat') ? ' has-error' : '' }}">
<label for="title" class="col-md-5 control-label">Tanggal Berangkat</label>
<div class="col-md-6">
<input type="text" class="form-control" name="berangkat" value="{{ $riwayat3->berangkat}}" readonly>
@if ($errors->has('berangkat'))
<span class="help-block">
<strong>{{ $errors->first('berangkat') }}</strong>
</span>
@endif
</div>
</div>
<div class="form-group{{ $errors->has('kembali') ? ' has-error' : '' }}">
<label for="title" class="col-md-5 control-label">Tanggal Kembali</label>
<div class="col-md-6">
<input type="text" class="form-control" name="kembali" value="{{ $riwayat3->kembali}}" readonly>
@if ($errors->has('kembali'))
<span class="help-block">
<strong>{{ $errors->first('kembali') }}</strong>
</span>
@endif
</div>
</div>
<div class="form-group{{ $errors->has('plat_bus') ? ' has-error' : '' }}">
<label for="title" class="col-md-5 control-label">Plat Kendaraan</label>
<div class="col-md-6">
<input type="text" class="form-control" name="plat_bus" value="{{ $riwayat3->plat_bus}}" readonly>
@if ($errors->has('plat_bus'))
<span class="help-block">
<strong>{{ $errors->first('plat_bus') }}</strong>
</span>
@endif
</div>
</div>
<div class="form-group{{ $errors->has('alasan_tolak') ? ' has-error' : '' }}">
<label for="title" class="col-md-5 control-label">Alasan Penolakan</label>
<div class="col-md-6">
<textarea class="form-control" readonly>{{ $riwayat3->alasan_tolak}}</textarea>
@if ($errors->has('alasan_tolak'))
<span class="help-block">
<strong>{{ $errors->first('alasan_tolak') }}</strong>
</span>
@endif
</div>
</div>
<div class="form-group{{ $errors->has('saran') ? ' has-error' : '' }}">
<label for="title" class="col-md-5 control-label">Saran yang Diberi</label>
<div class="col-md-6">
<textarea class="form-control" readonly>{{ $riwayat3->saran}}</textarea>
@if ($errors->has('saran'))
<span class="help-block">
<strong>{{ $errors->first('saran') }}</strong>
</span>
@endif
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
@endsection
......@@ -49,6 +49,18 @@
</tr>
</form>
@endforeach
@foreach($riwayat3 as $riwaya3)
<tr>
<td>{{$riwaya3->name}}</td>
<td>{{$riwaya3->tujuan}}</td>
<td>{{$riwaya3->alasan}}</td>
<td>{{$riwaya3->status}}</td>
<td colspan="2">
<a href="{{url('/history/details3',$riwaya3->id)}}" class="btn btn-info"><i class="fa fa-eye"></i>Detail</a>
</td>
</tr>
</form>
@endforeach
</tbody>
</table>
</div>
......
......@@ -35,14 +35,8 @@
<form class="form-horizontal" action="{{ url('update', $pemesanan->id) }}" method="POST">
{!! csrf_field() !!}
<div class="form-group{{ $errors->has('name') ? ' has-error' : '' }}">
<label for="title" class="col-md-5 control-label">Nama Pemesan</label>
<div class="col-md-6">
<input type="text" class="form-control" name="name" value="{{ $pemesanan->name}}" readonly>
@if ($errors->has('name'))
<span class="help-block">
<strong>{{ $errors->first('name') }}</strong>
</span>
@endif
<input type="hidden" class="form-control" name="name" value="{{ $pemesanan->name}}" readonly>
</div>
</div>
<div class="form-group{{ $errors->has('tujuan') ? ' has-error' : '' }}">
......@@ -126,10 +120,22 @@
<div class="form-group">
<div class="col-md-6 col-md-offset-4">
@if($pemesanan->status == 'request')
<button type="submit" class="btn btn-primary">
Konfirmasi
</button>
<a href="{{url('k_klien/pemesanan/tolakpesanan',$pemesanan->id)}}" class="btn btn-danger"><i class="fa fa-close"></i> Tolak</a>
@elseif($pemesanan->status == 'Diproses')
<div class="direct-chat-msg right">
<img class="direct-chat-img" src="{{ asset('image/'.$user->image) }}" alt="message user image">
<div class="direct-chat-text">
Menunggu Konfirmasi Koordinator Supir
</div>
</div>
@endif
@if($pemesanan->status == 'request')
<a href="{{url('k_klien/pemesanan/tolakpesanan',$pemesanan->id)}}" class="btn btn-danger">
<i class="fa fa-close"></i> Tolak</a>
@endif
</div>
</div>
</form>
......
......@@ -113,7 +113,7 @@
<div class="form-group{{ $errors->has('status') ? ' has-error' : '' }}">
<div class="col-md-6">
<input type="hidden" class="form-control" name="status" value="Dibatalkan">
<input type="hidden" class="form-control" name="status" value="Ditolak">
@if ($errors->has('status'))
<span class="help-block">
<strong>{{ $errors->first('status') }}</strong>
......@@ -121,13 +121,13 @@
@endif
</div>
</div>
<div class="form-group{{ $errors->has('alasan_batal') ? ' has-error' : '' }}">
<div class="form-group{{ $errors->has('alasan_tolak') ? ' has-error' : '' }}">
<label for="title" class="col-md-4 control-label">Alasan Penolakan</label>
<div class="col-md-6">
<textarea class="form-control" name="alasan_batal" value="{{ $pemesanan->alasan_batal}}" required></textarea>
@if ($errors->has('alasan_batal'))
<textarea class="form-control" name="alasan_tolak" value="{{ $pemesanan->alasan_tolak}}" required></textarea>
@if ($errors->has('alasan_tolak'))
<span class="help-block">
<strong>{{ $errors->first('alasan_batal') }}</strong>
<strong>{{ $errors->first('alasan_tolak') }}</strong>
</span>
@endif
</div>
......
......@@ -104,8 +104,10 @@
</div>
<div class="form-group has-feedback">
<label class="col-md-6 control-label">Gambar</label>
<input class="form-control" name="image" value="{{ old('image') }}" type="file">
<label class="col-md-4 control-label">Gambar</label>
<div class="col-md-6">
<input name="image" value="{{ old('image') }}" type="file">
</div>
</div>
<div class="form-group">
......
......@@ -6,7 +6,7 @@
@section('contentheader_title')
<ol class="breadcrumb"><li><a href="/"><i class="fa fa-home"></i> Home</a></li>
<li class="active"><i class="fa fa-bus"></i> Batalkan Pemesanan</li>
<li class="active"><i class="fa fa-eye-slash"></i> Batalkan Pemesanan</li>
</ol><!-- breadcrumbs -->
@endsection
......
......@@ -67,6 +67,9 @@
<label class="col-md-4 control-label">Deskripsi</label>
<textarea class="form-control" placeholder="Berikan deskripsi disini" rows="3" name="deskripsi" readonly="">{{ $bus->deskripsi}}</textarea>
</div>
<td colspan="2">
<a href="{{url('klien/pesan/pakaibus',$bus->id)}}" class="btn btn-info">Gunakan Kendaraan</a>
</td>
</form><br>
</div>
<!-- /.box-footer -->
......
......@@ -41,6 +41,7 @@
<td>{{$bu->id}}</td>
<td colspan="2">
<a href="{{url('/bus/detail',$bu->id)}}" class="btn btn-info"><i class="fa fa-eye"></i> Detail</a>
<a href="{{url('klien/pesan/pakaibus',$bu->id)}}" class="btn btn-info"><i class="fa fa-key"></i> Gunakan</a>
</td>
</tr>
</form>
......
......@@ -11,24 +11,6 @@
@section('main-content')
<div class="container-fluid spark-screen">
<div class="col-md-4">
<div class="box box-solid">
<div class="box-header">
<h3 class="box-title text-blue">Sparkline line</h3>
<div class="box-tools pull-right">
<button type="button" class="btn btn-default btn-sm"><i class="fa fa-refresh"></i></button>
</div>
</div>
<!-- /.box-header -->
<div class="box-body text-center">
<div class="sparkline" data-type="line" data-spot-radius="3" data-highlight-spot-color="#f39c12" data-highlight-line-color="#222" data-min-spot-color="#f56954" data-max-spot-color="#00a65a" data-spot-color="#39CCCC" data-offset="90" data-width="100%" data-height="100px" data-line-width="2" data-line-color="#39CCCC" data-fill-color="rgba(57, 204, 204, 0.08)"><canvas style="display: inline-block; width: 323px; height: 100px; vertical-align: top;" width="323" height="100"></canvas></div>
</div>
<!-- /.box-body -->
</div>
<!-- /.box -->
</div>
<div class="col-md-4"></div>
</div>
@endsection
......@@ -6,7 +6,7 @@
@section('contentheader_title')
<ol class="breadcrumb"><li><a href="/"><i class="fa fa-home"></i> Home</a></li>
<li class="active"><i class="fa fa-bus"></i> Pemesanan</li>
<li class="active"><i class="fa fa-send"></i> Pemesanan</li>
</ol><!-- breadcrumbs -->
@endsection
......@@ -34,132 +34,22 @@
</div>
@endif
<div class="col-md-8 col-md-offset-2">
<div class="col-md-6 col-md-offset-3">
<div class="panel-body">
<form class="form-horizontal" action="{{ url('pemesanan') }}" method="POST">
{!! csrf_field() !!}
<div class="form-group{{ $errors->has('name') ? ' has-error' : '' }}">
<label for="title" class="col-md-4 control-label">Nama Pemesan</label>
<div class="col-md-6">
<input type="text" class="form-control" name="name" value="{{ Auth::user()->name }}" readonly>
@if ($errors->has('name'))
<span class="help-block">
<strong>{{ $errors->first('name') }}</strong>
</span>
@endif
</div>
<div class="box box-danger">
<div class="box-header with-border">
<h3 class="box-title">Pilih Bus ??</h3>
</div>
<div class="form-group">
<label for="title" class="col-md-4 control-label">Pilih Kendaraan (Optional)</label>
<div class="col-md-6">
<input type="text" value="nothing" class="form-control" name="plat_bus" readonly>
<span class="col-md-4">
<div class="box-body">
<img class="img-responsive pad" src="/PA21617D4TI04/public/image/perkasa.jpg" alt="Photo">
<p>Pilih bus yang akan di gunakan (Optional)</p>
<a href="{{url('klien/pesan/pilih')}}" type="button" onclick="return confirm('Pilih Bus??')"
class="btn btn-info btn-flat">Pilih Bus</a>
</span>
</div>
</div>
<div class="form-group{{ $errors->has('tujuan') ? ' has-error' : '' }}">
<label for="title" class="col-md-4 control-label">Tempat Tujuan</label>
<div class="col-md-6">
<input type="text" class="form-control" name="tujuan" value="{{ old('tujuan') }}" >
@if ($errors->has('tujuan'))
<span class="help-block">
<strong>{{ $errors->first('tujuan') }}</strong>
</span>
@endif
</div>
</div>
<div class="form-group{{ $errors->has('jumlah') ? ' has-error' : '' }}">
<label for="title" class="col-md-4 control-label">Jumlah</label>
<div class="col-md-6">
<input type="integer" class="form-control" name="jumlah" value="{{ old('jumlah') }}" >
@if ($errors->has('jumlah'))
<span class="help-block">
<strong>{{ $errors->first('jumlah') }}</strong>
</span>
@endif
</div>
</div>
<div class="form-group{{ $errors->has('alasan') ? ' has-error' : '' }}">
<label for="title" class="col-md-4 control-label">Keperluan Pemesanan</label>
<div class="col-md-6">
<textarea type="text" class="form-control" name="alasan" value="{{ old('alasan') }}" ></textarea>
@if ($errors->has('alasan'))
<span class="help-block">
<strong>{{ $errors->first('alasan') }}</strong>
</span>
@endif
</div>
</div>
<div class="form-group{{ $errors->has('berangkat') ? ' has-error' : '' }}">
<label for="title" class="col-md-4 control-label">Berangkat </label>
<div class="col-md-6">
<div class="input-group date">
<div class="input-group-addon">
<i class="fa fa-calendar"></i>
<a href="{{url('klien/pesan/pesanform')}}" type="button" class="btn btn-warning btn-flat">Lewati</a>
</div>
<input class="form-control pull-right" name="berangkat" id="datepicker" type="text">
</div>
<!-- /.input group -->
@if ($errors->has('berangkat'))
<span class="help-block">
<strong>{{ $errors->first('berangkat') }}</strong>
</span>
@endif
</div>
</div>
<div class="form-group{{ $errors->has('kembali') ? ' has-error' : '' }}">
<label for="title" class="col-md-4 control-label">Kembali </label>
<div class="col-md-6">
<div class="input-group date">
<div class="input-group-addon">
<i class="fa fa-calendar"></i>
</div>
<input class="form-control pull-right" name="kembali" id="datepicker" type="text">
</div>
<!-- /.input group -->
@if ($errors->has('kembali'))
<span class="help-block">
<strong>{{ $errors->first('kembali') }}</strong>
</span>
@endif
</div>
</div>
<div class="form-group{{ $errors->has('status') ? ' has-error' : '' }}">
<div class="col-md-6">
<input type="hidden" class="form-control" name="status" value="request" >
@if ($errors->has('status'))
<span class="help-block">
<strong>{{ $errors->first('status') }}</strong>
</span>
@endif
</div>
</div>
<div class="form-group">
<div class="col-md-6 col-md-offset-4">
<input type="hidden" name="_token" value="{{ csrf_token() }}">
<button type="submit" class="btn btn-primary">
Pesan
</button>
</div>
</div>
</form>
</div>
</div>
</div>
......
@extends('adminlte::layouts.app')
@section('htmlheader_title')
Pesan
@endsection
@section('contentheader_title')
<ol class="breadcrumb"><li><a href="/"><i class="fa fa-home"></i> Home</a></li>
<li class="active"><i class="fa fa-send"></i> Pemesanan</li>
</ol><!-- breadcrumbs -->
@endsection
@section('main-content')
<div class="container-fluid spark-screen">
<script type="text/javascript">
$(document).ready(function () {
$(".datepicker").datepicker({
autoclose: true,
format: 'yyyy-mm-dd',
language: 'id'
});
});
</script>
<div class="box box-default">
@if(session()->has('message'))
<div class="alert alert-info">
{{session()->get('message')}}
</div>
@endif
@if(!empty($success))
<div class="alert alert-success">
{{$success}}
</div>
@endif
<div class="col-md-8 col-md-offset-2">
<div class="panel-body">
<form class="form-horizontal" action="{{ url('pemesanan') }}" method="POST">
{!! csrf_field() !!}
<div class="form-group{{ $errors->has('name') ? ' has-error' : '' }}">
<label for="title" class="col-md-4 control-label">Nama Pemesan</label>
<div class="col-md-6">
<input type="text" class="form-control" name="name" value="{{ Auth::user()->name }}" readonly>
@if ($errors->has('name'))
<span class="help-block">
<strong>{{ $errors->first('name') }}</strong>
</span>
@endif
</div>
</div>
<div class="form-group">
<div class="col-md-6">
<input type="hidden" value="nothing" class="form-control" name="plat_bus" readonly>
</div>
</div>
<div class="form-group{{ $errors->has('tujuan') ? ' has-error' : '' }}">
<label for="title" class="col-md-4 control-label">Tempat Tujuan</label>
<div class="col-md-6">
<input type="text" class="form-control" name="tujuan" value="{{ old('tujuan') }}" >
@if ($errors->has('tujuan'))
<span class="help-block">
<strong>{{ $errors->first('tujuan') }}</strong>
</span>
@endif
</div>
</div>
<div class="form-group{{ $errors->has('jumlah') ? ' has-error' : '' }}">
<label for="title" class="col-md-4 control-label">Jumlah</label>
<div class="col-md-6">
<input type="integer" class="form-control" name="jumlah" value="{{ old('jumlah') }}" >
@if ($errors->has('jumlah'))
<span class="help-block">
<strong>{{ $errors->first('jumlah') }}</strong>
</span>
@endif
</div>
</div>
<div class="form-group{{ $errors->has('alasan') ? ' has-error' : '' }}">
<label for="title" class="col-md-4 control-label">Keperluan Pemesanan</label>
<div class="col-md-6">
<textarea type="text" class="form-control" name="alasan" value="{{ old('alasan') }}" ></textarea>
@if ($errors->has('alasan'))
<span class="help-block">
<strong>{{ $errors->first('alasan') }}</strong>
</span>
@endif
</div>
</div>
<div class="form-group{{ $errors->has('berangkat') ? ' has-error' : '' }}">
<label for="title" class="col-md-4 control-label">Berangkat </label>
<div class="col-md-6">
<div class="input-group date">
<div class="input-group-addon">
<i class="fa fa-calendar"></i>
</div>
<input class="form-control pull-right" name="berangkat" id="datepicker" type="text">
</div>
<!-- /.input group -->
@if ($errors->has('berangkat'))
<span class="help-block">
<strong>{{ $errors->first('berangkat') }}</strong>
</span>
@endif
</div>
</div>
<div class="form-group{{ $errors->has('kembali') ? ' has-error' : '' }}">
<label for="title" class="col-md-4 control-label">Kembali </label>
<div class="col-md-6">
<div class="input-group date">
<div class="input-group-addon">
<i class="fa fa-calendar"></i>
</div>
<input class="form-control pull-right" name="kembali" id="datepicker" type="text">
</div>
<!-- /.input group -->
@if ($errors->has('kembali'))
<span class="help-block">
<strong>{{ $errors->first('kembali') }}</strong>
</span>
@endif
</div>
</div>
<div class="form-group{{ $errors->has('status') ? ' has-error' : '' }}">
<div class="col-md-6">
<input type="hidden" class="form-control" name="status" value="request" >
@if ($errors->has('status'))
<span class="help-block">
<strong>{{ $errors->first('status') }}</strong>
</span>
@endif
</div>
</div>
<div class="form-group">
<div class="col-md-6 col-md-offset-4">
<input type="hidden" name="_token" value="{{ csrf_token() }}">
<button type="submit" class="btn btn-primary">
Pesan
</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
@endsection
......@@ -6,7 +6,7 @@
@section('contentheader_title')
<ol class="breadcrumb"><li><a href="/"><i class="fa fa-home"></i> Home</a></li>
<li class="active"><i class="fa fa-bus"></i> Pemesanan</li>
<li class="active"><i class="fa fa-send"></i> Pemesanan</li>
</ol><!-- breadcrumbs -->
@endsection
......@@ -42,12 +42,12 @@
</div>
<div class="form-group">
<label for="title" class="col-md-4 control-label">Pilih Kendaraan (Optional)</label>
<label for="title" class="col-md-4 control-label">Plat Kendaraan</label>
<div class="col-md-6">
<input type="text" value="{{$bus->plat_bus}}" class="form-control" name="plat_bus" readonly>
<span class="col-md-4">
<a href="{{url('klien/pesan/pilih')}}" type="button" onclick="return confirm('Pilih Bus??')"
class="btn btn-info btn-flat">Pilih Bus</a>
<span class="input-group-btn">
<a href="{{url('klien/pesan/pilih')}}" class="btn btn-success btn-flat" onclick="return confirm('Ganti Kendaraan??')"
class="btn btn-info btn-flat">Ganti Kendaraan</a>
</span>
</div>
</div>
......
......@@ -6,7 +6,7 @@
@section('contentheader_title')
<ol class="breadcrumb"><li><a href="/"><i class="fa fa-home"></i> Home</a></li>
<li class="active"><i class="fa fa-bus"></i>Pilih Bus</li>
<li class="active"><i class="fa fa-search-plus"></i> Pilih Bus</li>
</ol><!-- breadcrumbs -->
@endsection
......
......@@ -6,7 +6,7 @@
@section('contentheader_title')
<ol class="breadcrumb"><li><a href="/"><i class="fa fa-home"></i> Home</a></li>
<li class="active"><i class="fa fa-bus"></i> Status Pemesanan</li>
<li class="active"><i class="fa fa-upload"></i> Status Pemesanan</li>
</ol><!-- breadcrumbs -->
@endsection
......
......@@ -6,8 +6,8 @@
@section('contentheader_title')
<ol class="breadcrumb"><li><a href="/"><i class="fa fa-home"></i> Home</a></li>
<li class="active"><i class="fa fa-bus"></i> Kendaraan</li>
<li class="active"><i class="fa fa-bus"></i> Detail Kendaraan</li>
<li class="active"><i class="fa fa-upload"></i> Status</li>
<li class="active"><i class="fa fa-eye"></i> Detail Pesanan</li>
</ol><!-- breadcrumbs -->
@endsection
......@@ -24,7 +24,7 @@
<div class="form-group{{ $errors->has('name') ? ' has-error' : '' }}">
<label for="title" class="col-md-4 control-label">Nama Pemesan</label>
<div class="col-md-6">
<input type="text" class="form-control" name="nama_bus" value="{{ $status->name}}" readonly>
<input type="text" class="form-control" name="name" value="{{ $status->name}}" readonly>
@if ($errors->has('name'))
<span class="help-block">
<strong>{{ $errors->first('name') }}</strong>
......@@ -120,9 +120,22 @@
</div>
<div class="form-group">
@if("$status->status" == "request")
<div class="col-md-6 col-md-offset-4">
<a href="{{url('/batalkan',$status->id)}}" class="btn btn-danger">Batalkan</a>
</div>
@else
<div class="direct-chat-msg right">
<div class="col-md-5">
<img class="direct-chat-img" src="{{ asset('image/'.$user->image) }}" alt="message user image">
<div class="col-md-18">
<div class="direct-chat-text">
Menunggu Konfirmasi Koordinator Supir
</div>
</div>
</div>
</div>
@endif
</div>
</form>
</div>
......
......@@ -6,8 +6,8 @@
@section('contentheader_title')
<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</li>
<li class="active"><i class="fa fa-bus"></i> Detail Pesanan</li>
<li class="active"><i class="fa fa-file-archive-o"></i> Riwayat</li>
<li class="active"><i class="fa fa-eye"></i> Detail Pesanan</li>
</ol><!-- breadcrumbs -->
@endsection
......@@ -18,16 +18,86 @@
<div class="col-md-8 col-md-offset-2">
<div class="panel-body">
<div class="col-md-9">
<div class="box box-widget">
<div class="box-header with-border">
<div class="user-block">
<span class="username">{{ $riwayatpesan->name}}</span>
</div>
<!-- /.user-block -->
</div>
<div class="login-box-body">
<div class="user-block">
<span class="username">{{ $riwayatpesan->status}}</span>
</div>
<!-- /.user-block -->
</div>
<!-- /.box-footer -->
<div class="box-footer">
<form class="form-horizontal" action="{{ url('') }}" method="POST">
{!! csrf_field() !!}
<div class="form-group{{ $errors->has('name') ? ' has-error' : '' }}">
<label for="title" class="col-md-4 control-label">Nama Pemesan</label>
<div class="form-group{{ $errors->has('tujuan') ? ' has-error' : '' }}">
<label for="title" class="col-md-5 control-label">Tujuan</label>
<div class="col-md-6">
<input type="text" class="form-control" name="tujuan" value="{{ $riwayatpesan->tujuan}}" readonly>
@if ($errors->has('tujuan'))
<span class="help-block">
<strong>{{ $errors->first('tujuan') }}</strong>
</span>
@endif
</div>
</div>
<div class="form-group{{ $errors->has('jumlah') ? ' has-error' : '' }}">
<label for="title" class="col-md-5 control-label">Jumlah Penumpang</label>
<div class="col-md-6">
<input type="text" class="form-control" name="tujuan" value="{{ $riwayatpesan->tujuan}}" readonly>
@if ($errors->has('tujuan'))
<span class="help-block">
<strong>{{ $errors->first('tujuan') }}</strong>
</span>
@endif
</div>
</div>
<div class="form-group{{ $errors->has('alasan') ? ' has-error' : '' }}">
<label for="title" class="col-md-5 control-label">Keperluan Pemesanan</label>
<div class="col-md-6">
<input type="text" class="form-control" name="alasan" value="{{ $riwayatpesan->alasan}}" readonly>
@if ($errors->has('alasan'))
<span class="help-block">
<strong>{{ $errors->first('alasan') }}</strong>
</span>
@endif
</div>
</div>
<div class="form-group{{ $errors->has('berangkat') ? ' has-error' : '' }}">
<label for="title" class="col-md-5 control-label">Tanggal Berangkat</label>
<div class="col-md-6">
<input type="text" class="form-control" name="berangkat" value="{{ $riwayatpesan->berangkat}}" readonly>
@if ($errors->has('berangkat'))
<span class="help-block">
<strong>{{ $errors->first('berangkat') }}</strong>
</span>
@endif
</div>
</div>
<div class="form-group{{ $errors->has('kembali') ? ' has-error' : '' }}">
<label for="title" class="col-md-5 control-label">Tanggal Kembali</label>
<div class="col-md-6">
<input type="text" class="form-control" name="name" value="{{ $riwayats->name}}" readonly>
@if ($errors->has('name'))
<input type="text" class="form-control" name="kembali" value="{{ $riwayatpesan->kembali}}" readonly>
@if ($errors->has('kembali'))
<span class="help-block">
<strong>{{ $errors->first('name') }}</strong>
<strong>{{ $errors->first('kembali') }}</strong>
</span>
@endif
</div>
</div>
<div class="form-group{{ $errors->has('plat_bus') ? ' has-error' : '' }}">
<label for="title" class="col-md-5 control-label">Plat Kendaraan</label>
<div class="col-md-6">
<input type="text" class="form-control" name="plat_bus" value="{{ $riwayatpesan->plat_bus}}" readonly>
@if ($errors->has('plat_bus'))
<span class="help-block">
<strong>{{ $errors->first('plat_bus') }}</strong>
</span>
@endif
</div>
......@@ -35,6 +105,9 @@
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
......
......@@ -6,8 +6,8 @@
@section('contentheader_title')
<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</li>
<li class="active"><i class="fa fa-bus"></i> Detail Pesanan</li>
<li class="active"><i class="fa fa-file-archive-o"></i> Riwayat</li>
<li class="active"><i class="fa fa-eye"></i> Detail Pesanan</li>
</ol><!-- breadcrumbs -->
@endsection
......@@ -18,16 +18,97 @@
<div class="col-md-8 col-md-offset-2">
<div class="panel-body">
<div class="col-md-9">
<div class="box box-widget">
<div class="box-header with-border">
<div class="user-block">
<span class="username">{{ $riwayatpesan2->name}}</span>
</div>
<!-- /.user-block -->
</div>
<div class="login-box-body">
<div class="user-block">
<span class="username">{{ $riwayatpesan2->status}}</span>
</div>
<!-- /.user-block -->
</div>
<!-- /.box-footer -->
<div class="box-footer">
<form class="form-horizontal" action="{{ url('') }}" method="POST">
{!! csrf_field() !!}
<div class="form-group{{ $errors->has('name') ? ' has-error' : '' }}">
<label for="title" class="col-md-4 control-label">Nama Pemesan</label>
<div class="form-group{{ $errors->has('tujuan') ? ' has-error' : '' }}">
<label for="title" class="col-md-5 control-label">Tujuan</label>
<div class="col-md-6">
<input type="text" class="form-control" name="tujuan" value="{{ $riwayatpesan2->tujuan}}" readonly>
@if ($errors->has('tujuan'))
<span class="help-block">
<strong>{{ $errors->first('tujuan') }}</strong>
</span>
@endif
</div>
</div>
<div class="form-group{{ $errors->has('jumlah') ? ' has-error' : '' }}">
<label for="title" class="col-md-5 control-label">Jumlah Penumpang</label>
<div class="col-md-6">
<input type="text" class="form-control" name="tujuan" value="{{ $riwayatpesan2->jumlah}}" readonly>
@if ($errors->has('tujuan'))
<span class="help-block">
<strong>{{ $errors->first('tujuan') }}</strong>
</span>
@endif
</div>
</div>
<div class="form-group{{ $errors->has('alasan') ? ' has-error' : '' }}">
<label for="title" class="col-md-5 control-label">Keperluan Pemesanan</label>
<div class="col-md-6">
<input type="text" class="form-control" name="alasan" value="{{ $riwayatpesan2->alasan}}" readonly>
@if ($errors->has('alasan'))
<span class="help-block">
<strong>{{ $errors->first('alasan') }}</strong>
</span>
@endif
</div>
</div>
<div class="form-group{{ $errors->has('berangkat') ? ' has-error' : '' }}">
<label for="title" class="col-md-5 control-label">Tanggal Berangkat</label>
<div class="col-md-6">
<input type="text" class="form-control" name="berangkat" value="{{ $riwayatpesan2->berangkat}}" readonly>
@if ($errors->has('berangkat'))
<span class="help-block">
<strong>{{ $errors->first('berangkat') }}</strong>
</span>
@endif
</div>
</div>
<div class="form-group{{ $errors->has('kembali') ? ' has-error' : '' }}">
<label for="title" class="col-md-5 control-label">Tanggal Kembali</label>
<div class="col-md-6">
<input type="text" class="form-control" name="kembali" value="{{ $riwayatpesan2->kembali}}" readonly>
@if ($errors->has('kembali'))
<span class="help-block">
<strong>{{ $errors->first('kembali') }}</strong>
</span>
@endif
</div>
</div>
<div class="form-group{{ $errors->has('plat_bus') ? ' has-error' : '' }}">
<label for="title" class="col-md-5 control-label">Plat Kendaraan</label>
<div class="col-md-6">
<input type="text" class="form-control" name="name" value="{{ $riwayat2->name}}" readonly>
@if ($errors->has('name'))
<input type="text" class="form-control" name="plat_bus" value="{{ $riwayatpesan2->plat_bus}}" readonly>
@if ($errors->has('plat_bus'))
<span class="help-block">
<strong>{{ $errors->first('name') }}</strong>
<strong>{{ $errors->first('plat_bus') }}</strong>
</span>
@endif
</div>
</div>
<div class="form-group{{ $errors->has('alasan_batal') ? ' has-error' : '' }}">
<label for="title" class="col-md-5 control-label">Alasan Pembatalan</label>
<div class="col-md-6">
<textarea class="form-control" readonly>{{ $riwayatpesan2->alasan_batal}}</textarea>
@if ($errors->has('alasan_batal'))
<span class="help-block">
<strong>{{ $errors->first('alasan_batal') }}</strong>
</span>
@endif
</div>
......@@ -35,6 +116,9 @@
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
......
@extends('adminlte::layouts.app')
@section('htmlheader_title')
Detail
@endsection
@section('contentheader_title')
<ol class="breadcrumb"><li><a href="/"><i class="fa fa-home"></i> Home</a></li>
<li class="active"><i class="fa fa-file-archive-o"></i> Riwayat</li>
<li class="active"><i class="fa fa-eye"></i> Detail Pesanan</li>
</ol><!-- breadcrumbs -->
@endsection
@section('main-content')
<div class="container-fluid spark-screen">
<div class="container">
<div class="col-md-8 col-md-offset-2">
<div class="panel-body">
<div class="col-md-9">
<div class="box box-widget">
<div class="box-header with-border">
<div class="user-block">
<span class="username">{{ $riwayatpesan3->name}}</span>
</div>
<!-- /.user-block -->
</div>
<div class="login-box-body">
<div class="user-block">
<span class="username">{{ $riwayatpesan3->status}}</span>
</div>
<!-- /.user-block -->
</div>
<!-- /.box-footer -->
<div class="box-footer">
<form class="form-horizontal" action="{{ url('') }}" method="POST">
{!! csrf_field() !!}
<div class="form-group{{ $errors->has('tujuan') ? ' has-error' : '' }}">
<label for="title" class="col-md-5 control-label">Tujuan</label>
<div class="col-md-6">
<input type="text" class="form-control" name="tujuan" value="{{ $riwayatpesan3->tujuan}}" readonly>
@if ($errors->has('tujuan'))
<span class="help-block">
<strong>{{ $errors->first('tujuan') }}</strong>
</span>
@endif
</div>
</div>
<div class="form-group{{ $errors->has('jumlah') ? ' has-error' : '' }}">
<label for="title" class="col-md-5 control-label">Jumlah Penumpang</label>
<div class="col-md-6">
<input type="text" class="form-control" name="tujuan" value="{{ $riwayatpesan3->jumlah}}" readonly>
@if ($errors->has('tujuan'))
<span class="help-block">
<strong>{{ $errors->first('tujuan') }}</strong>
</span>
@endif
</div>
</div>
<div class="form-group{{ $errors->has('alasan') ? ' has-error' : '' }}">
<label for="title" class="col-md-5 control-label">Keperluan Pemesanan</label>
<div class="col-md-6">
<input type="text" class="form-control" name="alasan" value="{{ $riwayatpesan3->alasan}}" readonly>
@if ($errors->has('alasan'))
<span class="help-block">
<strong>{{ $errors->first('alasan') }}</strong>
</span>
@endif
</div>
</div>
<div class="form-group{{ $errors->has('berangkat') ? ' has-error' : '' }}">
<label for="title" class="col-md-5 control-label">Tanggal Berangkat</label>
<div class="col-md-6">
<input type="text" class="form-control" name="berangkat" value="{{ $riwayatpesan3->berangkat}}" readonly>
@if ($errors->has('berangkat'))
<span class="help-block">
<strong>{{ $errors->first('berangkat') }}</strong>
</span>
@endif
</div>
</div>
<div class="form-group{{ $errors->has('kembali') ? ' has-error' : '' }}">
<label for="title" class="col-md-5 control-label">Tanggal Kembali</label>
<div class="col-md-6">
<input type="text" class="form-control" name="kembali" value="{{ $riwayatpesan3->kembali}}" readonly>
@if ($errors->has('kembali'))
<span class="help-block">
<strong>{{ $errors->first('kembali') }}</strong>
</span>
@endif
</div>
</div>
<div class="form-group{{ $errors->has('plat_bus') ? ' has-error' : '' }}">
<label for="title" class="col-md-5 control-label">Plat Kendaraan</label>
<div class="col-md-6">
<input type="text" class="form-control" name="plat_bus" value="{{ $riwayatpesan3->plat_bus}}" readonly>
@if ($errors->has('plat_bus'))
<span class="help-block">
<strong>{{ $errors->first('plat_bus') }}</strong>
</span>
@endif
</div>
</div>
<div class="form-group{{ $errors->has('alasan_tolak') ? ' has-error' : '' }}">
<label for="title" class="col-md-5 control-label">Alasan Penolakan</label>
<div class="col-md-6">
<textarea class="form-control" readonly>{{ $riwayatpesan3->alasan_tolak}}</textarea>
@if ($errors->has('alasan_tolak'))
<span class="help-block">
<strong>{{ $errors->first('alasan_tolak') }}</strong>
</span>
@endif
</div>
</div>
<div class="form-group{{ $errors->has('saran') ? ' has-error' : '' }}">
<label for="title" class="col-md-5 control-label">Saran yang Diberi</label>
<div class="col-md-6">
<textarea class="form-control" readonly>{{ $riwayatpesan3->saran}}</textarea>
@if ($errors->has('saran'))
<span class="help-block">
<strong>{{ $errors->first('saran') }}</strong>
</span>
@endif
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
@endsection
......@@ -25,26 +25,38 @@
</thead>
<tbody>
@foreach($riwayat as $riwaya)
@foreach($riwayatpesan as $riwayatpesa)
<tr>
<td>{{$riwaya->name}}</td>
<td>{{$riwaya->tujuan}}</td>
<td>{{$riwaya->alasan}}</td>
<td>{{$riwaya->status}}</td>
<td>{{$riwayatpesa->name}}</td>
<td>{{$riwayatpesa->tujuan}}</td>
<td>{{$riwayatpesa->alasan}}</td>
<td>{{$riwayatpesa->status}}</td>
<td colspan="2">
<a href="{{url('/riwayat/details',$riwaya->id)}}" class="btn btn-info"><i class="fa fa-eye"></i> Detail</a>
<a href="{{url('/riwayat/detailpesan',$riwayatpesa->id)}}" class="btn btn-info"><i class="fa fa-eye"></i> Detail</a>
</td>
</tr>
</form>
@endforeach
@foreach($riwayat2 as $riwaya2)
@foreach($riwayatpesan2 as $riwayatpesa2)
<tr>
<td>{{$riwaya2->name}}</td>
<td>{{$riwaya2->tujuan}}</td>
<td>{{$riwaya2->berangkat}}</td>
<td>{{$riwaya2->status}}</td>
<td>{{$riwayatpesa2->name}}</td>
<td>{{$riwayatpesa2->tujuan}}</td>
<td>{{$riwayatpesa2->berangkat}}</td>
<td>{{$riwayatpesa2->status}}</td>
<td colspan="2">
<a href="{{url('/riwayat/details2',$riwaya2->id)}}" class="btn btn-info"><i class="fa fa-eye"></i> Detail</a>
<a href="{{url('/riwayat/detailpesan2',$riwayatpesa2->id)}}" class="btn btn-info"><i class="fa fa-eye"></i> Detail</a>
</td>
</tr>
</form>
@endforeach
@foreach($riwayatpesan3 as $riwayatpesa3)
<tr>
<td>{{$riwayatpesa3->name}}</td>
<td>{{$riwayatpesa3->tujuan}}</td>
<td>{{$riwayatpesa3->berangkat}}</td>
<td>{{$riwayatpesa3->status}}</td>
<td colspan="2">
<a href="{{url('/riwayat/detailpesan3',$riwayatpesa3->id)}}" class="btn btn-info"><i class="fa fa-eye"></i> Detail</a>
</td>
</tr>
</form>
......
......@@ -72,6 +72,7 @@ Route::group(['middleware' => ['web','auth','k_klien']], function () {
Route::get('/history','AdminController@history');
Route::get('/history/details/{id}','AdminController@detailriwayat');
Route::get('/history/details2/{id}','AdminController@detailriwayat2');
Route::get('/history/details3/{id}','AdminController@detailriwayat3');
});
Route::group(['middleware' => ['web','auth','k_supir']], function () {
......@@ -112,6 +113,7 @@ Route::group(['middleware' => ['web','auth','klien']], function () {
Route::get('/bus','KlienController@bus');
Route::get('/bus/detail/{id}','KlienController@detailbus');
Route::get('/pesan','KlienController@pesan');
Route::get('/klien/pesan/pesanform','KlienController@pesanform');
Route::get('/klien/pesan/pakaibus/{id}','KlienController@pakaibus');
Route::get('/klien/pesan/pilih','KlienController@pilihbus');
......@@ -124,7 +126,8 @@ Route::group(['middleware' => ['web','auth','klien']], function () {
Route::get('/riwayat','KlienController@riwayat');
Route::get('/riwayat/details/{id}','KlienController@riwayats');
Route::get('/riwayat/details2/{id}','KlienController@riwayats2');
Route::get('/riwayat/detailpesan/{id}','KlienController@riwayatpesan');
Route::get('/riwayat/detailpesan2/{id}','KlienController@riwayatpesan2');
Route::get('/riwayat/detailpesan3/{id}','KlienController@riwayatpesan3');
});
\ 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