Commit 446fec34 by Rinto

Commit today

parent ffc5d339
...@@ -126,6 +126,7 @@ class KlienController extends Controller ...@@ -126,6 +126,7 @@ class KlienController extends Controller
$bus = Bus::all(); $bus = Bus::all();
return view('adminlte::klien.pesan.pilih', compact('bus')); return view('adminlte::klien.pesan.pilih', compact('bus'));
} }
public function pakaibus($id) public function pakaibus($id)
{ {
$bus = Bus::find($id); $bus = Bus::find($id);
......
...@@ -10,6 +10,7 @@ use App\Http\Requests; ...@@ -10,6 +10,7 @@ use App\Http\Requests;
use App\Bus; use App\Bus;
use App\Users; use App\Users;
use App\Supir; use App\Supir;
use App\Tolak;
use App\Jam_Kerja; use App\Jam_Kerja;
use App\Pemesanan; use App\Pemesanan;
use App\Batal; use App\Batal;
...@@ -118,8 +119,10 @@ class KsupirController extends Controller ...@@ -118,8 +119,10 @@ class KsupirController extends Controller
public function detailpemesanans($id) public function detailpemesanans($id)
{ {
$bus = Bus::all();
$supir = Supir::all();
$pemesanan = Pemesanan::find($id); $pemesanan = Pemesanan::find($id);
return view('adminlte::k_supir.pemesanan.detail', compact('pemesanan')); return view('adminlte::k_supir.pemesanan.detail', compact('pemesanan','bus','supir'));
} }
public function konfirmasi (Request $request, $id) public function konfirmasi (Request $request, $id)
...@@ -155,10 +158,51 @@ class KsupirController extends Controller ...@@ -155,10 +158,51 @@ class KsupirController extends Controller
return redirect('k_supir/history')->with('message','Berhasil Melakukan Konfirmasi'); return redirect('k_supir/history')->with('message','Berhasil Melakukan Konfirmasi');
} }
public function refuse($id)
{
$pemesanan = Pemesanan::find($id);
return view('adminlte::k_supir.pemesanan.refuse', compact('pemesanan'));
}
public function refusing(Request $request, $id)
{
$this->validate($request, [
'tujuan' => 'required',
'jumlah' => 'required',
'alasan' => 'required',
'berangkat' => 'required',
'kembali' => 'required',
'plat_bus' => 'required',
'name' => 'required',
'status' => 'required',
'alasan_tolak' => 'required',
'saran' => 'required',
]);
$tolak = new Tolak();
$tolak->tujuan = $request['tujuan'];
$tolak->jumlah = $request['jumlah'];
$tolak->alasan = $request['alasan'];
$tolak->berangkat = $request['berangkat'];
$tolak->kembali = $request['kembali'];
$tolak->plat_bus = $request['plat_bus'];
$tolak->name = $request['name'];
$tolak->status = $request['status'];
$tolak->alasan_tolak = $request['alasan_tolak'];
$tolak->saran = $request['saran'];
$tolak->save();
$pemesanan = Pemesanan::find($id);
$pemesanan->delete();
return redirect('k_supir/pemesanan')->with('message','Penolakan Berhasil Dilakukan');
}
public function historys() public function historys()
{ {
$riwayat = Konfirmasi::all(); $riwayat = Konfirmasi::all();
return view('adminlte::k_supir.history.index', compact('riwayat')); $riwayatzy = Tolak::all();
return view('adminlte::k_supir.history.index', compact('riwayat','riwayatzy'));
} }
public function detailriwayats($id) public function detailriwayats($id)
...@@ -167,6 +211,12 @@ class KsupirController extends Controller ...@@ -167,6 +211,12 @@ class KsupirController extends Controller
return view('adminlte::k_supir.history.detail', compact('riwayat')); return view('adminlte::k_supir.history.detail', compact('riwayat'));
} }
public function detailriwayatsz($id)
{
$riwayatz = Tolak::find($id);
return view('adminlte::k_supir.history.detail2', compact('riwayatz'));
}
public function jadwal() public function jadwal()
{ {
$jadwal = Jadwal::all(); $jadwal = Jadwal::all();
......
...@@ -102,6 +102,17 @@ ...@@ -102,6 +102,17 @@
@endif @endif
</div> </div>
</div> </div>
<div class="form-group{{ $errors->has('nama_supir') ? ' has-error' : '' }}">
<label for="title" class="col-md-5 control-label">Supir Bertugas</label>
<div class="col-md-6">
<input type="text" class="form-control" name="nama_supir" value="{{ $riwayat->nama_supir}}" readonly>
@if ($errors->has('nama_supir'))
<span class="help-block">
<strong>{{ $errors->first('nama_supir') }}</strong>
</span>
@endif
</div>
</div>
</form> </form>
</div> </div>
</div> </div>
......
...@@ -68,9 +68,7 @@ ...@@ -68,9 +68,7 @@
<label class="col-md-4 control-label">Deskripsi</label> <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> <textarea class="form-control" placeholder="Berikan deskripsi disini" rows="3" name="deskripsi" readonly="">{{ $bus->deskripsi}}</textarea>
</div> </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> </form><br>
</div> </div>
<!-- /.box-footer --> <!-- /.box-footer -->
......
...@@ -6,49 +6,109 @@ ...@@ -6,49 +6,109 @@
@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-reorder"></i> Riwayat</li> <li class="active"><i class="fa fa-file-archive-o"></i> Riwayat</li>
<li class="active"><i class="fa fa-send"></i> Detail Riwayat</li> <li class="active"><i class="fa fa-eye"></i> Detail Pesanan</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">
<div class="box-header with-border"> <div class="container">
<h3 class="box-title">Detil Riwayat Pemesanan</h3>
</div> <div class="col-md-8 col-md-offset-2">
<!-- /.box-header --> <div class="panel-body">
<div class="box-body">
<div class="col-md-9">
<strong><i class="fa fa-key"></i> ID</strong> <div class="box box-widget">
<p class="text-muted">{{ $riwayat->id}}</p> <div class="box-header with-border">
<div class="user-block">
<strong><i class="fa fa-user"></i> Nama Pemesan</strong> <span class="username">{{ $riwayat->name}}</span>
</div>
<p class="text-muted">{{ $riwayat->name}}</p> <!-- /.user-block -->
</div>
<div class="login-box-body">
<strong><i class="fa fa-hand-o-right"></i> Tujuan </strong> <div class="user-block">
<p class="text-muted">{{ $riwayat->tujuan}}</p> <span class="username">{{ $riwayat->status}}</span>
</div>
<!-- /.user-block -->
<strong><i class="fa fa-bus margin-r-5"></i> Plat Bus</strong> </div>
<p class="text-muted">{{ $riwayat->plat_bus}}</p> <!-- /.box-footer -->
<div class="box-footer">
<form class="form-horizontal" action="{{ url('') }}" method="POST">
<strong><i class="fa fa-commenting"></i> Alasan </strong> {!! csrf_field() !!}
<p class="text-muted">{{ $riwayat->alasan}}</p> <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">
<strong><i class="fa fa-hourglass"></i> Tanggal Berangkat </strong> <input type="text" class="form-control" name="tujuan" value="{{ $riwayat->tujuan}}" readonly>
<p class="text-muted">{{ $riwayat->berangkat}}</p> @if ($errors->has('tujuan'))
<span class="help-block">
<strong>{{ $errors->first('tujuan') }}</strong>
<strong><i class="fa fa-hourglass-o"></i> Tanggal Kembali </strong> </span>
<p class="text-muted">{{ $riwayat->kembali}}</p> @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="{{ $riwayat->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="{{ $riwayat->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="{{ $riwayat->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="{{ $riwayat->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="{{ $riwayat->plat_bus}}" readonly>
@if ($errors->has('plat_bus'))
<span class="help-block">
<strong>{{ $errors->first('plat_bus') }}</strong>
</span>
@endif
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div> </div>
<!-- /.box-body -->
</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">{{ $riwayatz->name}}</span>
</div>
<!-- /.user-block -->
</div>
<div class="login-box-body">
<div class="user-block">
<span class="username">{{ $riwayatz->status}} Oleh Koordinator Supir</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="{{ $riwayatz->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="{{ $riwayatz->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="{{ $riwayatz->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="{{ $riwayatz->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="{{ $riwayatz->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="{{ $riwayatz->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>{{ $riwayatz->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>{{ $riwayatz->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
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
<th><i class="fa fa-user"></i> Nama Pemesan</th> <th><i class="fa fa-user"></i> Nama Pemesan</th>
<th><i class="fa fa-hand-pointer-o"></i> Tujuan</th> <th><i class="fa fa-hand-pointer-o"></i> Tujuan</th>
<th><i class="fa fa-child"></i> Nama Supir</th> <th><i class="fa fa-child"></i> Nama Supir</th>
<th><i class="fa fa-rub"></i> Plat Bus</th>
<th><i class="fa fa-tag"></i>Status</th> <th><i class="fa fa-tag"></i>Status</th>
<th><i class="fa fa-hand-rock-o"></i> Aksi</th> <th><i class="fa fa-hand-rock-o"></i> Aksi</th>
</tr> </tr>
...@@ -31,7 +30,6 @@ ...@@ -31,7 +30,6 @@
<td>{{$riwaya->name}}</td> <td>{{$riwaya->name}}</td>
<td>{{$riwaya->tujuan}}</td> <td>{{$riwaya->tujuan}}</td>
<td>{{$riwaya->nama_supir}}</td> <td>{{$riwaya->nama_supir}}</td>
<td>{{$riwaya->plat_bus}}</td>
<td>{{$riwaya->status}}</td> <td>{{$riwaya->status}}</td>
<td colspan="2"> <td colspan="2">
<a href="{{url('/k_supir/history/detailss',$riwaya->id)}}" class="btn btn-danger"><i class="fa fa-eye"></i> Detail</a> <a href="{{url('/k_supir/history/detailss',$riwaya->id)}}" class="btn btn-danger"><i class="fa fa-eye"></i> Detail</a>
...@@ -39,6 +37,18 @@ ...@@ -39,6 +37,18 @@
</tr> </tr>
</form> </form>
@endforeach @endforeach
@foreach($riwayatzy as $riwayatz)
<tr>
<td>{{$riwayatz->name}}</td>
<td>{{$riwayatz->tujuan}}</td>
<td>Tidak Ada</td>
<td>{{$riwayatz->status}}</td>
<td colspan="2">
<a href="{{url('/k_supir/history/detailsz',$riwayatz->id)}}" class="btn btn-danger"><i class="fa fa-eye"></i> Detail</a>
</td>
</tr>
</form>
@endforeach
</tbody> </tbody>
</table> </table>
</div> </div>
......
...@@ -25,9 +25,50 @@ ...@@ -25,9 +25,50 @@
</div> </div>
@endif @endif
<div class="col-md-8 col-md-offset-2"> <div class="row">
<div class="panel-body"> <div class="col-md-4">
<div class="col-md-9"> <!-- Widget: user widget style 1 -->
<div class="box box-widget widget-user-2">
<!-- Add the bg color to the header using any of the bg-* classes -->
<div class="widget-user-header bg-blue">
<h5>List Plat Kendaraan IT DEL</h5>
</div>
<div class="box-footer no-padding">
<ul class="nav nav-stacked">
@foreach($bus as $bu)
<li><a href="#">{{$bu->plat_bus}}
<span class="pull-right badge bg-blue">
<img style="height: 20px; width: 20px;" class="img-circle" src="{{asset('image/'.$bu->gambar)}}"/>
</span>
</a>
</li>
@endforeach
</ul>
</div>
</div>
<!-- /.widget-user -->
<div class="box box-widget widget-user-2">
<!-- Add the bg color to the header using any of the bg-* classes -->
<div class="widget-user-header bg-green">
<h5>List Nama Supir IT DEL</h5>
</div>
<div class="box-footer no-padding">
<ul class="nav nav-stacked">
@foreach($supir as $supi)
<li><a href="#">{{$supi->nama_supir}}
<span class="pull-right badge bg-blue">
<img style="height: 20px; width: 20px;" class="img-circle" src="{{asset('image/'.$supi->image)}}"/>
</span>
</a>
</li>
@endforeach
</ul>
</div>
</div>
</div>
<div class="col-md-6">
<div class="box box-widget"> <div class="box box-widget">
<div class="box-header with-border"> <div class="box-header with-border">
<div class="user-block"> <div class="user-block">
...@@ -102,7 +143,7 @@ ...@@ -102,7 +143,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-4 control-label">Plat Kendaran</label>
<div class="col-md-6"> <div class="col-md-6">
<input type="text" class="form-control" name="plat_bus" value="{{ $pemesanan->plat_bus}}" required> <input type="text" class="form-control" name="plat_bus" value="{{ $pemesanan->plat_bus}}" required>
@if ($errors->has('plat_bus')) @if ($errors->has('plat_bus'))
...@@ -128,17 +169,18 @@ ...@@ -128,17 +169,18 @@
<div class="form-group"> <div class="form-group">
<div class="col-md-6 col-md-offset-4"> <div class="col-md-6 col-md-offset-4">
<button type="submit" class="btn btn-primary"> <button type="submit" class="btn btn-primary">
Konfirmasi <i class="fa fa-check-circle"></i> Konfirmasi
</button> </button>
<a href="{{url('k_supir/pemesanan/refuse',$pemesanan->id)}}" class="btn btn-danger">
<i class="fa fa-close"></i> Tolak</a>
</div> </div>
</div> </div>
</form> </form>
</div> </div>
</div> </div>
</div>
</div>
</div>
</div> </div>
</div> </div>
@endsection @endsection
@extends('adminlte::layouts.app')
@section('htmlheader_title')
Tolak Pemesanan
@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-close"></i> Tolak Pemesanan</li>
</ol><!-- breadcrumbs -->
@endsection
@section('main-content')
<div class="container-fluid spark-screen">
<div class="container">
@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('refusing', $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>
<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
</div>
</div>
<div class="form-group{{ $errors->has('tujuan') ? ' has-error' : '' }}">
<label for="title" class="col-md-4 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'))
<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="text" class="form-control" name="jumlah" value="{{ $pemesanan->jumlah}}" readonly>
@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 Keberangkatan</label>
<div class="col-md-6">
<input type="text" class="form-control" name="alasan" value="{{ $pemesanan->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-4 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'))
<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">Tanggal Kembali</label>
<div class="col-md-6">
<input type="text" class="form-control" name="kembali" value="{{ $pemesanan->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-4 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'))
<span class="help-block">
<strong>{{ $errors->first('plat_bus') }}</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="Ditolak">
@if ($errors->has('status'))
<span class="help-block">
<strong>{{ $errors->first('status') }}</strong>
</span>
@endif
</div>
</div>
<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_tolak" value="{{ $pemesanan->alasan_tolak}}" required></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-4 control-label">Saran Anda </label>
<div class="col-md-6">
<textarea class="form-control" name="saran" value="{{ $pemesanan->saran}}" required></textarea>
@if ($errors->has('saran'))
<span class="help-block">
<strong>{{ $errors->first('saran') }}</strong>
</span>
@endif
</div>
</div>
<div class="form-group">
<div class="col-md-6 col-md-offset-4">
<button type="submit" class="btn btn-primary">
Kirim Penolakan
</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
@endsection
...@@ -102,6 +102,17 @@ ...@@ -102,6 +102,17 @@
@endif @endif
</div> </div>
</div> </div>
<div class="form-group{{ $errors->has('nama_supir') ? ' has-error' : '' }}">
<label for="title" class="col-md-5 control-label">Supir Bertugas</label>
<div class="col-md-6">
<input type="text" class="form-control" name="nama_supir" value="{{ $riwayatpesan->nama_supir}}" readonly>
@if ($errors->has('nama_supir'))
<span class="help-block">
<strong>{{ $errors->first('nama_supir') }}</strong>
</span>
@endif
</div>
</div>
</form> </form>
</div> </div>
</div> </div>
......
...@@ -99,9 +99,12 @@ Route::group(['middleware' => ['web','auth','k_supir']], function () { ...@@ -99,9 +99,12 @@ Route::group(['middleware' => ['web','auth','k_supir']], function () {
Route::get('/k_supir/pemesanan','KsupirController@pemesanans'); Route::get('/k_supir/pemesanan','KsupirController@pemesanans');
Route::get('/k_supir/pemesanan/detailpemesanan/{id}','KsupirController@detailpemesanans'); Route::get('/k_supir/pemesanan/detailpemesanan/{id}','KsupirController@detailpemesanans');
Route::post('/k_supir/konfirmasi/{id}','KsupirController@konfirmasi'); Route::post('/k_supir/konfirmasi/{id}','KsupirController@konfirmasi');
Route::get('/k_supir/pemesanan/refuse/{id}','KsupirController@refuse');
Route::post('/refusing/{id}','KsupirController@refusing');
Route::get('/k_supir/history','KsupirController@historys'); Route::get('/k_supir/history','KsupirController@historys');
Route::get('/k_supir/history/detailss/{id}','KsupirController@detailriwayats'); Route::get('/k_supir/history/detailss/{id}','KsupirController@detailriwayats');
Route::get('/k_supir/history/detailsz/{id}','KsupirController@detailriwayatsz');
}); });
......
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