Commit 2a4d4206 by Juliper

no message

parent 2f2c9145
...@@ -46,6 +46,11 @@ class CustomerController extends Controller ...@@ -46,6 +46,11 @@ class CustomerController extends Controller
return redirect('customerHistory'); return redirect('customerHistory');
} }
//Memperbaharui pesanan
public function updatePesanan($id){
}
//Pemberian/Pengiriman Feedback //Pemberian/Pengiriman Feedback
public function sendFeedback(Request $request, $id){ public function sendFeedback(Request $request, $id){
/* if(Auth::guest()){ /* if(Auth::guest()){
......
...@@ -36,17 +36,13 @@ ...@@ -36,17 +36,13 @@
<a href="{{url('buktipembayaran/'.$a->id)}}">Upload Bukti</a> <a href="{{url('buktipembayaran/'.$a->id)}}">Upload Bukti</a>
</td> </td>
<td> <td>
<form action="{{url('batalkan/'.$a->id)}}" method="post"> <a href="{{url('updatepesanan/'.$a->id)}}">Perbaharui Pesanan</a>
<input type="hidden" name="_method" value="PUT">
</i><input type="submit" value="batalkan">
{{csrf_field()}}
</form>
</td> </td>
<td> <td>
<form action="" method="post"> <form action="{{url('batalkan/'.$a->id)}}" method="post">
<input type="hidden" name="_method" value="PUT"> <input type="hidden" name="_method" value="PUT">
</i><input type="submit" value="batalkan">
{{csrf_field()}} {{csrf_field()}}
<input type="submit" value="Perbaharui">
</form> </form>
</td> </td>
@elseif($a->status==1) @elseif($a->status==1)
......
@extends('adminlte::layouts.master')
@section('main-content')
<div class="cuisines agileits w3layouts" style="padding-top: 50px; margin-top: 80px; margin-bottom: 100px;">
<div class="container">
<form class="form-horizontal" action="{{url('upload/'.$data->id)}}" method="post" enctype="multipart/form-data">
<input type="hidden" name="_method" value="PUT">
{{csrf_field()}}
<label>Tanggal Mulai</label>
<input type="text" name="tanggal_mulai" value="{{$data->tanggal_mulai}}" id="noTelepon" class="form-control">
<label>Tanggal Berakhir</label>
<input type="text" name="tanggal_berakhir" value="{{$data->tanggal_berakhir}}" class="form-control" >
<label>Jumlah Kamar</label>
<input type="text" name="jumlah_kamar" value="{{$data->jumlah_kamar}}" class="form-control">
<div class="form-group" align="right">
<input type="submit" class="btn btn-primary" value="simpan">
</div>
</form>
</div>
</div>
@endsection
...@@ -7,11 +7,11 @@ ...@@ -7,11 +7,11 @@
<input type="hidden" name="_method" value="PUT"> <input type="hidden" name="_method" value="PUT">
{{csrf_field()}} {{csrf_field()}}
<label>Tanggal Mulai</label> <label>Tanggal Mulai</label>
<input type="text" name="tanggal_mulai" value="{{$data->tanggal_mulai}}" id="noTelepon" class="form-control"> <input type="text" name="tanggal_mulai" value="{{$data->tanggal_mulai}}" id="noTelepon" class="form-control" disabled>
<label>Tanggal Berakhir</label> <label>Tanggal Berakhir</label>
<input type="text" name="tanggal_berakhir" value="{{$data->tanggal_berakhir}}" class="form-control"> <input type="text" name="tanggal_berakhir" value="{{$data->tanggal_berakhir}}" class="form-control" disabled>
<label>Jumlah Kamar</label> <label>Jumlah Kamar</label>
<input type="text" name="jumlah_kamar" value="{{$data->jumlah_kamar}}" class="form-control"> <input type="text" name="jumlah_kamar" value="{{$data->jumlah_kamar}}" class="form-control" disabled>
<label>Bukti Pembayaran</label> <label>Bukti Pembayaran</label>
<input type="file" name="bukti_pembayaran" id="foto" class="form-corol">nt<br> <input type="file" name="bukti_pembayaran" id="foto" class="form-corol">nt<br>
<div class="form-group" align="right"> <div class="form-group" align="right">
......
...@@ -87,6 +87,7 @@ Route::get('daftar','GuestController@register'); ...@@ -87,6 +87,7 @@ Route::get('daftar','GuestController@register');
Route::post('daftar','GuestController@registerStore'); Route::post('daftar','GuestController@registerStore');
Route::group(['middleware' => 'customer'], function () { Route::group(['middleware' => 'customer'], function () {
Route::get('updatepesanan/{id}','CustomerController@updatePesanan');
Route::put('batalkan/{id}','CustomerController@cancelPemesanan'); Route::put('batalkan/{id}','CustomerController@cancelPemesanan');
Route::put('upload/{id}','CustomerController@upload'); Route::put('upload/{id}','CustomerController@upload');
Route::get('customerHistory','CustomerController@history'); Route::get('customerHistory','CustomerController@history');
......
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