Commit 4b66b1c6 by Juliper

no message

parent 7979307c
......@@ -81,6 +81,8 @@ class GuestController extends Controller
$lb->tanggal_berakhir = $request['tanggal_selesai'];
$lb->status = 0;
$lb->save();
return redirect('customerHistory');
//dd($request);
......
......@@ -67,7 +67,9 @@ class OwnerController extends Controller
->get();
$dataListOfBook = DB::table('daftar_book')
->join('transaksi','daftar_book.id_transaksi','=','transaksi.id')
->select('daftar_book.*')
->where('transaksi.status','=',0)
->where('daftar_book.homestay','=',$dataHomestay[0]->id)
->get();
......@@ -249,6 +251,7 @@ class OwnerController extends Controller
//Mengakses Daftar Booking Homestay
public function listOfBook(){
$dataPemilik = DB::table('pemilikhomestay')
->select('pemilikhomestay.id')
->where('pemilikhomestay.id_akun','=',Auth::user()->id)
......@@ -261,11 +264,15 @@ class OwnerController extends Controller
->where('pemilikhomestay.id','=',$dataPemilik[0]->id)
->get();
//dd($dataHomestay);
$dataListOfBook = DB::table('daftar_book')
->select('daftar_book.*')
->where('daftar_book.homestay','=',$dataHomestay[0]->id)
->get();
// dd($dataListOfBook);
return view('adminlte::layouts.owner.ListBooking')->with('data',$dataListOfBook)->with('count',$dataListOfBook->count());
}
......
......@@ -42,7 +42,7 @@
<td>{{$a->tanggal_berakhir}}</td>
<td>{{$a->jumlah_kamar}}</td>
<td>
@if($a->status==0) Pengunjung sudah checkout
@if($a->status==0) Pengunjung Belum Check In
@else
<form action="{{url('checkout/'.$a->id)}}" method="post">
{{csrf_field()}}
......
......@@ -29,6 +29,7 @@
<th>Keterangan</th>
<th>Gambar</th>
<th>Status</th>
<th>Alasan</th>
</tr>
@foreach($data as $a)
<tr>
......@@ -46,6 +47,9 @@
@elseif($a->status==2) Ditolak
@endif
</td>
<td>
</td>
</tr>
@endforeach
</table>
......
......@@ -40,7 +40,7 @@
<th>Lihat Detail</th>
<th>Download Bukti Pembayaran</th>
<th style="position: center;">Status</th>
<th colspan="2">aksi</th>
<th colspan="2"></th>
</tr>
@foreach($data as $a)
<tr>
......
......@@ -42,10 +42,8 @@
</span></a>
<ul class="treeview-menu" style="display : none;">
<li><a href="{{url('daftarKamar')}}"><i class='fa fa-list'></i> <span>Daftar Kamar</span></a></li>
<li><a href="{{url('pengajuanHomestay')}}"><i class='fa fa-external-link-square'></i> <span> Pengajuan Homestay </span></a></li>
<li><a href="{{url('listFeedback')}}"><i class='fa fa-list'></i> <span> Komentar Pelanggan </span></a></li>
<li><a href="{{url('updateHomestay')}}"><i class='fa fa-edit'></i> <span>Perbaharui Homestay</span></a></li>
<li><a href="{{url('listPengajuan')}}"><i class='fa fa-list'></i> <span> Daftar Pengajuan Homestay </span></a></li>
</ul>
</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