Commit f86574de by Rinto

new

parent 03b0ae6b
-- phpMyAdmin SQL Dump
-- version 4.5.1
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: 24 Mei 2017 pada 14.52
-- Versi Server: 10.1.16-MariaDB
-- PHP Version: 7.0.9
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `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;
-- --------------------------------------------------------
--
-- 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,
`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 `bus`
--
INSERT INTO `bus` (`id`, `nama_bus`, `jenis_bus`, `plat_bus`, `deskripsi`, `image`, `created_at`, `updated_at`) VALUES
(1, 'Perkasa', 'Truck', 'BB 8387 CE', 'Kapasitas 30 orang', 'perkasa.jpg', '2017-05-23 19:56:23', '2017-05-23 19:56:23'),
(2, 'Perkasa 2', 'Truck', 'BB 8388 CE', 'Kapasitas 30 orang', '762f614517e6fb3d6aa9c7a4543e1a3b.jpg', '2017-05-23 23:09:06', '2017-05-23 23:09:06'),
(3, 'Perkasa3', 'Truck', 'BB 8389 CE', 'Kapasitas 30 orang', '20150520_103112.jpg', '2017-05-23 23:10:18', '2017-05-23 23:10:18');
-- --------------------------------------------------------
--
-- 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,
`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`, `plat_bus`, `created_at`, `updated_at`) VALUES
(3, 'Bandung', '20', 'Jalan-Jalan', '2016-10-15', '2017-10-10', 'Anggiat Tambunan', 'disetujui', ' ', '2017-05-21 19:41:23', '2017-05-21 19:41:23'),
(33, 'ww', '2', 'tryy', '2016-10-10', '2017-10-10', 'klien', 'disetujui', ' ', '2017-05-17 20:10:31', '2017-05-17 20:10:31');
-- --------------------------------------------------------
--
-- 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
(1, 'Medan', 10, 'ON MIPA', '2016-10-10', '2017-10-10', 'Anggiat Tambunan', 'BB8387 CE', 'diproses', '2017-05-21 19:37:29', '2017-05-21 19:40:10'),
(2, 'Semarang', 10, 'Jalan-Jalan', '2016-10-10', '2017-10-10', 'Anggiat Tambunan', 'nothing', 'request', '2017-05-23 21:38:23', '2017-05-23 21:38:23');
-- --------------------------------------------------------
--
-- 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');
-- --------------------------------------------------------
--
-- 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', 'ICI6QkugR7bXiN25dXmQDwWigEwpQ7TCBVEK24uzZqriuiuKMf1DuleebDzr', '2017-05-17 21:33:45', '2017-05-24 02:31:54'),
(3, 'Anggiat Tambunan', 'anggiat@gmail.com', 'Anggiat', '$2y$10$5M2xdnQUMta4XxnY0KaxjeXE5vzeYf90EYJr5EyebMsN4ZiHPo5ua', 'klien', 'N7NRubzbzFOQMiiPdMt7y4wUnQLWIqwpDC1QXKwFZzI7hIGYbtxmGCMk8gc6', '2017-05-17 23:32:35', '2017-05-24 02:31:16'),
(4, 'Ester Marbun', 'ester@gmail.com', 'Ester', '$2y$10$8aRKaguOSfRGf755p6VU9eAIdUB8jIELeGM0UvO787HNAOdObPv0y', 'k_supir', 'kf4ExRJQwuUsLXpKRq1d0JRLZpviIWrnDkMj5h4A7v5umxhAiWTLgrwKXJyV', '2017-05-17 23:35:54', '2017-05-24 02:19:09');
--
-- 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 `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 for table `bus`
--
ALTER TABLE `bus`
MODIFY `id` int(100) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `pemesanan`
--
ALTER TABLE `pemesanan`
MODIFY `id` int(100) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- 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 */;
......@@ -11,15 +11,12 @@
<div class="login-logo">
<a href="{{ url('/welcome') }}"><b>Booking Driver</b>IS</a>
</div><!-- /.login-logo -->
@if (count($errors) > 0)
<div class="alert alert-danger">
<strong>Terjadi Kesalahan!</strong> Username atau Password Salah<br>
</div>
@endif
<div class="login-box-body">
<p class="login-box-msg"> {{ trans('adminlte_lang::message.siginsession') }} </p>
<form action="{{ url('/login') }}" method="post">
<input type="hidden" name="_token" value="{{ csrf_token() }}">
......@@ -31,31 +28,22 @@
<input type="password" class="form-control" placeholder="{{ trans('adminlte_lang::message.password') }}" name="password"/>
<span class="glyphicon glyphicon-lock form-control-feedback"></span>
</div>
<div class="row">
<div class="col-xs-8">
<div class="checkbox icheck">
<label>
<a href="{{ url('/register') }}" class="text-center">{{ trans('adminlte_lang::message.registermember') }}</a>
<!--
<input type="checkbox" name="remember"> {{ trans('adminlte_lang::message.remember') }}
-->
<!-- <input type="checkbox" name="remember"> {{ trans('adminlte_lang::message.remember') }}-->
</label>
</div>
</div>
<!-- /.col -->
<div class="col-xs-4">
<button type="submit" class="btn btn-primary btn-block btn-flat">{{ trans('adminlte_lang::message.buttonsign') }}</button>
</div><!-- /.col -->
</div>
</form>
<!-- Forgot Password
<a href="{{ url('/password/reset') }}">{{ trans('adminlte_lang::message.forgotpassword') }}</a><br>
-->
<!-- Forgot Password <a href="{{ url('/password/reset') }}">{{ trans('adminlte_lang::message.forgotpassword') }}</a><br>-->
</div><!-- /.login-box-body -->
</div><!-- /.login-box -->
</div>
......
......@@ -7,7 +7,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> Kendaraan</li>
<li class="active"><i class="fa fa-bus"></i> Detail Kendaraan</li>
<li class="active"><i class="fa fa-eye"></i> Detail Kendaraan</li>
</ol><!-- breadcrumbs -->
@endsection
......@@ -15,60 +15,66 @@
<div class="container-fluid spark-screen">
<div class="container">
<div class="col-md-8 col-md-offset-2">
<div class="panel-body">
<img src="{{asset('image/'.$bus->gambar)}}" style="height: 155px; width: 150px;">
<form class="form-horizontal" action="{{ url('') }}" method="POST">
{!! csrf_field() !!}
<div class="form-group{{ $errors->has('nama_bus') ? ' has-error' : '' }}">
<label for="title" class="col-md-4 control-label">Nama Kendaraan</label>
<div class="col-md-6">
<input type="text" class="form-control" name="nama_bus" value="{{ $bus->nama_bus}}" readonly>
@if ($errors->has('nama_bus'))
<span class="help-block">
<strong>{{ $errors->first('nama_bus') }}</strong>
</span>
@endif
<!-- Box Comment -->
<div class="box box-widget">
<div class="box-header with-border">
<div class="user-block">
<img src="{{asset('image/'.$bus->gambar)}}" style="display: block;margin-left: auto;margin-right: auto;">
<span class="username">{{ $bus->nama_bus}}</span>
</div>
<!-- /.user-block -->
<div class="box-tools">
<button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
</div>
<div class="form-group{{ $errors->has('jenis_bus') ? ' has-error' : '' }}">
<label for="title" class="col-md-4 control-label">Jenis Kendaraan</label>
<div class="col-md-6">
<input type="text" class="form-control" name="jenis_bus" value="{{ $bus->jenis_bus}}" readonly>
@if ($errors->has('jenis_bus'))
<span class="help-block">
<strong>{{ $errors->first('jenis_bus') }}</strong>
</span>
@endif
<!-- /.box-tools -->
</div>
<!-- /.box-header -->
<div class="box-body">
<div class="col-md-9">
<div class="nav-tabs-custom">
<ul class="nav nav-tabs">
<li class="active"><a href="#gambar1" data-toggle="tab" aria-expanded="true">Gambar Kendaraan</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="gambar1">
<img style="display: block;margin-left: auto;margin-right: auto;" src="{{asset('image/'.$bus->gambar)}}">
</div>
<div class="form-group{{ $errors->has('plat_bus') ? ' has-error' : '' }}">
<label for="title" class="col-md-4 control-label">Plat Kendaraan</label>
<div class="col-md-6">
<input type="text" class="form-control" name="plat_bus" value="{{ $bus->plat_bus}}" readonly>
@if ($errors->has('plat_bus'))
<span class="help-block">
<strong>{{ $errors->first('jenis') }}</strong>
</span>
@endif
<!-- /.tab-pane -->
</div>
<!-- /.tab-content -->
</div>
<div class="form-group{{ $errors->has('deskripsi') ? ' has-error' : '' }}">
<label for="title" class="col-md-4 control-label">Deskripsi Kendaraan</label>
<div class="col-md-6">
<input type="text" class="form-control" name="deskripsi" value="{{ $bus->deskripsi}}" readonly>
@if ($errors->has('deskripsi'))
<span class="help-block">
<strong>{{ $errors->first('deskripsi') }}</strong>
</span>
@endif
<!-- /.nav-tabs-custom -->
</div>
</div>
<!-- /.box-footer -->
<div class="box-footer">
<form action="" method="post">
<input name="_token" value="AKcKGHPCbCtWwxrSy6CaJSecjjXYfMdJNnGQC4NM" type="hidden">
<div class="form-group has-feedback">
<label class="col-md-4 control-label">Nama Kendaraan</label>
<input class="form-control" name="nama_bus" value="{{ $bus->nama_bus}}" readonly="" type="text">
</div>
<div class="form-group has-feedback">
<label class="col-md-4 control-label">Jenis Kendaraan</label>
<input class="form-control" name="jenis_bus" value="{{ $bus->jenis_bus}}" readonly="" type="text">
</div>
<div class="form-group has-feedback">
<label class="col-md-4 control-label">Plat Kendaraan</label>
<input class="form-control" name="plat_bus" value="{{ $bus->plat_bus}}" readonly="" type="text">
</div>
<div class="form-group has-feedback">
<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>
<div class="form-group has-feedback">
<a href="{{url('bus/ubahbus',$bus->id)}}" class="btn btn-success"><i class="fa fa-edit"></i> Ubah Data</a>
</div>
</form><br>
</div>
</form>
<!-- /.box-footer -->
</div>
<!-- /.box -->
</div>
</div>
......
......@@ -6,12 +6,13 @@
@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> Kendaraan</li>
</ol><!-- breadcrumbs -->
@endsection
@section('main-content')
<div class="container-fluid spark-screen">
@if(session()->has('message'))
<div class="alert alert-info">
{{session()->get('message')}}
......
@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-bus"></i> Kendaraan</li>
<li class="active"><i class="fa fa-eye"></i> Ubah Data</li>
</ol><!-- breadcrumbs -->
@endsection
@section('main-content')
<div class="container-fluid spark-screen">
<div class="container">
<div class="col-md-6">
<!-- Box Comment -->
<div class="box box-widget">
<div class="box-header with-border">
<div class="user-block">
<img src="{{asset('image/'.$bus->gambar)}}" style="display: block;margin-left: auto;margin-right: auto;">
<span class="username">{{ $bus->nama_bus}}</span>
</div>
<!-- /.user-block -->
<div class="box-tools">
<button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
</div>
<!-- /.box-tools -->
</div>
<!-- /.box-header -->
<div class="box-body">
<div class="col-md-9">
<div class="nav-tabs-custom">
<ul class="nav nav-tabs">
<li class="active"><a href="#gambar1" data-toggle="tab" aria-expanded="true">Gambar Kendaraan</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="gambar1">
<img style="display: block;margin-left: auto;margin-right: auto;" src="{{asset('image/'.$bus->gambar)}}">
</div>
<!-- /.tab-pane -->
</div>
<!-- /.tab-content -->
</div>
<!-- /.nav-tabs-custom -->
</div>
</div>
<!-- /.box-footer -->
<div class="box-footer">
<form action="{{ url('busupdate', $bus->id) }}" method="POST" enctype="multipart/form-data">
{{ csrf_field() }}
<div class="form-group has-feedback">
<input class="form-control" name="gambar" value="{{ $bus->gambar}}" readonly>
</div>
<div class="form-group has-feedback">
<label class="col-md-4 control-label">ID Kendaraan</label>
<input class="form-control" name="id" value="{{ $bus->id}}" type="text"readonly>
</div>
<div class="form-group has-feedback">
<label class="col-md-4 control-label">Nama Kendaraan</label>
<input class="form-control" name="nama_bus" value="{{ $bus->nama_bus}}" required="" type="text">
</div>
<div class="form-group has-feedback">
<label class="col-md-4 control-label">Jenis Kendaraan</label>
<input class="form-control" name="jenis_bus" value="{{ $bus->jenis_bus}}" required="" type="text">
</div>
<div class="form-group has-feedback">
<label class="col-md-4 control-label">Plat Kendaraan</label>
<input class="form-control" name="plat_bus" value="{{ $bus->plat_bus}}" required="" type="text">
</div>
<div class="form-group has-feedback">
<label class="col-md-4 control-label">Deskripsi</label>
<textarea class="form-control" placeholder="Berikan deskripsi disini" rows="3" name="deskripsi" required="">{{ $bus->deskripsi}}</textarea>
</div>
<button type="submit" class="btn btn-primary">
<i class="fa fa-save"></i> Simpan
</button>
</form><br>
</div>
<!-- /.box-footer -->
</div>
<!-- /.box -->
</div>
</div>
</div>
@endsection
......@@ -18,22 +18,26 @@
<div class="col-md-8 col-md-offset-2">
<div class="panel-body">
<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="col-md-6">
<input type="text" class="form-control" name="name" value="{{ $riwayat->name}}" readonly>
@if ($errors->has('name'))
<span class="help-block">
<strong>{{ $errors->first('name') }}</strong>
</span>
@endif
<div class="col-md-9">
<div class="box box-widget">
<div class="box-header with-border">
<div class="user-block">
<span class="username">{{ $riwayat->name}}</span>
</div>
<!-- /.user-block -->
</div>
<div class="login-box-body">
<div class="user-block">
<span class="username">{{ $riwayat->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-4 control-label">Tujuan</label>
<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="{{ $riwayat->tujuan}}" readonly>
@if ($errors->has('tujuan'))
......@@ -44,7 +48,7 @@
</div>
</div>
<div class="form-group{{ $errors->has('jumlah') ? ' has-error' : '' }}">
<label for="title" class="col-md-4 control-label">Jumlah Penumpang</label>
<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="{{ $riwayat->tujuan}}" readonly>
@if ($errors->has('tujuan'))
......@@ -55,7 +59,7 @@
</div>
</div>
<div class="form-group{{ $errors->has('alasan') ? ' has-error' : '' }}">
<label for="title" class="col-md-4 control-label">Keperluan Pemesanan</label>
<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="{{ $riwayat->alasan}}" readonly>
@if ($errors->has('alasan'))
......@@ -66,7 +70,7 @@
</div>
</div>
<div class="form-group{{ $errors->has('berangkat') ? ' has-error' : '' }}">
<label for="title" class="col-md-4 control-label">Tanggal Berangkat</label>
<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="{{ $riwayat->berangkat}}" readonly>
@if ($errors->has('berangkat'))
......@@ -77,7 +81,7 @@
</div>
</div>
<div class="form-group{{ $errors->has('kembali') ? ' has-error' : '' }}">
<label for="title" class="col-md-4 control-label">Tanggal Kembali</label>
<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="{{ $riwayat->kembali}}" readonly>
@if ($errors->has('kembali'))
......@@ -88,7 +92,7 @@
</div>
</div>
<div class="form-group{{ $errors->has('plat_bus') ? ' has-error' : '' }}">
<label for="title" class="col-md-4 control-label">Plat Kendaraan</label>
<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="{{ $riwayat->plat_bus}}" readonly>
@if ($errors->has('plat_bus'))
......@@ -98,18 +102,10 @@
@endif
</div>
</div>
<div class="form-group{{ $errors->has('status') ? ' has-error' : '' }}">
<label for="title" class="col-md-4 control-label">Status</label>
<div class="col-md-6">
<input type="text" class="form-control" name="status" value="{{ $riwayat->status}}" readonly>
@if ($errors->has('status'))
<span class="help-block">
<strong>{{ $errors->first('status') }}</strong>
</span>
@endif
</form>
</div>
</div>
</div>
</form>
</div>
</div>
......
......@@ -18,6 +18,22 @@
<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">{{ $riwayat2->name}}</span>
</div>
<!-- /.user-block -->
</div>
<div class="login-box-body">
<div class="user-block">
<span class="username">{{ $riwayat2->status}}</span>
</div>
<!-- /.user-block -->
</div>
<!-- /.box-footer -->
<div class="box-footer">
<form class="form-horizontal" action="{{ url('') }}" method="POST">
{!! csrf_field() !!}
......@@ -35,6 +51,9 @@
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
......
......@@ -44,7 +44,7 @@
<td>{{$riwaya2->alasan}}</td>
<td>{{$riwaya2->status}}</td>
<td colspan="2">
<a href="{{url('/history/details',$riwaya2->id)}}" class="btn btn-info"><i class="fa fa-eye"></i>Detail</a>
<a href="{{url('/history/details2',$riwaya2->id)}}" class="btn btn-info"><i class="fa fa-eye"></i>Detail</a>
</td>
</tr>
</form>
......
......@@ -17,11 +17,9 @@
<button class="close" type="button" data-dismiss="alert" aria-hidden="true">x</button>
<h4><i class="icon fa fa-check"></i> Notifikasi !</h4>
Terdapat Pemesanan Yang masuk
<tr>
<a href="{{url('k_klien/pemesanan')}}" class="btn btn-danger">Lihat</a>
</tr>
</div>
</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>Detail Pemesanan</li>
<li class="active"><i class="fa fa-eye"></i> Detail Pemesanan</li>
</ol><!-- breadcrumbs -->
@endsection
......@@ -16,12 +16,26 @@
<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">{{ $pemesanan->name}}</span>
</div>
<!-- /.user-block -->
</div>
<div class="login-box-body">
<div class="user-block">
<span class="username">{{ $pemesanan->status}}</span>
</div>
<!-- /.user-block -->
</div>
<!-- /.box-footer -->
<div class="box-footer">
<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-4 control-label">Nama Pemesan</label>
<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'))
......@@ -32,7 +46,7 @@
</div>
</div>
<div class="form-group{{ $errors->has('tujuan') ? ' has-error' : '' }}">
<label for="title" class="col-md-4 control-label">Tujuan</label>
<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="{{ $pemesanan->tujuan}}" readonly>
@if ($errors->has('tujuan'))
......@@ -43,7 +57,7 @@
</div>
</div>
<div class="form-group{{ $errors->has('jumlah') ? ' has-error' : '' }}">
<label for="title" class="col-md-4 control-label">Jumlah</label>
<label for="title" class="col-md-5 control-label">Jumlah</label>
<div class="col-md-6">
<input type="text" class="form-control" name="jumlah" value="{{ $pemesanan->jumlah}}" readonly>
@if ($errors->has('jumlah'))
......@@ -53,7 +67,7 @@
@endif
</div>
</div><div class="form-group{{ $errors->has('alasan') ? ' has-error' : '' }}">
<label for="title" class="col-md-4 control-label">Keperluan Keberangkatan</label>
<label for="title" class="col-md-5 control-label">Keperluan Keberangkatan</label>
<div class="col-md-6">
<input type="text" class="form-control" name="alasan" value="{{ $pemesanan->alasan}}" readonly>
@if ($errors->has('alasan'))
......@@ -64,7 +78,7 @@
</div>
</div>
<div class="form-group{{ $errors->has('berangkat') ? ' has-error' : '' }}">
<label for="title" class="col-md-4 control-label">Tanggal Berangkat</label>
<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="{{ $pemesanan->berangkat}}" readonly>
@if ($errors->has('berangkat'))
......@@ -76,7 +90,7 @@
</div>
<div class="form-group{{ $errors->has('kembali') ? ' has-error' : '' }}">
<label for="title" class="col-md-4 control-label">Tanggal Kembali</label>
<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="{{ $pemesanan->kembali}}" readonly>
@if ($errors->has('kembali'))
......@@ -88,7 +102,7 @@
</div>
<div class="form-group{{ $errors->has('plat_bus') ? ' has-error' : '' }}">
<label for="title" class="col-md-4 control-label">Plat Kendaraan</label>
<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="{{ $pemesanan->plat_bus}}" readonly>
@if ($errors->has('plat_bus'))
......@@ -120,6 +134,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> Supir</li>
<li class="active"><i class="fa fa-bus"></i> Detail Supir</li>
<li class="active"><i class="fa fa-user"></i> Supir</li>
<li class="active"><i class="fa fa-eye"></i> Detail Supir</li>
</ol><!-- breadcrumbs -->
@endsection
......@@ -15,29 +15,61 @@
<div class="container-fluid spark-screen">
<div class="container">
<div class="col-md-8 col-md-offset-2">
<div class="panel-body">
<form class="form-horizontal" action="{{ url('') }}" method="POST">
{!! csrf_field() !!}
<div class="form-group{{ $errors->has('nama_supir') ? ' has-error' : '' }}">
<label for="title" class="col-md-4 control-label">Nama Supir</label>
<div class="col-md-6">
<input type="text" class="form-control" name="nama_supir" value="{{ $supir->nama_supir}}" readonly>
@if ($errors->has('nama_supir'))
<span class="help-block">
<strong>{{ $errors->first('nama_supir') }}</strong>
</span>
@endif
<!-- Box Comment -->
<div class="box box-widget">
<div class="box-header with-border">
<div class="user-block">
<img src="{{asset('image/'.$supir->gambar)}}" style="display: block;margin-left: auto;margin-right: auto;">
<span class="username">{{ $supir->nama_supir}}</span>
<span class="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>
</form>
<!-- /.box-tools -->
</div>
<!-- /.box-header -->
<div class="box-body">
<img style="display: block;margin-left: auto;margin-right: auto;" src="{{asset('image/'.$supir->gambar)}}">
</div>
<!-- /.box-footer -->
<div class="box-footer">
<a href="{{url('supir/tambah')}}" class="btn btn-danger">Tambah Supir</a>
<i fa-user-plus></i>
<form action="" method="post">
<div class="form-group has-feedback">
<label class="col-md-4 control-label">ID Supir</label>
<input class="form-control" name="id" value="{{ $supir->id}}" readonly="" type="text">
</div>
<div class="form-group has-feedback">
<label class="col-md-4 control-label">Nama Supir</label>
<input class="form-control" name="nama_supir" value="{{ $supir->nama_supir}}" readonly="" type="text">
</div>
<div class="form-group has-feedback">
<label class="col-md-4 control-label">Tempat/Tgl Lahir</label>
<input class="form-control" name="ttl" value="{{ $supir->ttl}}" readonly="" type="text">
</div>
<div class="form-group has-feedback">
<label class="col-md-4 control-label">Alamat</label>
<input class="form-control" name="alamat" value="{{ $supir->alamat}}" readonly="" type="text">
</div>
<div class="form-group has-feedback">
<label class="col-md-4 control-label">Jenis Kelamin</label>
<input class="form-control" name="jk" value="{{ $supir->jk}}" readonly="" type="text">
</div>
<div class="form-group has-feedback">
<label class="col-md-4 control-label">Agama</label>
<input class="form-control" name="agama" value="{{ $supir->agama}}" readonly="" type="text">
</div>
<div class="form-group has-feedback">
<a href="{{url('supir/ubahsupir',$supir->id)}}" class="btn btn-info"><i class="fa fa-edit"></i> Ubah Data</a>
</div>
</form><br>
</div>
<!-- /.box-footer -->
</div>
<!-- /.box -->
</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> Supir</li>
<li class="active"><i class="fa fa-user"></i> Supir</li>
</ol><!-- breadcrumbs -->
@endsection
......
@extends('adminlte::layouts.app')
@section('htmlheader_title')
Edit
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-bus"></i>Supir</li>
<li class="active"><i class="fa fa-bus"></i>Ubah Supir</li>
<li class="active"><i class="fa fa-bus"></i> Supir</li>
<li class="active"><i class="fa fa-eye"></i> Ubah Data</li>
</ol><!-- breadcrumbs -->
@endsection
{{ $supir->nama}}
@section('main-content')
<div class="container">
<div class="col-md-8 col-md-offset-2">
<div class="panel-body">
<div class="container-fluid spark-screen">
@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="container">
<form class="form-horizontal" action="{{ url('updatesupir', $supir->id) }}" method="POST">
{!! csrf_field() !!}
<div class="form-group{{ $errors->has('id') ? ' has-error' : '' }}">
<label for="title" class="col-md-4 control-label">ID Supir</label>
<div class="col-md-6">
<input type="text" class="form-control" name="nama" value="{{ $supir->id}}" >
@if ($errors->has('id'))
<span class="help-block">
<strong>{{ $errors->first('id') }}</strong>
</span>
@endif
<!-- Box Comment -->
<div class="box box-widget">
<div class="box-header with-border">
<div class="user-block">
<img src="{{asset('image/'.$supir->gambar)}}" style="display: block;margin-left: auto;margin-right: auto;">
<span class="username">{{ $supir->nama_supir}}</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>
<div class="form-group{{ $errors->has('nama_supir') ? ' has-error' : '' }}">
<label for="title" class="col-md-4 control-label">Nama Supir</label>
<div class="col-md-6">
<input type="integer" class="form-control" name="nama_supir" value="{{ $supir->nama_supir }}" >
@if ($errors->has('nama_supir'))
<span class="help-block">
<strong>{{ $errors->first('nama_supir') }}</strong>
</span>
@endif
<!-- /.box-tools -->
</div>
<!-- /.box-header -->
<div class="box-body">
<div class="col-md-9">
<div class="nav-tabs-custom">
<ul class="nav nav-tabs">
<li class="active"><a href="#gambar1" data-toggle="tab" aria-expanded="true">Gambar Kendaraan</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="gambar1">
<img style="display: block;margin-left: auto;margin-right: auto;" src="{{asset('image/'.$supir->gambar)}}">
</div>
<div class="form-group{{ $errors->has('ttl') ? ' has-error' : '' }}">
<label for="title" class="col-md-4 control-label">TTL</label>
<div class="col-md-6">
<input type="text" class="form-control" name="ttl" value="{{ $supir->ttl }}" >
@if ($errors->has('ttl'))
<span class="help-block">
<strong>{{ $errors->first('ttl') }}</strong>
</span>
@endif
<!-- /.tab-pane -->
</div>
<!-- /.tab-content -->
</div>
<div class="form-group{{ $errors->has('alamat') ? ' has-error' : '' }}">
<label for="title" class="col-md-4 control-label">Alamat</label>
<div class="col-md-6">
<input type="text" class="form-control" name="alamat" value="{{ $supir->alamat }}" >
@if ($errors->has('alamat'))
<span class="help-block">
<strong>{{ $errors->first('alamat') }}</strong>
</span>
@endif
<!-- /.nav-tabs-custom -->
</div>
</div>
<!-- /.box-footer -->
<div class="box-footer">
<form action="{{url('/k_klien/supir/updatesupir',$supir->id)}}" method="post" enctype="multipart/form-data">
{{ csrf_field() }}
<div class="form-group{{ $errors->has('jk') ? ' has-error' : '' }}">
<label for="title" class="col-md-4 control-label">JK</label>
<div class="col-md-6">
<div class="form-group has-feedback">
<label class="col-md-4 control-label">ID Supir</label>
<input class="form-control" name="id" value="{{ $supir->id}}" readonly="" type="text">
</div>
<div class="form-group has-feedback">
<label class="col-md-4 control-label">Nama Supir</label>
<input class="form-control" name="nama_supir" value="{{ $supir->nama_supir}}" required="" type="text">
</div>
<div class="form-group has-feedback">
<label class="col-md-4 control-label">Tempat/Tgl Lahir</label>
<input class="form-control" name="ttl" value="{{ $supir->ttl}}" required="" type="text">
</div>
<div class="form-group has-feedback">
<label class="col-md-4 control-label">Alamat</label>
<input class="form-control" name="alamat" value="{{ $supir->alamat}}" required="" type="text">
</div>
<div class="form-group has-feedback">
<label class="col-md-4 control-label">Jenis Kelamin</label>
<div class="col-md-4">
<select name="jk" class="form-control">
<option value="Laki-Laki">Laki-Laki</option>
<option value="Perempuan">Perempuan</option>
</select>
@if ($errors->has('jk'))
<span class="help-block">
<strong>{{ $errors->first('jk') }}</strong>
</span>
@endif
</div>
</div>
<div class="form-group{{ $errors->has('agama') ? ' has-error' : '' }}">
<label for="title" class="col-md-4 control-label">Agama</label>
<div class="col-md-6">
<select name="agama" class="form-control">
<option value="k.Protestan">K. Protestan</option>
<option value="K.Katolik">K. Katolik</option>
<option value="Islam">Islam</option>
<option value="Hindu">Hindu</option>
<option value="Budha">Budha</option>
<option value="Lain">Lain</option>
</select>
@if ($errors->has('agama'))
<span class="help-block">
<strong>{{ $errors->first('agama') }}</strong>
</span>
@endif
</div>
</div>
<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="image" value="{{ $supir->image }}" >
@if ($errors->has('image'))
<span class="help-block">
<strong>{{ $errors->first('image') }}</strong>
</span>
@endif
</div>
<div class="form-group has-feedback">
<label class="col-md-4 control-label">Agama</label>
<input class="form-control" name="agama" value="{{ $supir->agama}}" required="" type="text">
</div>
<div class="form-group">
<div class="col-md-6 col-md-offset-4">
<button type="submit" class="btn btn-primary">
Simpan
<i class="fa fa-save"></i> Simpan
</button>
</form><br>
</div>
<!-- /.box-footer -->
</div>
</form>
<!-- /.box -->
</div>
</div>
</div>
@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> User</li>
<li class="active"><i class="fa fa-bus"></i> Detail User</li>
<li class="active"><i class="fa fa-user"></i> User</li>
<li class="active"><i class="fa fa-eye"></i> Detail User</li>
</ol><!-- breadcrumbs -->
@endsection
......@@ -21,7 +21,7 @@
<!-- Profile Image -->
<div class="box box-primary">
<div class="box-body box-profile">
<img class="profile-user-img img-responsive img-circle" src="../../dist/img/avatar.png" alt="User Profil">
<img src="/PA21617D4TI04/public/img/photo1.png" class="profile-user-img img-responsive img-circle" alt="User Image"/>
<h3 class="profile-username text-center">{{ $user->name}}</h3>
......
......@@ -12,6 +12,16 @@
@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">
......
......@@ -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="name" value="{{ $riwayat->name}}" readonly>
<input type="text" class="form-control" name="name" value="{{ $riwayats->name}}" readonly>
@if ($errors->has('name'))
<span class="help-block">
<strong>{{ $errors->first('name') }}</strong>
......
......@@ -32,7 +32,7 @@
<td>{{$riwaya->alasan}}</td>
<td>{{$riwaya->status}}</td>
<td colspan="2">
<a href="{{url('/klien/riwayat/details',$riwaya->id)}}" class="btn btn-info"><i class="fa fa-eye"></i> Detail</a>
<a href="{{url('/riwayat/details',$riwaya->id)}}" class="btn btn-info"><i class="fa fa-eye"></i> Detail</a>
</td>
</tr>
</form>
......@@ -44,7 +44,7 @@
<td>{{$riwaya2->berangkat}}</td>
<td>{{$riwaya2->status}}</td>
<td colspan="2">
<a href="{{url('/klien/riwayat/details2',$riwaya2->id)}}" class="btn btn-info"><i class="fa fa-eye"></i> Detail</a>
<a href="{{url('/riwayat/details2',$riwaya2->id)}}" class="btn btn-info"><i class="fa fa-eye"></i> Detail</a>
</td>
</tr>
</form>
......
......@@ -28,15 +28,15 @@
<!-- Menu Toggle Button -->
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<!-- The user image in the navbar-->
<img src="/UD_Antoni_Start/public/image/164928.jpg" class="user-image" alt="User Image"/>
<img src="/PA21617D4TI04/public/img/photo1.png" class="user-image" alt="User Image"/>
<!-- hidden-xs hides the username on small devices so only the image appears. -->
<span class="hidden-xs">{{ Auth::user()->name }}</span>
</a>
<ul class="dropdown-menu">
<!-- The user image in the menu -->
<li class="user-header">
<img src="/UD_Antoni_Start/public/image/164928.jpg" class="img-circle" alt="User Image" />
</li>
<div class="user-header">
<img src="/PA21617D4TI04/public/img/photo1.png" class="profile-user-img img-responsive img-circle" alt="User Image"/>
</div>
<!-- Menu Footer-->
<li class="user-footer">
......
......@@ -7,8 +7,8 @@
<!-- Sidebar user panel (optional) -->
@if (! Auth::guest())
<div class="user-panel">
<div class="pull-left image">
<img src=" " class="img-circle" alt="User Image" />
<div class="fa-pull-left image">
<img src="/PA21617D4TI04/public/img/photo1.png" class="img-circle" alt="User Image"/>
</div>
<div class="pull-left info">
<p>{{ Auth::user()->name }}</p>
......@@ -22,7 +22,6 @@
<!-- Sidebar Menu -->
<ul class="sidebar-menu">
<li class="header">{{ trans('adminlte_lang::message.header') }}</li>
@if(Auth::user()->status=="k_klien")
<li class="header">MAIN NAVIGATION</li>
......
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