Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pa2d4ti06
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Juliper
pa2d4ti06
Commits
9b59c97d
Commit
9b59c97d
authored
7 years ago
by
Palti Sinaga
Browse files
Options
Browse Files
Download
Plain Diff
qweqwe
parents
78444b0d
ce774b0e
master
No related merge requests found
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
15 additions
and
4 deletions
+15
-4
GuestController.php
app/Http/Controllers/GuestController.php
+2
-0
OwnerController.php
app/Http/Controllers/OwnerController.php
+7
-0
ListBooking.blade.php
...views/vendor/adminlte/layouts/owner/ListBooking.blade.php
+1
-1
ListPengajuanFasilitas.blade.php
...r/adminlte/layouts/owner/ListPengajuanFasilitas.blade.php
+4
-0
listPesanan.blade.php
...views/vendor/adminlte/layouts/owner/listPesanan.blade.php
+1
-1
sidebar.blade.php
.../views/vendor/adminlte/layouts/partials/sidebar.blade.php
+0
-2
No files found.
app/Http/Controllers/GuestController.php
View file @
9b59c97d
...
...
@@ -81,6 +81,8 @@ class GuestController extends Controller
$lb
->
tanggal_berakhir
=
$request
[
'tanggal_selesai'
];
$lb
->
status
=
0
;
$lb
->
save
();
return
redirect
(
'customerHistory'
);
//dd($request);
...
...
This diff is collapsed.
Click to expand it.
app/Http/Controllers/OwnerController.php
View file @
9b59c97d
...
...
@@ -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
());
}
...
...
This diff is collapsed.
Click to expand it.
resources/views/vendor/adminlte/layouts/owner/ListBooking.blade.php
View file @
9b59c97d
...
...
@@ -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()}
}
...
...
This diff is collapsed.
Click to expand it.
resources/views/vendor/adminlte/layouts/owner/ListPengajuanFasilitas.blade.php
View file @
9b59c97d
...
...
@@ -29,6 +29,7 @@
<th >Keterangan</th>
<th>Gambar</th>
<th>Status</th>
<th>Alasan</th>
</tr>
@foreach(
$data
as
$a
)
<tr>
...
...
@@ -47,6 +48,9 @@
@elseif(
$a->status
==2) Ditolak
@endif
</td>
<td>
</td>
</tr>
@endforeach
</table>
...
...
This diff is collapsed.
Click to expand it.
resources/views/vendor/adminlte/layouts/owner/listPesanan.blade.php
View file @
9b59c97d
...
...
@@ -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>
...
...
This diff is collapsed.
Click to expand it.
resources/views/vendor/adminlte/layouts/partials/sidebar.blade.php
View file @
9b59c97d
...
...
@@ -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>
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment