Commit e98ea325 by Palti Sinaga

123123

parents beefbbac 7979307c
...@@ -28,11 +28,6 @@ class CustomerController extends Controller ...@@ -28,11 +28,6 @@ class CustomerController extends Controller
$this->middleware('customer'); $this->middleware('customer');
} }
public function rincianpemesanan(){
return view('adminlte::layouts.customers.rincianpemesanan');
}
//Pembatalan Pemesanan/Pembookingan Homestay //Pembatalan Pemesanan/Pembookingan Homestay
public function cancelPemesanan($id){ public function cancelPemesanan($id){
...@@ -446,6 +441,7 @@ class CustomerController extends Controller ...@@ -446,6 +441,7 @@ class CustomerController extends Controller
$trans->tanggal_mulai = $request['tanggal']; $trans->tanggal_mulai = $request['tanggal'];
$trans->tanggal_berakhir = $baru; $trans->tanggal_berakhir = $baru;
$trans->jumlah_kamar =$request['jumlah_kamar']; $trans->jumlah_kamar =$request['jumlah_kamar'];
$trans->permintaan_khusus = $request['permintaan_khusus'];
$trans->lama_menginap = $request['jumlah_hari']; $trans->lama_menginap = $request['jumlah_hari'];
$trans->total_pembayaran = $request['jumlah_kamar'] * $dataHomestay[0]->harga; $trans->total_pembayaran = $request['jumlah_kamar'] * $dataHomestay[0]->harga;
$trans->status = 0; $trans->status = 0;
...@@ -458,10 +454,11 @@ class CustomerController extends Controller ...@@ -458,10 +454,11 @@ class CustomerController extends Controller
->where('transaksi.tanggal_berakhir','=',$baru) ->where('transaksi.tanggal_berakhir','=',$baru)
->get(); ->get();
//Insert Table Daftar Booking //Insert Table Daftar Booking
$lb->homestay = $request['id']; $lb->homestay = $request['id'];
$lb->id_transaksi = $dataTrans[0]->id; $lb->id_transaksi = $dataTrans[0]->id;
$lb->nama_pemesan = $dataPelanggan[0]->nama; $lb->nama_pemesan = $request['nama'];
$lb->jumlah_kamar = $request['jumlah_kamar']; $lb->jumlah_kamar = $request['jumlah_kamar'];
$lb->tanggal_mulai = $request['tanggal'] ; $lb->tanggal_mulai = $request['tanggal'] ;
$lb->tanggal_berakhir = $baru; $lb->tanggal_berakhir = $baru;
......
...@@ -35,9 +35,78 @@ class GuestController extends Controller ...@@ -35,9 +35,78 @@ class GuestController extends Controller
return view('welcome'); return view('welcome');
} }
//{id}/{tm}/{lm}/{ts}/{jt}/{jk}
public function homestay($id,$tm,$lm,$ts,$jt,$jk,$th){ public function booking(Request $request){
$dataPelanggan = DB::table('users')
->join('pelanggan','users.id','=','pelanggan.id_akun')
->select('pelanggan.id','pelanggan.nama')
->where('users.id','=',Auth::user()->id)
->get();
$trans = new Transaksi();
$trans->id_pelanggan = $dataPelanggan[0]->id ;
$trans->id_homestay = $request['id_homestay'];
$trans->tanggal_mulai = $request['tanggal_mulai'];
$trans->tanggal_berakhir = $request['tanggal_selesai'];
$trans->jumlah_kamar = $request['jumlah_kamar'];
$trans->jumlah_tamu = $request['jumlah_tamu'];
$trans->lama_menginap = $request['lama_menginap'];
$trans->permintaan_khusus = $request['permintaan_khusus'];
$trans->total_pembayaran = $request['total_harga'];
$trans->status = 0;
$trans->save();
$dataTrans = DB::table('transaksi')
->select('transaksi.id')
->where('transaksi.tanggal_mulai','=',$request['tanggal_mulai'])
->where('transaksi.tanggal_berakhir','=',$request['tanggal_selesai'])
->where('transaksi.total_pembayaran','=',$request['total_harga'])
->get();
//dd($dataTrans);
$lb = new ListBook();
$lb->homestay = $request['id_homestay'];
$lb->id_transaksi = $dataTrans[0]->id;
$lb->nama_pemesan = $request['nama'];
$lb->total_harga = $request['total_harga'];
$lb->permintaan_khusus = $request['permintaan_khusus'];
$lb->jumlah_kamar = $request['jumlah_kamar'];
$lb->jumlah_tamu = $request['jumlah_tamu'];
$lb->tanggal_mulai = $request['tanggal_mulai'] ;
$lb->tanggal_berakhir = $request['tanggal_selesai'];
$lb->status = 0;
return redirect('customerHistory');
//dd($request);
}
public function rincianpemesanan(Request $request, $id){
if(Auth::guest()){
return redirect('')->with('message','Anda Harus Login dulu !!');
}else{
$dataUser = DB::table('pelanggan')
->where('pelanggan.id_Akun','=',Auth::user()->id)
->get();
}
$data = DB::table('homestay')
->where('homestay.id','=',$id)
->get();
$TotalHarga = $request->lama_menginap * ($request->jumlah_kamar * $data[0]->harga);
return view('adminlte::layouts.customers.rincianpemesanan')->with('data',$data[0])->with('request',$request)->with('totalHarga',$TotalHarga)->with('dataUser',$dataUser[0])->with('id',$id);
}
public function homestay($id,$tm,$lm,$ts,$jt,$jk){
$data = DB::table('homestay') $data = DB::table('homestay')
->join('pemilikhomestay','homestay.id_pemilik','=','pemilikhomestay.id') ->join('pemilikhomestay','homestay.id_pemilik','=','pemilikhomestay.id')
...@@ -52,7 +121,7 @@ class GuestController extends Controller ...@@ -52,7 +121,7 @@ class GuestController extends Controller
->get(); ->get();
return view('adminlte::layouts.pages.detilSHomestay')->with('data',$data[0])->with('tm',$tm)->with('lm',$lm)->with('ts',$ts)->with('jt',$jt)->with('jk',$jk)->with('dataKamar',$dataKamar)->with('th',$th); return view('adminlte::layouts.pages.detilSHomestay')->with('id',$id)->with('data',$data[0])->with('tm',$tm)->with('lm',$lm)->with('ts',$ts)->with('jt',$jt)->with('jk',$jk)->with('dataKamar',$dataKamar);
} }
public function cari(Request $request){ public function cari(Request $request){
...@@ -66,13 +135,13 @@ class GuestController extends Controller ...@@ -66,13 +135,13 @@ class GuestController extends Controller
$tanggal_selesai = $request['tanggal_selesai']; $tanggal_selesai = $request['tanggal_selesai'];
$jumlah_Tamu = $request['jumlah_Tamu']; $jumlah_Tamu = $request['jumlah_Tamu'];
$jumlah_kamar = $request['jumlah_kamar']; $jumlah_kamar = $request['jumlah_kamar'];
//$book_start[] = null;
$dataHomestay[] = null; $dataHomestay[] = null;
$i = 0; $i = 0;
$exbed = 0; $exbed = 0;
$biaya = 0; $biaya = 0;
$temp = 0;
if($jumlah_kamar <= $jumlah_Tamu){
//Melakukan Looping pengecekan Homestay yang avilable //Melakukan Looping pengecekan Homestay yang avilable
foreach ($data as $a){ foreach ($data as $a){
...@@ -137,7 +206,7 @@ class GuestController extends Controller ...@@ -137,7 +206,7 @@ class GuestController extends Controller
if($counter==0){ if($counter==0){
if($request['jumlah_kamar'] <= $a->jumlah_kamar){ if($request['jumlah_kamar'] <= $a->jumlah_kamar){
if($request['jumlah_Tamu'] <= ($request['jumlah_kamar']*2)*2){ if($request['jumlah_Tamu'] <= ($request['jumlah_kamar']*2)){
$dataHomestay[$i] = DB::table('homestay') $dataHomestay[$i] = DB::table('homestay')
->where('homestay.id','=',$a->id) ->where('homestay.id','=',$a->id)
->get(); ->get();
...@@ -155,7 +224,6 @@ class GuestController extends Controller ...@@ -155,7 +224,6 @@ class GuestController extends Controller
// echo $dataCurrent[$l]; // echo $dataCurrent[$l];
$dataKamarHomestay[$l] = DB::table('daftar_book') $dataKamarHomestay[$l] = DB::table('daftar_book')
->where('daftar_book.id','=',$dataCurrent[$l]) ->where('daftar_book.id','=',$dataCurrent[$l])
//->where('daftar_book.homestay','=',$a->id)
->get(); ->get();
if ($dataKamarHomestay[$l][0]->homestay == $a->id){ if ($dataKamarHomestay[$l][0]->homestay == $a->id){
...@@ -171,13 +239,13 @@ class GuestController extends Controller ...@@ -171,13 +239,13 @@ class GuestController extends Controller
// echo $currentKamar; // echo $currentKamar;
//dd('asd'); //dd('asd');
if($request['jumlah_kamar'] <= $currentKamar){ if($request['jumlah_kamar'] <= $currentKamar){
if($request['jumlah_Tamu'] <= ($request['jumlah_kamar']*2)*2){ if($request['jumlah_Tamu'] <= ($request['jumlah_kamar']*2)){
$dataHomestay[$i] = DB::table('homestay') $dataHomestay[$i] = DB::table('homestay')
->where('homestay.id','=',$a->id) ->where('homestay.id','=',$a->id)
->get(); ->get();
//dd($request['jumlah_tamu']); //dd($request['jumlah_tamu']);
if($request['jumlah_Tamu'] <= $request['jumlah_kamar'] * 2){ /*if($request['jumlah_Tamu'] <= $request['jumlah_kamar'] * 2){
$exbed = 0; $exbed = 0;
$biaya = ($request['jumlah_kamar'] * 150000) * $request['jumlah_hari']; $biaya = ($request['jumlah_kamar'] * 150000) * $request['jumlah_hari'];
// echo 'masuk di if nya'; // echo 'masuk di if nya';
...@@ -188,18 +256,10 @@ class GuestController extends Controller ...@@ -188,18 +256,10 @@ class GuestController extends Controller
$biaya = ($request['jumlah_kamar'] * 150000) * $request['jumlah_hari']; $biaya = ($request['jumlah_kamar'] * 150000) * $request['jumlah_hari'];
if($temp == 0 ){ f
$exbed = $request['jumlah_kamar'];
}elseif ($temp >0 && $temp <=2){
$exbed = $request['jumlah_kamar'] - 1;
}elseif ($temp > 2 && $temp<=4){
$exbed = $request['jumlah_kamar'] - 2;
}elseif ($temp > 4 && $temp < 6){
$exbed = $request['jumlah_kamar'] - 3;
}
// echo 'masuk di else'; // echo 'masuk di else';
// echo '<br>'; // echo '<br>';
} }*/
} }
//echo $exbed; //echo $exbed;
...@@ -212,7 +272,11 @@ class GuestController extends Controller ...@@ -212,7 +272,11 @@ class GuestController extends Controller
$i++; $i++;
} }
//dd($exbed, $biaya+($exbed*50000),$dataHomestay,$dataCurrent,$currentKamar); //dd($dataHomestay,$dataCurrent,$currentKamar);
}else{
return redirect('')->with('message','Jumlah Kamar yang Avilable tidak mencukupi');
}
if($dataHomestay == null){ if($dataHomestay == null){
dd('salah'); dd('salah');
......
...@@ -9,7 +9,7 @@ class ListBook extends Model ...@@ -9,7 +9,7 @@ class ListBook extends Model
protected $table = "daftar_book"; protected $table = "daftar_book";
protected $fillable = [ protected $fillable = [
'nama_pemesan','tanggal_mulai','tanggal_berakhir','homestay','jumlah_kamar' 'jumlah_tamu','total_harga','permintaan_khusus','nama_pemesan','tanggal_mulai','tanggal_berakhir','homestay','jumlah_kamar'
]; ];
public $timestamps = false; public $timestamps = false;
......
...@@ -9,7 +9,7 @@ class Transaksi extends Model ...@@ -9,7 +9,7 @@ class Transaksi extends Model
protected $table = "transaksi"; protected $table = "transaksi";
protected $fillable = [ protected $fillable = [
'id_pelanggan', 'tanggal_mulai', 'tanggal_berakhir','lama_menginap','total_pembayaran','tanggal_konfirmasi','status', 'tanggal_konfirmasi','jumlah_tamu','permintaan_khusus','id_pelanggan', 'tanggal_mulai', 'tanggal_berakhir','lama_menginap','total_pembayaran','tanggal_konfirmasi','status',
]; ];
public $timestamps = false; public $timestamps = false;
......
...@@ -15,7 +15,6 @@ ...@@ -15,7 +15,6 @@
<th> Status Pemesanan</th> <th> Status Pemesanan</th>
<th></th> <th></th>
<th></th> <th></th>
<th></th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
...@@ -39,22 +38,10 @@ ...@@ -39,22 +38,10 @@
<td> <td>
<a href="{{url('buktipembayaran/'.$a->id)}}">Upload Bukti</a> <a href="{{url('buktipembayaran/'.$a->id)}}">Upload Bukti</a>
</td> </td>
<td>
<a href="{{url('updatepesanan/'.$a->id)}}">Perbaharui Pesanan</a>
</td>
<td>
<form action="{{url('batalkan/'.$a->id)}}" method="post">
<input type="hidden" name="_method" value="PUT">
</i><input type="submit" value="batalkan" class="btn btn-warning">
{{csrf_field()}}
</form>
</td>
@elseif($a->status==1) @elseif($a->status==1)
<td colspan="3"><h4>Diterima</h4></td> <td colspan="3"><h4>Diterima</h4></td>
@elseif($a->status==2) @elseif($a->status==2)
<td colspan="3"><h4>Ditolak</h4></td> <td colspan="3"><h4>Ditolak</h4></td>
@elseif($a->status=3)
<td colspan="3"><h4>Telah Dibatalkan</h4></td>
@endif @endif
</td> </td>
</tr> </tr>
......
...@@ -4,45 +4,60 @@ ...@@ -4,45 +4,60 @@
<div class="container"> <div class="container">
<div class="col-md-6 col-sm-6 cuisines-grids agileits w3layouts" style="padding:0px;"> <div class="col-md-6 col-sm-6 cuisines-grids agileits w3layouts" style="padding:0px;">
<h3>Data Pemesanan Homestay</h3> <br> <h3>Data Pemesanan Homestay</h3> <br>
<!-- <h3 style="margin-left:60px ; margin-top: 3px;"> {{Auth::user()->name}} </h2> --> <!-- <h3 style="margin-left:60px ; margin-top: 3px;"> </h2> -->
<form class="form-horizontal" action="" method="post" enctype="multipart/form-data"> <form class="form-horizontal" action="{{url('booking')}}" method="post" enctype="multipart/form-data">
<input type="hidden" name="_method" value="PUT">
{{csrf_field()}} {{csrf_field()}}
<div class="form-group"> <div class="form-group">
<div class="col-sm-10"> <div class="col-sm-10">
<label for="">Nama</label> <label for="">Nama</label>
<input type="text" name="nama" class="form-control" id="inputEmail3" value=""> <input type="text" name="nama" class="form-control" value="{{Auth::user()->name}}" id="inputEmail3" >
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<div class="col-sm-5"> <div class="col-sm-5">
<label>Nomor Handphone Kontak</label> <label>Nomor Handphone Kontak</label>
<input type="text" name="nama" class="form-control" id="inputEmail3" value=" "> <input type="text" name="kontak_hp" class="form-control" id="inputEmail3" value="{{$dataUser->no_telepon}}">
</div> </div>
<div class="col-sm-5"> <div class="col-sm-5">
<label>Alamat Email Kontak</label> <label>Alamat Email Kontak</label>
<input type="text" name="nama" class="form-control" id="inputEmail3" value=""> <input type="text" name="kontak_email" class="form-control" id="inputEmail3" value="{{Auth::user()->email}}">
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<div class="col-sm-10"> <div class="col-sm-10">
<label>Permintaan Khusus</label> <label>Permintaan Khusus</label>
<textarea style="border: #cccccc 1px solid;border-radius: 5px; min-height:150px;"></textarea> <textarea name="permintaan_khusus" style="border: #cccccc 1px solid;border-radius: 5px; min-height:150px;"></textarea>
</div> </div>
</div> </div>
<input type="hidden" value="{{$dataUser->no_telepon}}" name="id_user">
<input type="hidden" value="{{$request->lama_menginap}}" name="lama_menginap">
<input type="hidden" value="{{$request->tanggal_mulai}}" name="tanggal_mulai">
<input type="hidden" value="{{$request->tanggal_selesai}}" name="tanggal_selesai">
<input type="hidden" value="{{$request->jumlah_kamar}}" name="jumlah_kamar">
<input type="hidden" value="{{$request->jumlah_tamu}}" name="jumlah_tamu">
<input type="hidden" value="{{$data->harga}}" name="harga_homestay">
<input type="hidden" value="{{$totalHarga}}" name="total_harga">
<input type="hidden" value="{{$id}}" name="id_homestay">
<!-- <div class="form-group" align="right"> <!-- <div class="form-group" align="right">
<div class="col-sm-10"> <div class="col-sm-10">
<input type="submit" class="btn btn-primary"> <input type="submit" class="btn btn-primary">
</div> </div>
</div> --> </div> -->
<div class="form-group" align="left">
<div class="col-sm-10">
<input type="submit" class="btn btn-warning" value="Lanjutkan Pembayaran">
</div>
</div> </div>
</form> </form>
</div>
<div class="col-md-5 col-sm-5 cuisines-grids agileits w3layouts" style="background-color: #f9f9f9;padding: 40px;border-radius: 9px;"> <div class="col-md-5 col-sm-5 cuisines-grids agileits w3layouts" style="background-color: #f9f9f9;padding: 40px;border-radius: 9px;">
<h3>Rincian Pemesanan Homestay</h3> <br> <br><br> <h3>Rincian Pemesanan Homestay</h3> <br> <br><br>
...@@ -50,26 +65,30 @@ ...@@ -50,26 +65,30 @@
<tr> <tr>
<td>Durasi</td> <td>Durasi</td>
<td>:</td> <td>:</td>
<td>{{$request->lama_menginap}} Malam</td>
</tr> </tr>
<tr> <tr>
<td> Check-in</td> <td> Check-in</td>
<td>:</td> <td>:</td>
<td>{{$request->tanggal_mulai}}</td>
</tr> </tr>
<tr> <tr>
<td> Check-in</td> <td> Check-out</td>
<td>:</td> <td>:</td>
<td>{{$request->tanggal_selesai}}</td>
</tr> </tr>
<tr> <tr>
<td>Julmah Kamar</td> <td>Jumlah Kamar</td>
<td>:</td> <td>:</td>
<td>{{$request->jumlah_kamar}}</td>
</tr> </tr>
<tr> <tr>
<td> Jumlah Tamu </td> <td> Jumlah Tamu </td>
<td>:</td> <td>:</td>
<td>{{$request->jumlah_tamu}}</td>
</tr> </tr>
</table> </table>
...@@ -77,41 +96,20 @@ ...@@ -77,41 +96,20 @@
<div class=" cuisines-grids agileits w3layouts" > <div class=" cuisines-grids agileits w3layouts" >
<h3>Rincian Harga</h3><br> <h3>Rincian Harga</h3><br>
<table class="table-condensed" style="font-size: 16px; margin-left: -3px; color: #777;" > <table class="table-condensed" style="font-size: 16px; margin-left: -3px; color: #777;" >
<label for="">Nama Homestay</label> <label for="">{{$data->nama_homestay}}</label>
<tr> <tr>
<td>Harga Kamar</td> <td>Harga Kamar</td>
<td>:</td> <td>:</td>
<td>{{$data->harga}}</td>
</tr> </tr>
<tr> <tr>
<td> Total Bayar</td> <td> Total Bayar</td>
<td>:</td> <td>:</td>
<td>{{$totalHarga}}</td>
</tr>
<tr>
<td> Check-in</td>
<td>:</td>
</tr>
<tr>
<td>Julmah Kamar</td>
<td>:</td>
</tr>
<tr>
<td> Jumlah Tamu </td>
<td>:</td>
</tr> </tr>
</table> </table>
<br> <br>
<form class="form-horizontal" action="" method="post" enctype="multipart/form-data">
<div class="form-group" align="left">
<div class="col-sm-10">
<input type="submit" class="btn btn-warning" value="Lanjutkan Pembayaran">
</div>
</div>
</form>
</div> </div>
</div> </div>
......
...@@ -73,14 +73,13 @@ ...@@ -73,14 +73,13 @@
</tr> </tr>
<tr> <tr>
<td> <td>
<form action=""> <form action="{{url('rincianpemesanan/'.$id)}}">
<input type="hidden" name="tanggal_mulai" value="{{$tm}}"> <input type="hidden" name="tanggal_mulai" value="{{$tm}}">
<input type="hidden" name="lama_menginap" value="{{$lm}}"> <input type="hidden" name="lama_menginap" value="{{$lm}}">
<input type="hidden" name="tanggal_selesai" value="{{$ts}}"> <input type="hidden" name="tanggal_selesai" value="{{$ts}}">
<input type="hidden" name="jumlah_tamu" value="{{$jt}}"> <input type="hidden" name="jumlah_tamu" value="{{$jt}}">
<input type="hidden" name="jumlah_kamar" value="{{$jk}}"> <input type="hidden" name="jumlah_kamar" value="{{$jk}}">
<input type="submit" value="Pesan Sekarang" class="btn-succes"> <input type="submit" value="Pesan Sekarang" class="btn-succes">
<a href="{{url('/rincianpemesanan')}}">pesan coba</a>
</form> </form>
</td> </td>
</tr> </tr>
......
...@@ -22,10 +22,10 @@ ...@@ -22,10 +22,10 @@
<div class="col-md-4 col-sm-4 details-grid details-grid-2 agileits w3layouts "> <div class="col-md-4 col-sm-4 details-grid details-grid-2 agileits w3layouts ">
<div class="details-grid2 agileits w3layouts"> <div class="details-grid2 agileits w3layouts">
<div class="details-grid-image agileits w3layouts" > <div class="details-grid-image agileits w3layouts" >
<a href ="{{url('homestay/'.$a[0]->id.'/'.$tm.'/'.$lm.'/'.$ts.'/'.$jt.'/'.$jk.'/'.$th)}}" ><img src="/img/{{$a[0]->gambar}}" alt="Agileits W3layouts" ></a> <a href ="{{url('homestay/'.$a[0]->id.'/'.$tm.'/'.$lm.'/'.$ts.'/'.$jt.'/'.$jk)}}" ><img src="/img/{{$a[0]->gambar}}" alt="Agileits W3layouts" ></a>
</div> </div>
<div class="details-grid-info agileits w3layouts"> <div class="details-grid-info agileits w3layouts">
<a href ="{{url('homestay/'.$a[0]->id.'/'.$tm.'/'.$lm.'/'.$ts.'/'.$jt.'/'.$jk.'/'.$th)}}" ><h4>{{$a[0]->nama_homestay}}</h4></a> <a href ="{{url('homestay/'.$a[0]->id.'/'.$tm.'/'.$lm.'/'.$ts.'/'.$jt.'/'.$jk)}}" ><h4>{{$a[0]->nama_homestay}}</h4></a>
</div> </div>
<div class="clearfix"><h5>RP.{{$a[0]->harga}}</h5></div> <div class="clearfix"><h5>RP.{{$a[0]->harga}}</h5></div>
</div> </div>
......
...@@ -94,11 +94,13 @@ Route::group(['middleware' => 'owner'], function () { ...@@ -94,11 +94,13 @@ Route::group(['middleware' => 'owner'], function () {
Route::resource('pdf','PDFController@showPDF'); Route::resource('pdf','PDFController@showPDF');
}); });
Route::get('homestay/{id}/{tm}/{lm}/{ts}/{jt}/{jk}/{th}','GuestController@homestay'); Route::post('booking','GuestController@booking');
Route::get('homestay/{id}/{tm}/{lm}/{ts}/{jt}/{jk}','GuestController@homestay');
Route::get('cari','GuestController@cari'); Route::get('cari','GuestController@cari');
Route::get('detailhomestay/{id}','GuestController@detailhomestay'); Route::get('detailhomestay/{id}','GuestController@detailhomestay');
Route::get('daftar','GuestController@register'); Route::get('daftar','GuestController@register');
Route::post('daftar','GuestController@registerStore'); Route::post('daftar','GuestController@registerStore');
Route::get('rincianpemesanan/{id}','GuestController@rincianpemesanan');
Route::group(['middleware' => 'customer'], function () { Route::group(['middleware' => 'customer'], function () {
Route::get('updatepesanan/{id}','CustomerController@updatePesanan'); Route::get('updatepesanan/{id}','CustomerController@updatePesanan');
...@@ -112,7 +114,7 @@ Route::group(['middleware' => 'customer'], function () { ...@@ -112,7 +114,7 @@ Route::group(['middleware' => 'customer'], function () {
Route::put('editProfileCustomer/{id}','CustomerController@updateProfile'); Route::put('editProfileCustomer/{id}','CustomerController@updateProfile');
Route::get('customerProfile','CustomerController@profile'); Route::get('customerProfile','CustomerController@profile');
Route::post('feedback/{id}','CustomerController@sendFeedback'); Route::post('feedback/{id}','CustomerController@sendFeedback');
Route::get('rincianpemesanan','CustomerController@rincianpemesanan');
}); });
......
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