Commit ee56e846 by Palti Sinaga

87654321

parent a4a2a089
...@@ -60,13 +60,12 @@ class AdminController extends Controller ...@@ -60,13 +60,12 @@ class AdminController extends Controller
public function listhomestay() public function listhomestay()
{ {
$data = DB::table('homestay') $data = DB::table('homestay')
->get(); ->get();
return view('adminlte::layouts.admin.listhomestay')->with('data',$data);
return view('adminlte::layouts.admin.listhomestay')->with('data', $data);
} }
return view('adminlte::layouts.admin.listhomestay')->with('data',$data);
}
public function cariPesanan(Request $request){ public function cariPesanan(Request $request){
......
...@@ -28,6 +28,11 @@ class CustomerController extends Controller ...@@ -28,6 +28,11 @@ 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){
...@@ -173,9 +178,9 @@ class CustomerController extends Controller ...@@ -173,9 +178,9 @@ class CustomerController extends Controller
$transaksi->tanggal_mulai = $request['tanggal']; $transaksi->tanggal_mulai = $request['tanggal'];
$transaksi->tanggal_berakhir = $baru; $transaksi->tanggal_berakhir = $baru;
$transaksi->jumlah_kamar = $request['jumlah_kamar']; $transaksi->jumlah_kamar = $request['jumlah_kamar'];
$transaksi->total_pembayaran = $request['jumlah_kamar'] * $dataHomestay[0]->harga ; $transaksi->total_pembayaran = $request['jumlah_kamar'] * $dataHomestay[0]->harga ;
//dd($transaksi->total_pembayaran,$dataHomestay[0]->harga); //dd($transaksi->total_pembayaran,$dataHomestay[0]->harga);
$df = DB::table('daftar_book') $df = DB::table('daftar_book')
->where('daftar_book.id_transaksi','=',$id) ->where('daftar_book.id_transaksi','=',$id)
->get(); ->get();
......
@extends('adminlte::layouts.pages.rincianpemesanan')
@extends('adminlte::layouts.master')
@section('main-content')
<div class="cuisines agileits w3layouts" style="padding-top: 50px; margin-top: 70px; ">
<div class="container">
<div class="col-md-6 col-sm-6 cuisines-grids agileits w3layouts" style="padding:0px;">
<h3>Data Pemesanan Homestay</h3> <br>
<!-- <h3 style="margin-left:60px ; margin-top: 3px;"> {{Auth::user()->name}} </h2> -->
<form class="form-horizontal" action="" method="post" enctype="multipart/form-data">
<input type="hidden" name="_method" value="PUT">
{{csrf_field()}}
<div class="form-group">
<div class="col-sm-10">
<label for="">Nama</label>
<input type="text" name="nama" class="form-control" id="inputEmail3" value="">
</div>
</div>
<div class="form-group">
<div class="col-sm-5">
<label>Nomor Handphone Kontak</label>
<input type="text" name="nama" class="form-control" id="inputEmail3" value=" ">
</div>
<div class="col-sm-5">
<label>Alamat Email Kontak</label>
<input type="text" name="nama" class="form-control" id="inputEmail3" value="">
</div>
</div>
<div class="form-group">
<div class="col-sm-10">
<label>Permintaan Khusus</label>
<textarea style="border: #cccccc 1px solid;border-radius: 5px; min-height:150px;"></textarea>
</div>
</div>
<!-- <div class="form-group" align="right">
<div class="col-sm-10">
<input type="submit" class="btn btn-primary">
</div>
</div> -->
</div>
</form>
<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>
<table class="table-condensed" style="font-size: 16px; margin-left: -3px; color: #777;" >
<tr>
<td>Durasi</td>
<td>:</td>
</tr>
<tr>
<td> Check-in</td>
<td>:</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>
</table>
<br><br><br>
<div class=" cuisines-grids agileits w3layouts" >
<h3>Rincian Harga</h3><br>
<table class="table-condensed" style="font-size: 16px; margin-left: -3px; color: #777;" >
<label for="">Nama Homestay</label>
<tr>
<td>Harga Kamar</td>
<td>:</td>
</tr>
<tr>
<td> Total Bayar</td>
<td>:</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>
</table>
<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 class="clearfix"></div>
</div>
</div>
@endsection
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
<form action="{{url('cari')}}"> <form action="{{url('cari')}}">
<div class="col-md-2 col-sm-2 agileits w3layouts contact-grid contact-grid-2 "></div> <div class="col-md-2 col-sm-2 agileits w3layouts contact-grid contact-grid-2 "></div>
<div class="col-md-2 col-sm-2 agileits w3layouts contact-grid contact-grid-2 "> <div class="col-md-2 col-sm-2 agileits w3layouts contact-grid contact-grid-2 ">
<label>Tanggal Check-in:</label> <label>Tanggal Check-in:</label>
<input class="date agileits w3layouts" id="datepicker1" name="tanggal_mulai" type="text" required value="Tanggal Check in" onfocus="this.value = '';" onblur="if (this.value == '') {this.value = '';}"> <input class="date agileits w3layouts" id="datepicker1" name="tanggal_mulai" type="text" required value="Tanggal Check in" onfocus="this.value = '';" onblur="if (this.value == '') {this.value = '';}">
...@@ -35,11 +36,11 @@ ...@@ -35,11 +36,11 @@
<label>Durasi</label> <label>Durasi</label>
<input type="number" min="1" class="text wow agileits w3layouts " name="jumlah_hari" required onchange="updateDate(this)" placeholder="Lama Menginap" style="background-color: white; color: black"> <input type="number" min="1" class="text wow agileits w3layouts " name="jumlah_hari" required onchange="updateDate(this)" placeholder="Lama Menginap" style="background-color: white; color: black">
</div> </div>
<div class="col-md-2 col-sm-2 agileits w3layouts contact-grid contact-grid-2 "> <div class="col-md-2 col-sm-2 agileits w3layouts contact-grid contact-grid-2 ">
<label>Tanggal Check-out:</label> <label>Tanggal Check-out:</label>
<input class="date agileits w3layouts" id="datepicker2" name="tanggal_selesai" type="text" value="Tanggal Check Out" onfocus="this.value = '';" onblur="if (this.value == '') {this.value = '';}"> <input class="date agileits w3layouts" id="datepicker2" name="tanggal_selesai" type="text" value="Tanggal Check Out" onfocus="this.value = '';" onblur="if (this.value == '') {this.value = '';}">
</div> </div>
<div class="col-md-1 col-sm-2 agileits w3layouts contact-grid contact-grid-2 "> <div class="col-md-1 col-sm-2 agileits w3layouts contact-grid contact-grid-2 ">
<label>Tamu :</label> <label>Tamu :</label>
<input type="number" min="1" class="text wow agileits w3layouts " required name="jumlah_Tamu" placeholder="" style="background-color: white; color: black"> <input type="number" min="1" class="text wow agileits w3layouts " required name="jumlah_Tamu" placeholder="" style="background-color: white; color: black">
......
...@@ -73,13 +73,14 @@ ...@@ -73,13 +73,14 @@
</tr> </tr>
<tr> <tr>
<td> <td>
<form action="{{url('')}}"> <form action="">
<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>
......
...@@ -112,6 +112,8 @@ Route::group(['middleware' => 'customer'], function () { ...@@ -112,6 +112,8 @@ 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