Commit 1f1772aa by Rinto

new

parent 9d54eaf3
...@@ -11,15 +11,12 @@ ...@@ -11,15 +11,12 @@
<div class="login-logo"> <div class="login-logo">
<a href="{{ url('/welcome') }}"><b>Booking Driver</b>IS</a> <a href="{{ url('/welcome') }}"><b>Booking Driver</b>IS</a>
</div><!-- /.login-logo --> </div><!-- /.login-logo -->
@if (count($errors) > 0) @if (count($errors) > 0)
<div class="alert alert-danger"> <div class="alert alert-danger">
<strong>Terjadi Kesalahan!</strong> Username atau Password Salah<br> <strong>Terjadi Kesalahan!</strong> Username atau Password Salah<br>
</div> </div>
@endif @endif
<div class="login-box-body"> <div class="login-box-body">
<p class="login-box-msg"> {{ trans('adminlte_lang::message.siginsession') }} </p> <p class="login-box-msg"> {{ trans('adminlte_lang::message.siginsession') }} </p>
<form action="{{ url('/login') }}" method="post"> <form action="{{ url('/login') }}" method="post">
<input type="hidden" name="_token" value="{{ csrf_token() }}"> <input type="hidden" name="_token" value="{{ csrf_token() }}">
...@@ -31,31 +28,22 @@ ...@@ -31,31 +28,22 @@
<input type="password" class="form-control" placeholder="{{ trans('adminlte_lang::message.password') }}" name="password"/> <input type="password" class="form-control" placeholder="{{ trans('adminlte_lang::message.password') }}" name="password"/>
<span class="glyphicon glyphicon-lock form-control-feedback"></span> <span class="glyphicon glyphicon-lock form-control-feedback"></span>
</div> </div>
<div class="row"> <div class="row">
<div class="col-xs-8"> <div class="col-xs-8">
<div class="checkbox icheck"> <div class="checkbox icheck">
<label> <label>
<a href="{{ url('/register') }}" class="text-center">{{ trans('adminlte_lang::message.registermember') }}</a> <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> </label>
</div> </div>
</div> </div>
<!-- /.col --> <!-- /.col -->
<div class="col-xs-4"> <div class="col-xs-4">
<button type="submit" class="btn btn-primary btn-block btn-flat">{{ trans('adminlte_lang::message.buttonsign') }}</button> <button type="submit" class="btn btn-primary btn-block btn-flat">{{ trans('adminlte_lang::message.buttonsign') }}</button>
</div><!-- /.col --> </div><!-- /.col -->
</div> </div>
</form> </form>
<!-- Forgot Password <!-- Forgot Password <a href="{{ url('/password/reset') }}">{{ trans('adminlte_lang::message.forgotpassword') }}</a><br>-->
<a href="{{ url('/password/reset') }}">{{ trans('adminlte_lang::message.forgotpassword') }}</a><br>
-->
</div><!-- /.login-box-body --> </div><!-- /.login-box-body -->
</div><!-- /.login-box --> </div><!-- /.login-box -->
</div> </div>
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
@section('contentheader_title') @section('contentheader_title')
<ol class="breadcrumb"><li><a href="/"><i class="fa fa-home"></i> Home</a></li> <ol class="breadcrumb"><li><a href="/"><i class="fa fa-home"></i> Home</a></li>
<li class="active"><i class="fa fa-bus"></i> Kendaraan</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 --> </ol><!-- breadcrumbs -->
@endsection @endsection
...@@ -15,60 +15,66 @@ ...@@ -15,60 +15,66 @@
<div class="container-fluid spark-screen"> <div class="container-fluid spark-screen">
<div class="container"> <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"> <div class="col-md-6">
<input type="text" class="form-control" name="nama_bus" value="{{ $bus->nama_bus}}" readonly> <!-- Box Comment -->
@if ($errors->has('nama_bus')) <div class="box box-widget">
<span class="help-block"> <div class="box-header with-border">
<strong>{{ $errors->first('nama_bus') }}</strong> <div class="user-block">
</span> <img src="{{asset('image/'.$bus->gambar)}}" style="display: block;margin-left: auto;margin-right: auto;">
@endif <span class="username">{{ $bus->nama_bus}}</span>
</div> </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>
<div class="form-group{{ $errors->has('jenis_bus') ? ' has-error' : '' }}"> <!-- /.box-tools -->
<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
</div> </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>
<div class="form-group{{ $errors->has('plat_bus') ? ' has-error' : '' }}"> <!-- /.tab-pane -->
<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
</div> </div>
<!-- /.tab-content -->
</div> </div>
<div class="form-group{{ $errors->has('deskripsi') ? ' has-error' : '' }}"> <!-- /.nav-tabs-custom -->
<label for="title" class="col-md-4 control-label">Deskripsi Kendaraan</label> </div>
<div class="col-md-6"> </div>
<input type="text" class="form-control" name="deskripsi" value="{{ $bus->deskripsi}}" readonly> <!-- /.box-footer -->
@if ($errors->has('deskripsi')) <div class="box-footer">
<span class="help-block"> <form action="" method="post">
<strong>{{ $errors->first('deskripsi') }}</strong> <input name="_token" value="AKcKGHPCbCtWwxrSy6CaJSecjjXYfMdJNnGQC4NM" type="hidden">
</span> <div class="form-group has-feedback">
@endif <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> </div>
</form><br>
</div> </div>
</form> <!-- /.box-footer -->
</div> </div>
<!-- /.box -->
</div> </div>
</div> </div>
......
...@@ -6,12 +6,13 @@ ...@@ -6,12 +6,13 @@
@section('contentheader_title') @section('contentheader_title')
<ol class="breadcrumb"><li><a href="/"><i class="fa fa-home"></i> Home</a></li> <ol class="breadcrumb"><li><a href="/"><i class="fa fa-home"></i> Home</a></li>
<li class="active"><i class="fa fa-bus"></i>Kendaraan</li> <li class="active"><i class="fa fa-bus"></i> Kendaraan</li>
</ol><!-- breadcrumbs --> </ol><!-- breadcrumbs -->
@endsection @endsection
@section('main-content') @section('main-content')
<div class="container-fluid spark-screen"> <div class="container-fluid spark-screen">
@if(session()->has('message')) @if(session()->has('message'))
<div class="alert alert-info"> <div class="alert alert-info">
{{session()->get('message')}} {{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 @@ ...@@ -18,22 +18,26 @@
<div class="col-md-8 col-md-offset-2"> <div class="col-md-8 col-md-offset-2">
<div class="panel-body"> <div class="panel-body">
<form class="form-horizontal" action="{{ url('') }}" method="POST"> <div class="col-md-9">
{!! csrf_field() !!} <div class="box box-widget">
<div class="box-header with-border">
<div class="form-group{{ $errors->has('name') ? ' has-error' : '' }}"> <div class="user-block">
<label for="title" class="col-md-4 control-label">Nama Pemesan</label> <span class="username">{{ $riwayat->name}}</span>
<div class="col-md-6"> </div>
<input type="text" class="form-control" name="name" value="{{ $riwayat->name}}" readonly> <!-- /.user-block -->
@if ($errors->has('name')) </div>
<span class="help-block"> <div class="login-box-body">
<strong>{{ $errors->first('name') }}</strong> <div class="user-block">
</span> <span class="username">{{ $riwayat->status}}</span>
@endif
</div> </div>
<!-- /.user-block -->
</div> </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' : '' }}"> <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"> <div class="col-md-6">
<input type="text" class="form-control" name="tujuan" value="{{ $riwayat->tujuan}}" readonly> <input type="text" class="form-control" name="tujuan" value="{{ $riwayat->tujuan}}" readonly>
@if ($errors->has('tujuan')) @if ($errors->has('tujuan'))
...@@ -44,7 +48,7 @@ ...@@ -44,7 +48,7 @@
</div> </div>
</div> </div>
<div class="form-group{{ $errors->has('jumlah') ? ' has-error' : '' }}"> <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"> <div class="col-md-6">
<input type="text" class="form-control" name="tujuan" value="{{ $riwayat->tujuan}}" readonly> <input type="text" class="form-control" name="tujuan" value="{{ $riwayat->tujuan}}" readonly>
@if ($errors->has('tujuan')) @if ($errors->has('tujuan'))
...@@ -55,7 +59,7 @@ ...@@ -55,7 +59,7 @@
</div> </div>
</div> </div>
<div class="form-group{{ $errors->has('alasan') ? ' has-error' : '' }}"> <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"> <div class="col-md-6">
<input type="text" class="form-control" name="alasan" value="{{ $riwayat->alasan}}" readonly> <input type="text" class="form-control" name="alasan" value="{{ $riwayat->alasan}}" readonly>
@if ($errors->has('alasan')) @if ($errors->has('alasan'))
...@@ -66,7 +70,7 @@ ...@@ -66,7 +70,7 @@
</div> </div>
</div> </div>
<div class="form-group{{ $errors->has('berangkat') ? ' has-error' : '' }}"> <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"> <div class="col-md-6">
<input type="text" class="form-control" name="berangkat" value="{{ $riwayat->berangkat}}" readonly> <input type="text" class="form-control" name="berangkat" value="{{ $riwayat->berangkat}}" readonly>
@if ($errors->has('berangkat')) @if ($errors->has('berangkat'))
...@@ -77,7 +81,7 @@ ...@@ -77,7 +81,7 @@
</div> </div>
</div> </div>
<div class="form-group{{ $errors->has('kembali') ? ' has-error' : '' }}"> <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"> <div class="col-md-6">
<input type="text" class="form-control" name="kembali" value="{{ $riwayat->kembali}}" readonly> <input type="text" class="form-control" name="kembali" value="{{ $riwayat->kembali}}" readonly>
@if ($errors->has('kembali')) @if ($errors->has('kembali'))
...@@ -88,7 +92,7 @@ ...@@ -88,7 +92,7 @@
</div> </div>
</div> </div>
<div class="form-group{{ $errors->has('plat_bus') ? ' has-error' : '' }}"> <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"> <div class="col-md-6">
<input type="text" class="form-control" name="plat_bus" value="{{ $riwayat->plat_bus}}" readonly> <input type="text" class="form-control" name="plat_bus" value="{{ $riwayat->plat_bus}}" readonly>
@if ($errors->has('plat_bus')) @if ($errors->has('plat_bus'))
...@@ -98,18 +102,10 @@ ...@@ -98,18 +102,10 @@
@endif @endif
</div> </div>
</div> </div>
<div class="form-group{{ $errors->has('status') ? ' has-error' : '' }}"> </form>
<label for="title" class="col-md-4 control-label">Status</label> </div>
<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
</div> </div>
</div> </div>
</form>
</div> </div>
</div> </div>
......
...@@ -18,6 +18,22 @@ ...@@ -18,6 +18,22 @@
<div class="col-md-8 col-md-offset-2"> <div class="col-md-8 col-md-offset-2">
<div class="panel-body"> <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"> <form class="form-horizontal" action="{{ url('') }}" method="POST">
{!! csrf_field() !!} {!! csrf_field() !!}
...@@ -35,6 +51,9 @@ ...@@ -35,6 +51,9 @@
</form> </form>
</div> </div>
</div> </div>
</div>
</div>
</div>
</div> </div>
</div> </div>
......
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
<td>{{$riwaya2->alasan}}</td> <td>{{$riwaya2->alasan}}</td>
<td>{{$riwaya2->status}}</td> <td>{{$riwaya2->status}}</td>
<td colspan="2"> <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> </td>
</tr> </tr>
</form> </form>
......
...@@ -17,11 +17,9 @@ ...@@ -17,11 +17,9 @@
<button class="close" type="button" data-dismiss="alert" aria-hidden="true">x</button> <button class="close" type="button" data-dismiss="alert" aria-hidden="true">x</button>
<h4><i class="icon fa fa-check"></i> Notifikasi !</h4> <h4><i class="icon fa fa-check"></i> Notifikasi !</h4>
Terdapat Pemesanan Yang masuk Terdapat Pemesanan Yang masuk
<tr> <tr>
<a href="{{url('k_klien/pemesanan')}}" class="btn btn-danger">Lihat</a> <a href="{{url('k_klien/pemesanan')}}" class="btn btn-danger">Lihat</a>
</tr> </tr>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
@section('contentheader_title') @section('contentheader_title')
<ol class="breadcrumb"><li><a href="/"><i class="fa fa-home"></i> Home</a></li> <ol class="breadcrumb"><li><a href="/"><i class="fa fa-home"></i> Home</a></li>
<li class="active"><i class="fa fa-bus"></i>Detail Pemesanan</li> <li class="active"><i class="fa fa-eye"></i> Detail Pemesanan</li>
</ol><!-- breadcrumbs --> </ol><!-- breadcrumbs -->
@endsection @endsection
...@@ -16,12 +16,26 @@ ...@@ -16,12 +16,26 @@
<div class="col-md-8 col-md-offset-2"> <div class="col-md-8 col-md-offset-2">
<div class="panel-body"> <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"> <form class="form-horizontal" action="{{ url('update', $pemesanan->id) }}" method="POST">
{!! csrf_field() !!} {!! csrf_field() !!}
<div class="form-group{{ $errors->has('name') ? ' has-error' : '' }}"> <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"> <div class="col-md-6">
<input type="text" class="form-control" name="name" value="{{ $pemesanan->name}}" readonly> <input type="text" class="form-control" name="name" value="{{ $pemesanan->name}}" readonly>
@if ($errors->has('name')) @if ($errors->has('name'))
...@@ -32,7 +46,7 @@ ...@@ -32,7 +46,7 @@
</div> </div>
</div> </div>
<div class="form-group{{ $errors->has('tujuan') ? ' has-error' : '' }}"> <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"> <div class="col-md-6">
<input type="text" class="form-control" name="tujuan" value="{{ $pemesanan->tujuan}}" readonly> <input type="text" class="form-control" name="tujuan" value="{{ $pemesanan->tujuan}}" readonly>
@if ($errors->has('tujuan')) @if ($errors->has('tujuan'))
...@@ -43,7 +57,7 @@ ...@@ -43,7 +57,7 @@
</div> </div>
</div> </div>
<div class="form-group{{ $errors->has('jumlah') ? ' has-error' : '' }}"> <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"> <div class="col-md-6">
<input type="text" class="form-control" name="jumlah" value="{{ $pemesanan->jumlah}}" readonly> <input type="text" class="form-control" name="jumlah" value="{{ $pemesanan->jumlah}}" readonly>
@if ($errors->has('jumlah')) @if ($errors->has('jumlah'))
...@@ -53,7 +67,7 @@ ...@@ -53,7 +67,7 @@
@endif @endif
</div> </div>
</div><div class="form-group{{ $errors->has('alasan') ? ' has-error' : '' }}"> </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"> <div class="col-md-6">
<input type="text" class="form-control" name="alasan" value="{{ $pemesanan->alasan}}" readonly> <input type="text" class="form-control" name="alasan" value="{{ $pemesanan->alasan}}" readonly>
@if ($errors->has('alasan')) @if ($errors->has('alasan'))
...@@ -64,7 +78,7 @@ ...@@ -64,7 +78,7 @@
</div> </div>
</div> </div>
<div class="form-group{{ $errors->has('berangkat') ? ' has-error' : '' }}"> <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"> <div class="col-md-6">
<input type="text" class="form-control" name="berangkat" value="{{ $pemesanan->berangkat}}" readonly> <input type="text" class="form-control" name="berangkat" value="{{ $pemesanan->berangkat}}" readonly>
@if ($errors->has('berangkat')) @if ($errors->has('berangkat'))
...@@ -76,7 +90,7 @@ ...@@ -76,7 +90,7 @@
</div> </div>
<div class="form-group{{ $errors->has('kembali') ? ' has-error' : '' }}"> <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"> <div class="col-md-6">
<input type="text" class="form-control" name="kembali" value="{{ $pemesanan->kembali}}" readonly> <input type="text" class="form-control" name="kembali" value="{{ $pemesanan->kembali}}" readonly>
@if ($errors->has('kembali')) @if ($errors->has('kembali'))
...@@ -88,7 +102,7 @@ ...@@ -88,7 +102,7 @@
</div> </div>
<div class="form-group{{ $errors->has('plat_bus') ? ' has-error' : '' }}"> <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"> <div class="col-md-6">
<input type="text" class="form-control" name="plat_bus" value="{{ $pemesanan->plat_bus}}" readonly> <input type="text" class="form-control" name="plat_bus" value="{{ $pemesanan->plat_bus}}" readonly>
@if ($errors->has('plat_bus')) @if ($errors->has('plat_bus'))
...@@ -120,6 +134,9 @@ ...@@ -120,6 +134,9 @@
</form> </form>
</div> </div>
</div> </div>
</div>
</div>
</div>
</div> </div>
</div> </div>
......
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
@section('contentheader_title') @section('contentheader_title')
<ol class="breadcrumb"><li><a href="/"><i class="fa fa-home"></i> Home</a></li> <ol class="breadcrumb"><li><a href="/"><i class="fa fa-home"></i> Home</a></li>
<li class="active"><i class="fa fa-bus"></i> Supir</li> <li class="active"><i class="fa fa-user"></i> Supir</li>
<li class="active"><i class="fa fa-bus"></i> Detail Supir</li> <li class="active"><i class="fa fa-eye"></i> Detail Supir</li>
</ol><!-- breadcrumbs --> </ol><!-- breadcrumbs -->
@endsection @endsection
...@@ -15,29 +15,61 @@ ...@@ -15,29 +15,61 @@
<div class="container-fluid spark-screen"> <div class="container-fluid spark-screen">
<div class="container"> <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"> <div class="col-md-6">
<input type="text" class="form-control" name="nama_supir" value="{{ $supir->nama_supir}}" readonly>
@if ($errors->has('nama_supir')) <!-- Box Comment -->
<span class="help-block"> <div class="box box-widget">
<strong>{{ $errors->first('nama_supir') }}</strong> <div class="box-header with-border">
</span> <div class="user-block">
@endif <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> </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>
</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"> <div class="box-footer">
<a href="{{url('supir/tambah')}}" class="btn btn-danger">Tambah Supir</a> <form action="" method="post">
<i fa-user-plus></i> <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> </div>
<!-- /.box-footer -->
</div> </div>
<!-- /.box -->
</div> </div>
</div> </div>
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
@section('contentheader_title') @section('contentheader_title')
<ol class="breadcrumb"><li><a href="/"><i class="fa fa-home"></i> Home</a></li> <ol class="breadcrumb"><li><a href="/"><i class="fa fa-home"></i> Home</a></li>
<li class="active"><i class="fa fa-bus"></i> Supir</li> <li class="active"><i class="fa fa-user"></i> Supir</li>
</ol><!-- breadcrumbs --> </ol><!-- breadcrumbs -->
@endsection @endsection
......
@extends('adminlte::layouts.app') @extends('adminlte::layouts.app')
@section('htmlheader_title') @section('htmlheader_title')
Edit Detail
@endsection @endsection
@section('contentheader_title') @section('contentheader_title')
<ol class="breadcrumb"><li><a href="/"><i class="fa fa-home"></i> Home</a></li> <ol class="breadcrumb"><li><a href="/"><i class="fa fa-home"></i> Home</a></li>
<li class="active"><i class="fa fa-bus"></i>Supir</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-eye"></i> Ubah Data</li>
</ol><!-- breadcrumbs --> </ol><!-- breadcrumbs -->
@endsection @endsection
{{ $supir->nama}}
@section('main-content') @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"> <div class="container-fluid spark-screen">
@if(session()->has('message')) <div class="container">
<div class="alert alert-info">
{{session()->get('message')}}
</div>
@endif
@if(!empty($success))
<div class="alert alert-success">
{{$success}}
</div>
@endif
<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"> <div class="col-md-6">
<input type="text" class="form-control" name="nama" value="{{ $supir->id}}" > <!-- Box Comment -->
@if ($errors->has('id')) <div class="box box-widget">
<span class="help-block"> <div class="box-header with-border">
<strong>{{ $errors->first('id') }}</strong> <div class="user-block">
</span> <img src="{{asset('image/'.$supir->gambar)}}" style="display: block;margin-left: auto;margin-right: auto;">
@endif <span class="username">{{ $supir->nama_supir}}</span>
</div> </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>
<!-- /.box-tools -->
<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
</div> </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>
<!-- /.tab-pane -->
<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
</div> </div>
<!-- /.tab-content -->
</div> </div>
<!-- /.nav-tabs-custom -->
<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
</div> </div>
</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' : '' }}"> <div class="form-group has-feedback">
<label for="title" class="col-md-4 control-label">JK</label> <label class="col-md-4 control-label">ID Supir</label>
<div class="col-md-6"> <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"> <select name="jk" class="form-control">
<option value="Laki-Laki">Laki-Laki</option> <option value="Laki-Laki">Laki-Laki</option>
<option value="Perempuan">Perempuan</option> <option value="Perempuan">Perempuan</option>
</select> </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> </div>
<div class="form-group has-feedback">
<div class="form-group{{ $errors->has('image') ? ' has-error' : '' }}"> <label class="col-md-4 control-label">Agama</label>
<label for="title" class="col-md-4 control-label">Gambar</label> <input class="form-control" name="agama" value="{{ $supir->agama}}" required="" type="text">
<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> </div>
<div class="form-group">
<div class="col-md-6 col-md-offset-4">
<button type="submit" class="btn btn-primary"> <button type="submit" class="btn btn-primary">
Simpan <i class="fa fa-save"></i> Simpan
</button> </button>
</form><br>
</div> </div>
<!-- /.box-footer -->
</div> </div>
</form> <!-- /.box -->
</div> </div>
</div> </div>
</div> </div>
@endsection @endsection
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
@section('contentheader_title') @section('contentheader_title')
<ol class="breadcrumb"><li><a href="/"><i class="fa fa-home"></i> Home</a></li> <ol class="breadcrumb"><li><a href="/"><i class="fa fa-home"></i> Home</a></li>
<li class="active"><i class="fa fa-bus"></i> User</li> <li class="active"><i class="fa fa-user"></i> User</li>
<li class="active"><i class="fa fa-bus"></i> Detail User</li> <li class="active"><i class="fa fa-eye"></i> Detail User</li>
</ol><!-- breadcrumbs --> </ol><!-- breadcrumbs -->
@endsection @endsection
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
<!-- Profile Image --> <!-- Profile Image -->
<div class="box box-primary"> <div class="box box-primary">
<div class="box-body box-profile"> <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> <h3 class="profile-username text-center">{{ $user->name}}</h3>
......
...@@ -12,6 +12,16 @@ ...@@ -12,6 +12,16 @@
@section('main-content') @section('main-content')
<div class="container-fluid spark-screen"> <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"> <div class="box box-default">
@if(session()->has('message')) @if(session()->has('message'))
<div class="alert alert-info"> <div class="alert alert-info">
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
<div class="form-group{{ $errors->has('name') ? ' has-error' : '' }}"> <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-4 control-label">Nama Pemesan</label>
<div class="col-md-6"> <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')) @if ($errors->has('name'))
<span class="help-block"> <span class="help-block">
<strong>{{ $errors->first('name') }}</strong> <strong>{{ $errors->first('name') }}</strong>
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
<td>{{$riwaya->alasan}}</td> <td>{{$riwaya->alasan}}</td>
<td>{{$riwaya->status}}</td> <td>{{$riwaya->status}}</td>
<td colspan="2"> <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> </td>
</tr> </tr>
</form> </form>
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
<td>{{$riwaya2->berangkat}}</td> <td>{{$riwaya2->berangkat}}</td>
<td>{{$riwaya2->status}}</td> <td>{{$riwaya2->status}}</td>
<td colspan="2"> <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> </td>
</tr> </tr>
</form> </form>
......
...@@ -28,15 +28,15 @@ ...@@ -28,15 +28,15 @@
<!-- Menu Toggle Button --> <!-- Menu Toggle Button -->
<a href="#" class="dropdown-toggle" data-toggle="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">
<!-- The user image in the navbar--> <!-- 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. --> <!-- hidden-xs hides the username on small devices so only the image appears. -->
<span class="hidden-xs">{{ Auth::user()->name }}</span> <span class="hidden-xs">{{ Auth::user()->name }}</span>
</a> </a>
<ul class="dropdown-menu"> <ul class="dropdown-menu">
<!-- The user image in the menu --> <!-- The user image in the menu -->
<li class="user-header"> <div class="user-header">
<img src="/UD_Antoni_Start/public/image/164928.jpg" class="img-circle" alt="User Image" /> <img src="/PA21617D4TI04/public/img/photo1.png" class="profile-user-img img-responsive img-circle" alt="User Image"/>
</li> </div>
<!-- Menu Footer--> <!-- Menu Footer-->
<li class="user-footer"> <li class="user-footer">
......
...@@ -7,8 +7,8 @@ ...@@ -7,8 +7,8 @@
<!-- Sidebar user panel (optional) --> <!-- Sidebar user panel (optional) -->
@if (! Auth::guest()) @if (! Auth::guest())
<div class="user-panel"> <div class="user-panel">
<div class="pull-left image"> <div class="fa-pull-left image">
<img src=" " class="img-circle" alt="User Image" /> <img src="/PA21617D4TI04/public/img/photo1.png" class="img-circle" alt="User Image"/>
</div> </div>
<div class="pull-left info"> <div class="pull-left info">
<p>{{ Auth::user()->name }}</p> <p>{{ Auth::user()->name }}</p>
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
<!-- Sidebar Menu --> <!-- Sidebar Menu -->
<ul class="sidebar-menu"> <ul class="sidebar-menu">
<li class="header">{{ trans('adminlte_lang::message.header') }}</li>
@if(Auth::user()->status=="k_klien") @if(Auth::user()->status=="k_klien")
<li class="header">MAIN NAVIGATION</li> <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