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
f21c6e37
Commit
f21c6e37
authored
Jun 15, 2017
by
Juliper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
553ba6e1
Show whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
261 additions
and
41 deletions
+261
-41
AdminController.php
app/Http/Controllers/AdminController.php
+14
-9
OwnerController.php
app/Http/Controllers/OwnerController.php
+62
-4
RequestFasilitas.php
app/RequestFasilitas.php
+1
-1
17125558_400556056985554_5641874030777597952_n.jpg
...ic/img/17125558_400556056985554_5641874030777597952_n.jpg
+0
-0
detailreqFasilitas.blade.php
...endor/adminlte/layouts/admin/detailreqFasilitas.blade.php
+42
-8
home.blade.php
resources/views/vendor/adminlte/layouts/admin/home.blade.php
+0
-13
listRequestFasilitas.blade.php
...dor/adminlte/layouts/admin/listRequestFasilitas.blade.php
+4
-1
resultlistpesanan.blade.php
...vendor/adminlte/layouts/admin/resultlistpesanan.blade.php
+12
-0
rincianpemesanan.blade.php
...dor/adminlte/layouts/customers/rincianpemesanan.blade.php
+0
-0
AddBookManual.blade.php
...ews/vendor/adminlte/layouts/owner/AddBookManual.blade.php
+18
-0
ListBooking.blade.php
...views/vendor/adminlte/layouts/owner/ListBooking.blade.php
+11
-3
ListPengajuanFasilitas.blade.php
...r/adminlte/layouts/owner/ListPengajuanFasilitas.blade.php
+12
-0
Report.blade.php
...rces/views/vendor/adminlte/layouts/owner/Report.blade.php
+64
-0
home.blade.php
resources/views/vendor/adminlte/layouts/owner/home.blade.php
+15
-0
sidebar.blade.php
.../views/vendor/adminlte/layouts/partials/sidebar.blade.php
+2
-1
web.php
routes/web.php
+4
-1
No files found.
app/Http/Controllers/AdminController.php
View file @
f21c6e37
...
@@ -36,14 +36,12 @@ class AdminController extends Controller
...
@@ -36,14 +36,12 @@ class AdminController extends Controller
->
join
(
'requestfasilitas'
,
'pemilikhomestay.id'
,
'='
,
'requestfasilitas.id_pemilik_homestay'
)
->
join
(
'requestfasilitas'
,
'pemilikhomestay.id'
,
'='
,
'requestfasilitas.id_pemilik_homestay'
)
->
select
(
'pemilikhomestay.nama'
,
'requestfasilitas.*'
)
->
select
(
'pemilikhomestay.nama'
,
'requestfasilitas.*'
)
->
orderBy
(
'requestfasilitas.id'
,
'desc'
)
->
orderBy
(
'requestfasilitas.id'
,
'desc'
)
->
where
(
'requestfasilitas.status'
,
'='
,
0
)
->
get
();
->
get
();
$dataH
=
DB
::
table
(
'homestay'
)
$dataH
=
DB
::
table
(
'homestay'
)
->
get
();
->
get
();
$dataP
=
DB
::
table
(
'pengajuan_homestay'
)
->
get
();
$dataPesan
=
DB
::
table
(
'homestay'
)
$dataPesan
=
DB
::
table
(
'homestay'
)
->
join
(
'daftar_book'
,
'homestay.id'
,
'='
,
'daftar_book.homestay'
)
->
join
(
'daftar_book'
,
'homestay.id'
,
'='
,
'daftar_book.homestay'
)
->
select
(
'daftar_book.*'
,
'homestay.nama_homestay'
,
'homestay.owner'
)
->
select
(
'daftar_book.*'
,
'homestay.nama_homestay'
,
'homestay.owner'
)
...
@@ -55,7 +53,6 @@ class AdminController extends Controller
...
@@ -55,7 +53,6 @@ class AdminController extends Controller
return
view
(
'adminlte::layouts.admin.home'
)
->
with
(
'data'
,
$data
)
->
with
(
'count'
,
$count
)
->
with
(
'dataF'
,
$dataF
)
->
with
(
'countF'
,
$dataF
->
count
())
return
view
(
'adminlte::layouts.admin.home'
)
->
with
(
'data'
,
$data
)
->
with
(
'count'
,
$count
)
->
with
(
'dataF'
,
$dataF
)
->
with
(
'countF'
,
$dataF
->
count
())
->
with
(
'dataH'
,
$dataH
)
->
with
(
'countH'
,
$dataH
->
count
())
->
with
(
'dataH'
,
$dataH
)
->
with
(
'countH'
,
$dataH
->
count
())
->
with
(
'dataP'
,
$dataP
)
->
with
(
'countP'
,
$dataP
->
count
())
->
with
(
'dataPesan'
,
$dataPesan
)
->
with
(
'countPesan'
,
$dataPesan
->
count
());
->
with
(
'dataPesan'
,
$dataPesan
)
->
with
(
'countPesan'
,
$dataPesan
->
count
());
}
}
...
@@ -77,7 +74,7 @@ class AdminController extends Controller
...
@@ -77,7 +74,7 @@ class AdminController extends Controller
//dd($asd);
//dd($asd);
//dd($request['bulan']);
//dd($request['bulan']);
if
(
$request
[
'bulan
g
'
]
==
null
){
if
(
$request
[
'bulan'
]
==
null
){
$dataHos
=
DB
::
table
(
'daftar_book'
)
$dataHos
=
DB
::
table
(
'daftar_book'
)
->
join
(
'transaksi'
,
'daftar_book.id_transaksi'
,
'='
,
'transaksi.id'
)
->
join
(
'transaksi'
,
'daftar_book.id_transaksi'
,
'='
,
'transaksi.id'
)
->
join
(
'homestay'
,
'daftar_book.homestay'
,
'='
,
'homestay.id'
)
->
join
(
'homestay'
,
'daftar_book.homestay'
,
'='
,
'homestay.id'
)
...
@@ -85,7 +82,15 @@ class AdminController extends Controller
...
@@ -85,7 +82,15 @@ class AdminController extends Controller
->
select
(
'homestay.nama_homestay'
,
'homestay.owner'
,
'transaksi.total_pembayaran'
,
'transaksi.jumlah_kamar'
,
'daftar_book.*'
)
->
select
(
'homestay.nama_homestay'
,
'homestay.owner'
,
'transaksi.total_pembayaran'
,
'transaksi.jumlah_kamar'
,
'daftar_book.*'
)
->
get
();
->
get
();
return
view
(
'adminlte::layouts.admin.resultlistpesanan'
)
->
with
(
'data'
,
$dataHos
);
$dataHos2
=
DB
::
table
(
'daftar_book'
)
->
join
(
'homestay'
,
'daftar_book.homestay'
,
'='
,
'homestay.id'
)
->
where
(
'daftar_book.homestay'
,
'='
,
$dataHomestay
[
0
]
->
id
)
->
where
(
'daftar_book.id_transaksi'
,
'='
,
null
)
->
select
(
'homestay.nama_homestay'
,
'homestay.owner'
,
'daftar_book.*'
)
//->whereMonth('daftar_book.tanggal_mulai','=',$request['bulan'])
->
get
();
//dd($dataHos2);
return
view
(
'adminlte::layouts.admin.resultlistpesanan'
)
->
with
(
'data'
,
$dataHos
)
->
with
(
'data2'
,
$dataHos2
);
}
else
{
}
else
{
$data
=
DB
::
table
(
'daftar_book'
)
$data
=
DB
::
table
(
'daftar_book'
)
->
join
(
'transaksi'
,
'daftar_book.id_transaksi'
,
'='
,
'transaksi.id'
)
->
join
(
'transaksi'
,
'daftar_book.id_transaksi'
,
'='
,
'transaksi.id'
)
...
@@ -113,10 +118,10 @@ class AdminController extends Controller
...
@@ -113,10 +118,10 @@ class AdminController extends Controller
$penghasilan
+=
$biaya
;
$penghasilan
+=
$biaya
;
}
}
//
dd($data,$data2,$penghasilan);
dd
(
$data
,
$data2
,
$penghasilan
);
// dd('masuk',$request['bulan'],$request['nama_homestay'],$data);
// dd('masuk',$request['bulan'],$request['nama_homestay'],$data);
return
view
(
'adminlte::layouts.admin.resultlistpesanan'
)
->
with
(
'data'
,
$data
);
return
view
(
'adminlte::layouts.admin.resultlistpesanan'
)
->
with
(
'data'
,
$data
)
->
with
(
'data2'
,
$data2
)
;
}
}
}
}
...
@@ -322,7 +327,7 @@ class AdminController extends Controller
...
@@ -322,7 +327,7 @@ class AdminController extends Controller
public
function
UpdateRequestFasilitas
(
$id
){
public
function
UpdateRequestFasilitas
(
$id
){
$RF
=
RequestFasilitas
::
find
(
$id
);
$RF
=
RequestFasilitas
::
find
(
$id
);
$RF
->
status
=
1
;
$RF
->
status
=
1
;
$RF
->
notif
=
1
;
$RF
->
update
();
$RF
->
update
();
return
redirect
(
'requestFasilitas'
);
return
redirect
(
'requestFasilitas'
);
...
...
app/Http/Controllers/OwnerController.php
View file @
f21c6e37
...
@@ -24,6 +24,34 @@ class OwnerController extends Controller
...
@@ -24,6 +24,34 @@ class OwnerController extends Controller
$this
->
middleware
(
'owner'
);
$this
->
middleware
(
'owner'
);
}
}
public
function
Report
(
Request
$request
){
$dataHomestay
=
DB
::
table
(
'homestay'
)
->
join
(
'pemilikhomestay'
,
'homestay.id_pemilik'
,
'='
,
'pemilikhomestay.id'
)
->
where
(
'pemilikhomestay.id_akun'
,
'='
,
Auth
::
user
()
->
id
)
->
select
(
'homestay.id'
)
->
get
();
$dataPesanan
=
DB
::
table
(
'daftar_book'
)
->
where
(
'daftar_book.homestay'
,
'='
,
$dataHomestay
[
0
]
->
id
)
->
whereMonth
(
'daftar_book.tanggal_mulai'
,
'='
,
$request
[
'bulan'
])
->
get
();
$penghasilan
=
0
;
$jumlah_tamu
=
0
;
foreach
(
$dataPesanan
as
$a
){
$penghasilan
+=
$a
->
total_harga
;
$jumlah_tamu
+=
$a
->
jumlah_tamu
;
}
return
view
(
'adminlte::layouts.owner.Report'
)
->
with
(
'data'
,
$dataPesanan
)
->
with
(
'penghasilan'
,
$penghasilan
)
->
with
(
'jumlahTamu'
,
$jumlah_tamu
);
dd
(
$dataHomestay
,
$request
[
'bulan'
],
$dataPesanan
,
$penghasilan
);
}
public
function
Record
(){
$data
=
null
;
return
view
(
'adminlte::layouts.owner.Report'
)
->
with
(
'data'
,
$data
);
}
public
function
pesanan
(
$id
){
public
function
pesanan
(
$id
){
$dataTrans
=
DB
::
table
(
'transaksi'
)
$dataTrans
=
DB
::
table
(
'transaksi'
)
...
@@ -79,6 +107,11 @@ class OwnerController extends Controller
...
@@ -79,6 +107,11 @@ class OwnerController extends Controller
->
where
(
'feedback.id_pemilik_homestay'
,
'='
,
$dataPemilik
[
0
]
->
id
)
->
where
(
'feedback.id_pemilik_homestay'
,
'='
,
$dataPemilik
[
0
]
->
id
)
->
get
();
->
get
();
$HasdataRequest
=
DB
::
table
(
'requestfasilitas'
)
->
where
(
'requestfasilitas.status'
,
'<>'
,
0
)
->
where
(
'requestfasilitas.notif'
,
'='
,
1
)
->
get
();
$datakamar
=
DB
::
table
(
'homestay'
)
$datakamar
=
DB
::
table
(
'homestay'
)
->
join
(
'pemilikhomestay'
,
'homestay.id_pemilik'
,
'pemilikhomestay.id'
)
->
join
(
'pemilikhomestay'
,
'homestay.id_pemilik'
,
'pemilikhomestay.id'
)
->
join
(
'kamar'
,
'homestay.id'
,
'='
,
'kamar.id_homestay'
)
->
join
(
'kamar'
,
'homestay.id'
,
'='
,
'kamar.id_homestay'
)
...
@@ -87,14 +120,24 @@ class OwnerController extends Controller
...
@@ -87,14 +120,24 @@ class OwnerController extends Controller
->
get
();
->
get
();
return
view
(
'adminlte::layouts.owner.home'
)
->
with
(
'dataF'
,
$dataFeedback
)
->
with
(
'countF'
,
$dataFeedback
->
count
())
->
with
(
'dataB'
,
$dataListOfBook
)
->
with
(
'countB'
,
$dataListOfBook
->
count
())
->
with
(
'dataK'
,
$datakamar
)
->
with
(
'countK'
,
$datakamar
->
count
());
return
view
(
'adminlte::layouts.owner.home'
)
->
with
(
'dataF'
,
$dataFeedback
)
->
with
(
'countF'
,
$dataFeedback
->
count
())
->
with
(
'dataB'
,
$dataListOfBook
)
->
with
(
'countB'
,
$dataListOfBook
->
count
())
->
with
(
'dataK'
,
$datakamar
)
->
with
(
'countK'
,
$datakamar
->
count
())
->
with
(
'countHas'
,
$HasdataRequest
->
count
())
;
// return view('adminlte::layouts.owner.listPesanan')->with('count',$data->count())->with('count1',$dataListOfBook->count())->with('count2',$dataFeedback->count())->with('dataF',$dataFeedback);
// return view('adminlte::layouts.owner.listPesanan')->with('count',$data->count())->with('count1',$dataListOfBook->count())->with('count2',$dataFeedback->count())->with('dataF',$dataFeedback);
}
}
public
function
Checkout
(
$id
){
public
function
Asread
(
$id
){
$RF
=
RequestFasilitas
::
find
(
$id
);
$RF
->
notif
=
0
;
$RF
->
update
();
return
redirect
(
'listPengajuanFasilitas'
);
}
public
function
Check
(
Request
$request
,
$id
){
$dataPesanan
=
ListBook
::
find
(
$id
);
$dataPesanan
=
ListBook
::
find
(
$id
);
$dataPesanan
->
status
=
0
;
$dataPesanan
->
status
=
$request
[
'id'
]
;
$dataPesanan
->
update
();
$dataPesanan
->
update
();
...
@@ -314,8 +357,21 @@ class OwnerController extends Controller
...
@@ -314,8 +357,21 @@ class OwnerController extends Controller
$lb
->
nama_pemesan
=
$request
[
'nama'
];
$lb
->
nama_pemesan
=
$request
[
'nama'
];
$lb
->
jumlah_kamar
=
$request
[
'jumlah_kamar'
];
$lb
->
jumlah_kamar
=
$request
[
'jumlah_kamar'
];
$lb
->
tanggal_mulai
=
$request
[
'tanggal_mulai'
];
$lb
->
tanggal_mulai
=
$request
[
'tanggal_mulai'
];
$lb
->
jumlah_tamu
=
$request
[
'jumlah_tamu'
];
if
(
$request
[
'extrabed'
]
==
null
){
$lb
->
extrabed
=
$request
[
'extrabed'
];
}
else
{
$lb
->
extrabed
=
$request
[
'extrabed'
];
}
$datam
=
$request
[
'extrabed'
]
*
30000
;
$tohar
=
(((
$request
[
'jumlah_kamar'
]
*
150000
))
*
$request
[
'lama_menginap'
]);
$lb
->
lama_menginap
=
$request
[
'lama_menginap'
];
$lb
->
total_harga
=
$tohar
+
$datam
;
//dd($tohar + $datam);
$time
=
explode
(
'-'
,
$request
[
'tanggal_mulai'
]);
$time
=
explode
(
'-'
,
$request
[
'tanggal_mulai'
]);
$time
[
2
]
+=
$request
[
'jumlah_hari'
];
$time
[
2
]
+=
$request
[
'jumlah_hari'
];
$baru
=
join
(
'-'
,
$time
);
$baru
=
join
(
'-'
,
$time
);
$lb
->
tanggal_berakhir
=
$baru
;
$lb
->
tanggal_berakhir
=
$baru
;
...
@@ -395,6 +451,8 @@ class OwnerController extends Controller
...
@@ -395,6 +451,8 @@ class OwnerController extends Controller
->
orderBy
(
'transaksi.id'
,
'desc'
)
->
orderBy
(
'transaksi.id'
,
'desc'
)
->
paginate
(
5
);
->
paginate
(
5
);
return
view
(
'adminlte::layouts.owner.listPesanan'
)
->
with
(
'data'
,
$data
)
->
with
(
'count'
,
$data
->
count
());
return
view
(
'adminlte::layouts.owner.listPesanan'
)
->
with
(
'data'
,
$data
)
->
with
(
'count'
,
$data
->
count
());
}
}
...
...
app/RequestFasilitas.php
View file @
f21c6e37
...
@@ -9,7 +9,7 @@ class RequestFasilitas extends Model
...
@@ -9,7 +9,7 @@ class RequestFasilitas extends Model
protected
$table
=
"requestfasilitas"
;
protected
$table
=
"requestfasilitas"
;
protected
$fillable
=
[
protected
$fillable
=
[
'id'
,
'id_pemilik_homestay'
,
'id_kategori_fasiltas'
,
'nama_request_fasilitas'
,
'deskripsi'
,
'jumlah'
,
'gambar'
,
'status'
,
'pesan'
'id'
,
'id_pemilik_homestay'
,
'id_kategori_fasiltas'
,
'nama_request_fasilitas'
,
'deskripsi'
,
'jumlah'
,
'gambar'
,
'status'
,
'pesan'
,
'notif'
];
];
public
$timestamps
=
false
;
public
$timestamps
=
false
;
...
...
public/img/17125558_400556056985554_5641874030777597952_n.jpg
0 → 100644
View file @
f21c6e37
48.2 KB
resources/views/vendor/adminlte/layouts/admin/detailreqFasilitas.blade.php
View file @
f21c6e37
...
@@ -96,14 +96,14 @@
...
@@ -96,14 +96,14 @@
</form>
</form>
<!-- -->
<!-- -->
<form action="
{{
url
(
'requestFasilitass/'
.
$data
->
id
)}}
" method="
post
" style="
display
:
inline
">
{{--<form action="
{{
url
(
'requestFasilitass/'
.
$data
->
id
)}}
" method="
post
" style="
display
:
inline
">--}}
{
{
csrf_field()
}
}
{
{
--{{csrf_field()}}--
}
}
<input type="
hidden
" name="
_method
" value="
PUT
">
{{--<input type="
hidden
" name="
_method
" value="
PUT
">--}}
<button type="
submit
" class="
btn
btn
-
danger
" data-toggle="
modal
" data-target="
#confirmDelete"
{{--<button type="
submit
" class="
btn
btn
-
danger
" data-toggle="
modal
" data-target="
#confirmDelete"--}}
data
-
title
=
"Delete User"
data
-
message
=
"Are you sure you want to delete this user ?"
>
{{
--
data
-
title
=
"Delete User"
data
-
message
=
"Are you sure you want to delete this user ?"
>--
}}
<
i
class
="
fa
fa
-
close
" > Tolak</i>
{{
--<
i
class
="
fa
fa
-
close
" > Tolak</i>--}}
</button>
{
{--</button>--}
}
</form>
{
{--</form>--}
}
</td>
</td>
@endif
@endif
...
@@ -122,6 +122,7 @@
...
@@ -122,6 +122,7 @@
<!-- <script>
<!-- <script>
$("
.
delete
").on("
submit
", function(){
$("
.
delete
").on("
submit
", function(){
return confirm("
Do
you
want
to
delete
this
item
?
");
return confirm("
Do
you
want
to
delete
this
item
?
");
...
@@ -139,4 +140,37 @@ $('table[data-form="deleteForm"]').on('click', '.form-delete', function(e){
...
@@ -139,4 +140,37 @@ $('table[data-form="deleteForm"]').on('click', '.form-delete', function(e){
});
});
</script> -->
</script> -->
<div id="
form
" class="
modal
fade
" role="
dialog
">
<div class="
modal
-
dialog
" id="
form
">
<!-- Modal content-->
<div class="
modal
-
content
" >
<div class="
modal
-
header
">
<button type="
button
" class="
close
" data-dismiss="
modal
">×</button>
<h4 class="
modal
-
title
">User Information</h4>
</div>
<div class="
modal
-
body
">
<form class="
form
-
horizontal
" role="
form
" action="
/
manage_accounts
/
{{
$user
->
id
}}
" novalidate>
<input type="
hidden
" name="
_method
" value="
PUT
">
<input type="
hidden
" name="
_token
" value="
{{
csrf_token
()
}}
">
<div class="
form
-
group
">
<label class="
control
-
label
col
-
sm
-
3
" for="
name
">Username:</label>
<div class="
col
-
sm
-
5
@
if
(
$errors
->
has
(
'name'
))
has
-
error
@
endif
">
<input type="
text
" class="
form
-
control
" type="
hidden
" id="
name
" name="
name
" placeholder="
Enter
username
">
@if (
$errors->has
('name')) <p class="
help
-
block
">{{
$errors->first
('name') }}</p> @endif
</div>
</div>
</form>
</div>
</div>
</div>
</div>
<script>
$('#myModal').on('shown.bs.modal', function () {
$('#myInput').focus()
})
</script>
@endsection
@endsection
resources/views/vendor/adminlte/layouts/admin/home.blade.php
View file @
f21c6e37
...
@@ -52,19 +52,6 @@
...
@@ -52,19 +52,6 @@
</div>
</div>
</a>
</a>
<a href="
/
requestHomestay
" class="
small
-
box
-
footer
">
<div class="
col
-
lg
-
3
col
-
xs
-
6
">
<div class="
small
-
box
bg
-
green
">
<div class="
inner
">
<h3>
{
{$countP}
}
</h3><br><br>
<p>Pengajuan Homestay <i class="
fa
fa
-
arrow
-
circle
-
right
"></i></p>
</div>
<div class="
icon
">
<i class="
fa
fa
-
list
"></i>
</div>
</div>
</div>
</a>
<a href="
/
listPemesanan
" class="
small
-
box
-
footer
">
<a href="
/
listPemesanan
" class="
small
-
box
-
footer
">
<div class="
col
-
lg
-
3
col
-
xs
-
6
">
<div class="
col
-
lg
-
3
col
-
xs
-
6
">
...
...
resources/views/vendor/adminlte/layouts/admin/listRequestFasilitas.blade.php
View file @
f21c6e37
...
@@ -41,7 +41,6 @@
...
@@ -41,7 +41,6 @@
<td>
<td>
<a href="
{{
url
(
'detailreqFasilitas/'
.
$a
->
id
)}}
" class="
btn
btn
-
primary
"><i class="
fa
fa
-
eye
"></i> </a></td>
<a href="
{{
url
(
'detailreqFasilitas/'
.
$a
->
id
)}}
" class="
btn
btn
-
primary
"><i class="
fa
fa
-
eye
"></i> </a></td>
</td>
</td>
</tr>
</tr>
@endforeach
@endforeach
</table>
</table>
...
@@ -49,4 +48,8 @@
...
@@ -49,4 +48,8 @@
</div>
</div>
</div>
</div>
@endsection
@endsection
resources/views/vendor/adminlte/layouts/admin/resultlistpesanan.blade.php
View file @
f21c6e37
...
@@ -45,8 +45,20 @@
...
@@ -45,8 +45,20 @@
<td>
{
{$a->jumlah_kamar}
}
</td>
<td>
{
{$a->jumlah_kamar}
}
</td>
</tr>
</tr>
@endforeach
@endforeach
@foreach(
$data2
as
$c
)
<tr>
<td>
{
{$c->nama_homestay}
}
</td>
<td>
{
{$c->owner}
}
</td>
<td>
{
{$c->nama_pemesan}
}
</td>
<td>
{
{$c->tanggal_mulai}
}
</td>
<td>
{
{$c->tanggal_berakhir}
}
</td>
<td>
{
{$c->jumlah_kamar}
}
</td>
</tr>
@endforeach
</table>
</table>
</div>
</div>
</div>
</div>
...
...
resources/views/vendor/adminlte/layouts/customers/rincianpemesanan.blade.php
View file @
f21c6e37
resources/views/vendor/adminlte/layouts/owner/AddBookManual.blade.php
View file @
f21c6e37
...
@@ -64,6 +64,24 @@
...
@@ -64,6 +64,24 @@
<input type="
Number
" name="
lama_menginap
" value="" id="
nama
" class="
form
-
control
">
<input type="
Number
" name="
lama_menginap
" value="" id="
nama
" class="
form
-
control
">
</div>
</div>
</div>
</div>
<div class="
form
-
group
">
<label> Jumlah Tamu </label>
<div class="
input
-
group
">
<div class="
input
-
group
-
addon
">
<i class="
fa
fa
-
user
"></i>
</div>
<input type="
Number
" min="
1
" name="
jumlah_tamu
" value="" id="
nama
" class="
form
-
control
">
</div>
</div>
<div class="
form
-
group
">
<label> Extrabed </label>
<div class="
input
-
group
">
<div class="
input
-
group
-
addon
">
<i class="
fa
fa
-
user
"></i>
</div>
<input type="
Number
" min="
0
" name="
extrabed
" value="" id="
nama
" class="
form
-
control
">
</div>
</div>
<div class="
form
-
group
" align="
right
">
<div class="
form
-
group
" align="
right
">
<input type="
submit
" class="
btn
btn
-
primary
" value="
simpan
">
<input type="
submit
" class="
btn
btn
-
primary
" value="
simpan
">
</div>
</div>
...
...
resources/views/vendor/adminlte/layouts/owner/ListBooking.blade.php
View file @
f21c6e37
...
@@ -42,13 +42,21 @@
...
@@ -42,13 +42,21 @@
<td>
{
{$a->tanggal_berakhir}
}
</td>
<td>
{
{$a->tanggal_berakhir}
}
</td>
<td>
{
{$a->jumlah_kamar}
}
</td>
<td>
{
{$a->jumlah_kamar}
}
</td>
<td>
<td>
@if(
$a->status
==0) Pengunjung Belum Check In
@if(
$a->status
==0)
@else
<form action="
{{
url
(
'check/'
.
$a
->
id
)}}
" method="
post
">
<form action="
{{
url
(
'checkout/'
.
$a
->
id
)}}
" method="
post
">
{
{csrf_field()}
}
{
{csrf_field()}
}
<input type="
hidden
" name="
_method
" value="
PUT
">
<input type="
hidden
" name="
_method
" value="
PUT
">
<input type="
text
" hidden name="
id
" value="
1
">
<button type="
submit
" class="
btn
btn
-
succes
"><i class="
fa
fa
-
check
"> Checkin</i></button>
</form>
@elseif(
$a->status
==1)
<form action="
{{
url
(
'check/'
.
$a
->
id
)}}
" method="
post
">
{
{csrf_field()}
}
<input type="
hidden
" name="
_method
" value="
PUT
">
<input type="
text
" hidden name="
id
" value="
2
">
<button type="
submit
" class="
btn
btn
-
info
"><i class="
fa
fa
-
check
"> Checkout</i></button>
<button type="
submit
" class="
btn
btn
-
info
"><i class="
fa
fa
-
check
"> Checkout</i></button>
</form>
</form>
@elseif(
$a->status
== 2) Sudah Checkout
@endif
@endif
</td>
</td>
</tr>
</tr>
...
...
resources/views/vendor/adminlte/layouts/owner/ListPengajuanFasilitas.blade.php
View file @
f21c6e37
...
@@ -30,6 +30,7 @@
...
@@ -30,6 +30,7 @@
<th>Gambar</th>
<th>Gambar</th>
<th>Status</th>
<th>Status</th>
<th>Alasan</th>
<th>Alasan</th>
<th></th>
</tr>
</tr>
@foreach(
$data
as
$a
)
@foreach(
$data
as
$a
)
<tr>
<tr>
...
@@ -51,6 +52,17 @@
...
@@ -51,6 +52,17 @@
<td>
<td>
</td>
</td>
<td>
@if(
$a->notif
==1)
<form action="
{{
url
(
'asread/'
.
$a
->
id
)}}
" method="
post
">
{
{csrf_field()}
}
<input type="
hidden
" name="
_method
" value="
PUT
">
<button type="
submit
" class="
btn
btn
-
info
"><i class="
fa
fa
-
check
"> Sudah Dibaca</i></button>
</form>
@else Sudah Dibaca
@endif
</td>
</tr>
</tr>
@endforeach
@endforeach
</table>
</table>
...
...
resources/views/vendor/adminlte/layouts/owner/Report.blade.php
0 → 100644
View file @
f21c6e37
@
extends
(
'adminlte::layouts.app'
)
@
section
(
'htmlheader_title'
)
{{
trans
(
'adminlte_lang::message.home'
)
}}
@
endsection
@
section
(
'main-content'
)
<
section
class
="
content
">
<!-- Small boxes (Stat box) -->
<div class="
row
">
<form action="
{{
url
(
'report'
)}}
">
<label>Bulan</label>
<input type="
number
" min="
1
" max="
12
" name="
bulan
" >
<input type="
submit
" value="
Cari
" class="
btn
-
btn
info
">
</form>
</div>
@if(
$data
==null)<H2>Data Tidak Ada</H2>
@else
<table class="
table
">
<tr>
<td></td>
<td>Nama Pemesan</td>
<td>Jumlah Kamar</td>
<td>Jumlah Tamu</td>
<td>Lama Menginap</td>
<td>Extrabed</td>
<td>Tanggal Mulai</td>
<td>Tanggal Berakhir</td>
<td>Total Harga</td>
</tr>
@foreach(
$data
as
$a
)
<tr>
<td></td>
<td>
{
{$a->nama_pemesan}
}
</td>
<td>
{
{$a->jumlah_kamar}
}
</td>
<td>
{
{$a->jumlah_tamu}
}
</td>
<td>
{
{$a->lama_menginap}
}
</td>
<td>
{
{$a->extrabed}
}
</td>
<td>
{
{$a->tanggal_mulai}
}
</td>
<td>
{
{$a->tanggal_berakhir}
}
</td>
<td>
{
{$a->total_harga}
}
</td>
</tr>
@endforeach
<tr>
<td>Total</td>
<td></td>
<td></td>
<td>
{
{$jumlahTamu}
}
</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td>
{
{$penghasilan}
}
</td>
</tr>
</table>
@endif
<!-- /.row (main row) -->
</section>
@endsection
resources/views/vendor/adminlte/layouts/owner/home.blade.php
View file @
f21c6e37
...
@@ -56,6 +56,21 @@
...
@@ -56,6 +56,21 @@
</div>
</div>
</a>
</a>
<a href="
/
listPengajuanFasilitas
" class="
small
-
box
-
footer
">
<div class="
col
-
lg
-
3
col
-
xs
-
6
">
<!-- small box -->
<div class="
small
-
box
bg
-
red
">
<div class="
inner
">
<h3>
{
{$countHas}
}
</h3>
<p>Request Fasilitas Notif <i class="
fa
fa
-
arrow
-
circle
-
right
"></i></p>
</div>
<div class="
icon
">
<i class="
fa
fa
-
edit
"></i>
</div>
</div>
</div>
</a>
</div>
</div>
...
...
resources/views/vendor/adminlte/layouts/partials/sidebar.blade.php
View file @
f21c6e37
...
@@ -51,11 +51,12 @@
...
@@ -51,11 +51,12 @@
<i
class=
"fa fa-angle-left pull-right"
></i>
<i
class=
"fa fa-angle-left pull-right"
></i>
</span></a>
</span></a>
<ul
class=
"treeview-menu"
style=
"display : none;"
>
<ul
class=
"treeview-menu"
style=
"display : none;"
>
<li><a
href=
"{{url('pesanan')}}"
><i
class=
'fa fa-list'
></i>
<span>
Pesanan Baru
</span></a></li>
<li><a
href=
"{{url('pesanan')}}"
><i
class=
'fa fa-list'
></i>
<span>
Daftar Transaksi
</span></a></li>
<li><a
href=
"{{url('daftarBooking')}}"
><i
class=
'fa fa-list'
></i>
<span>
Daftar Pesanan
</span></a></li>
<li><a
href=
"{{url('daftarBooking')}}"
><i
class=
'fa fa-list'
></i>
<span>
Daftar Pesanan
</span></a></li>
<li><a
href=
"{{url('AddBook')}}"
><i
class=
'fa fa-plus'
></i>
<span>
Tambah Pesanan Manual
</span></a></li>
<li><a
href=
"{{url('AddBook')}}"
><i
class=
'fa fa-plus'
></i>
<span>
Tambah Pesanan Manual
</span></a></li>
</ul>
</ul>
</li>
</li>
<li><a
href=
"{{url('record')}}"
><i
class=
'fa fa-plus'
></i>
<span>
Laporan
</span></a></li>
@endif
@endif
</ul>
<!-- /.sidebar-menu -->
</ul>
<!-- /.sidebar-menu -->
</section>
</section>
...
...
routes/web.php
View file @
f21c6e37
...
@@ -64,7 +64,10 @@ Route::get('DataPemesanan', function(){
...
@@ -64,7 +64,10 @@ Route::get('DataPemesanan', function(){
});
});
Route
::
group
([
'middleware'
=>
'owner'
],
function
()
{
Route
::
group
([
'middleware'
=>
'owner'
],
function
()
{
Route
::
put
(
'checkout/{id}'
,
'OwnerController@Checkout'
);
Route
::
put
(
'asread/{id}'
,
'OwnerController@Asread'
);
Route
::
get
(
'record'
,
'OwnerController@Record'
);
Route
::
get
(
'report'
,
'OwnerController@Report'
);
Route
::
put
(
'check/{id}'
,
'OwnerController@Check'
);
Route
::
put
(
'editRoom/{id}'
,
'OwnerController@updateRoom'
);
Route
::
put
(
'editRoom/{id}'
,
'OwnerController@updateRoom'
);
Route
::
post
(
'addManual'
,
'OwnerController@addBookManual'
);
Route
::
post
(
'addManual'
,
'OwnerController@addBookManual'
);
Route
::
put
(
'konfirmasiPemesanan/{id}'
,
'OwnerController@konfirmasiPemesanan'
);
Route
::
put
(
'konfirmasiPemesanan/{id}'
,
'OwnerController@konfirmasiPemesanan'
);
...
...
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