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
0c3bf67b
Commit
0c3bf67b
authored
Jun 15, 2017
by
Juliper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
63c10513
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
126 additions
and
5 deletions
+126
-5
AdminController.php
app/Http/Controllers/AdminController.php
+35
-2
OwnerController.php
app/Http/Controllers/OwnerController.php
+8
-0
bukti-transfer-ke-rekening-nikita.jpg
public/img/bukti-transfer-ke-rekening-nikita.jpg
+0
-0
download (1).jpg
public/img/download (1).jpg
+0
-0
PengajuanHomestay.blade.php
...vendor/adminlte/layouts/admin/PengajuanHomestay.blade.php
+62
-0
addOwner.blade.php
...es/views/vendor/adminlte/layouts/admin/addOwner.blade.php
+16
-1
ListPengajuanFasilitas.blade.php
...r/adminlte/layouts/owner/ListPengajuanFasilitas.blade.php
+1
-1
web.php
routes/web.php
+4
-1
No files found.
app/Http/Controllers/AdminController.php
View file @
0c3bf67b
...
...
@@ -289,9 +289,42 @@ class AdminController extends Controller
$owner
->
no_rekening
=
'--'
;
$owner
->
foto
=
'gravatar.png'
;
$owner
->
save
();
return
redirect
(
url
(
'admin/create'
))
->
with
(
'info'
,
'User berhasil ditambah '
);
$dataOnwer
=
DB
::
table
(
'pemilikhomestay'
)
->
select
(
'pemilikhomestay.id'
)
->
where
(
'pemilikhomestay.id_akun'
,
'='
,
$dataPemilik
[
0
]
->
id
)
->
get
();
$homestay
=
new
Homestay
();
$homestay
->
id_pemilik
=
$dataOnwer
[
0
]
->
id
;
$homestay
->
nama_homestay
=
$data
[
'nama_homestay'
];
$homestay
->
owner
=
$data
[
'name'
];
$homestay
->
alamat
=
"---"
;
$homestay
->
jumlah_kamar
=
$data
[
'jumlah_kamar'
];
$homestay
->
harga
=
150000
;
$homestay
->
fasilitas
=
"---"
;
$homestay
->
gambar
=
"---"
;
$homestay
->
status
=
"---"
;
$homestay
->
save
();
$idHts
=
DB
::
table
(
'homestay'
)
->
select
(
'homestay.*'
)
->
where
(
'homestay.id_pemilik'
,
'='
,
$dataOnwer
[
0
]
->
id
)
->
get
();
for
(
$i
=
1
;
$i
<=
$data
[
'jumlah_kamar'
];
$i
++
){
$km
=
new
Room
();
$km
->
id_homestay
=
$idHts
[
0
]
->
id
;
$km
->
nomor_kamar
=
$i
;
$km
->
jumlah_bed
=
2
;
$km
->
save
();
}
return
view
(
'adminlte::layouts.admin.addOwner'
)
->
with
(
'message'
,
'User berhasil ditambah'
);
}
//Menampilkan Daftar RequestHomestay
...
...
app/Http/Controllers/OwnerController.php
View file @
0c3bf67b
...
...
@@ -79,6 +79,14 @@ class OwnerController extends Controller
return
view
(
'adminlte::layouts.owner.Report'
)
->
with
(
'data'
,
$data
);
}
public
function
Asread
(
Request
$request
,
$id
){
$req
=
RequestFasilitas
::
find
(
$id
);
$req
->
notif
=
2
;
$req
->
update
();
return
redirect
(
'listPengajuanFasilitas'
);
}
public
function
pesanan
(
$id
){
$dataTrans
=
DB
::
table
(
'transaksi'
)
->
join
(
'pelanggan'
,
'transaksi.id_pelanggan'
,
'='
,
'pelanggan.id'
)
...
...
public/img/bukti-transfer-ke-rekening-nikita.jpg
0 → 100644
View file @
0c3bf67b
47 KB
public/img/download (1).jpg
0 → 100644
View file @
0c3bf67b
3.06 KB
resources/views/vendor/adminlte/layouts/admin/PengajuanHomestay.blade.php
0 → 100644
View file @
0c3bf67b
@
extends
(
'adminlte::layouts.app'
)
@
section
(
'htmlheader_title'
)
{{
trans
(
'adminlte_lang::message.home'
)
}}
@
endsection
@
section
(
'main-content'
)
<
div
class
="
box
box
-
primary
">
<div class="
box
-
header
with
-
border
">
<h3 class="
box
-
title
">HOMESTAY </h3>
@if (count(
$errors
) > 0)
<div class="
alert
alert
-
danger
">
<strong>Whoops!</strong> {{ trans('adminlte_lang::message.someproblems') }}<br><br>
<ul>
@foreach (
$errors->all
() as
$error
)
<li>{{
$error
}}</li>
@endforeach
</ul>
</div>
@endif
</div>
@if(Session::has('message'))
<div class="
alert
alert
-
danger
">
{{ Session::get('message') }}
</div>
@endif
<div class="
box
-
body
">
<form action="
{{
url
(
'pengajuanHomestay'
)
}}
" method="
post
">
<input type="
hidden
" name="
_token
" value="
{{
csrf_token
()
}}
">
<div class="
form
-
group
">
<label> Nama Homestay </label>
<div class="
input
-
group
">
<div class="
input
-
group
-
addon
">
<i class="
fa
fa
-
bookmark
"></i>
</div>
<input type="
text
" class="
form
-
control
" placeholder="
Nama
Homestay
" name="
namaHomestay
"/>
</div>
</div>
<div class="
form
-
group
">
<label>Jumlah Kamar </label>
<div class="
input
-
group
">
<div class="
input
-
group
-
addon
">
<i class="
fa
fa
-
bed
"></i>
</div>
<input type="
Number
" class="
form
-
control
" placeholder="
Jumlah
Kamar
" name="
jumlahKamar
" >
</div>
</div>
<br>
<div class="
form
-
group
" align="
right
" style="
color
:
black
;
">
<button type="
submit
" class="
btn
btn
-
primary
">Ajukan</button>
</div>
</form>
</div>
</div>
@endsection
resources/views/vendor/adminlte/layouts/admin/addOwner.blade.php
View file @
0c3bf67b
...
...
@@ -20,6 +20,13 @@
@endforeach
</ul>
</div>
@if(session()->has('message'))
<div class="
alert
alert
-
info
">
{
{session()->get('message')}
}
</div>
@endif
@endif
<div class="
register
-
box
-
body
">
<form action="
{{
url
(
'admin'
)
}}
" method="
post
">
...
...
@@ -45,7 +52,15 @@
<span class="
glyphicon
glyphicon
-
log
-
in
form
-
control
-
feedback
"></span>
</div>
<div class="
form
-
group
has
-
feedback
">
<input value="
Owner
" type="
text
" class="
form
-
control
" placeholder="
{{
trans
(
'adminlte_lang::message.role'
)
}}
" name="
role
" disabled/>
<input value="
Owner
" hidden type="
text
" placeholder="
{{
trans
(
'adminlte_lang::message.role'
)
}}
" name="
role
"/>
<span class="
glyphicon
glyphicon
-
wrench
form
-
control
-
feedback
"></span>
</div>
<div class="
form
-
group
has
-
feedback
">
<input class="
form
-
control
" type="
text
" placeholder="
Nama
Homestay
" name="
nama_homestay
"/>
<span class="
glyphicon
glyphicon
-
wrench
form
-
control
-
feedback
"></span>
</div>
<div class="
form
-
group
has
-
feedback
">
<input value="
Owner
" class="
form
-
control
" type="
number
" placeholder="
Jumlah
Kamar
" name="
jumlah_kamar
"/>
<span class="
glyphicon
glyphicon
-
wrench
form
-
control
-
feedback
"></span>
</div>
<div class="
row
">
...
...
resources/views/vendor/adminlte/layouts/owner/ListPengajuanFasilitas.blade.php
View file @
0c3bf67b
...
...
@@ -60,7 +60,7 @@
<button type="
submit
" class="
btn
btn
-
info
"><i class="
fa
fa
-
check
"> Sudah Dibaca</i></button>
</form>
@else Sudah Dibaca
@else
if(
$a->notif
== 2)
Sudah Dibaca
@endif
</td>
</tr>
...
...
routes/web.php
View file @
0c3bf67b
...
...
@@ -135,7 +135,7 @@ Route::group(['middleware' => 'dinaspariwisata'], function () {
Route
::
get
(
'requestFasilitas'
,
'AdminController@RequestFasilitas'
);
Route
::
put
(
'requestFasilitas/{id}'
,
'AdminController@UpdateRequestFasilitas'
);
Route
::
put
(
'requestFasilitass/{id}'
,
'AdminController@UpdateRequestFasilitass'
);
Route
::
put
(
'
listPengajuanHomestay/{id}'
,
'AdminController@Acc
PengajuanHomestay'
);
Route
::
put
(
'
PengajuanHomestay'
,
'AdminController@
PengajuanHomestay'
);
Route
::
put
(
'listPengajuanHmsty/{id}'
,
'AdminController@RejectPengajuanHomestay'
);
Route
::
get
(
'ownerprofil/{id}'
,
'AdminController@profileowner'
);
Route
::
get
(
'Allfeedback'
,
'AdminController@Allfeedback'
);
...
...
@@ -146,4 +146,7 @@ Route::group(['middleware' => 'dinaspariwisata'], function () {
Route
::
get
(
'resultlistpesanan'
,
'AdminController@listhomestay'
);
Route
::
get
(
'printFasilitas/{id}'
,
'AdminController@printFasilitas'
);
Route
::
post
(
'/cancelrequest'
,
'AdminController@cancelrequest'
);
Route
::
get
(
'admin/create'
,
'AdminController@create'
);
});
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