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
db4d4ee4
Commit
db4d4ee4
authored
7 years ago
by
Juliper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
controller again
parent
c195b22e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
OwnerController.php
app/Http/Controllers/OwnerController.php
+4
-3
AddBookManual.blade.php
...ews/vendor/adminlte/layouts/owner/AddBookManual.blade.php
+4
-6
web.php
routes/web.php
+1
-0
No files found.
app/Http/Controllers/OwnerController.php
View file @
db4d4ee4
...
...
@@ -21,7 +21,8 @@ class OwnerController extends Controller
}
public
function
addBook
(
Request
$request
){
public
function
addBookManual
(
Request
$request
){
$lb
=
new
ListBook
();
$dataPemilik
=
DB
::
table
(
'pemilikhomestay'
)
...
...
@@ -32,9 +33,9 @@ class OwnerController extends Controller
$dataHomestay
=
DB
::
table
(
'homestay'
)
->
join
(
'pemilikhomestay'
,
'homestay.idPemilik'
,
'pemilikhomestay.id'
)
->
select
(
'homestay.id'
)
->
where
(
'homestay.id
_Akun
'
,
'='
,
$dataPemilik
[
0
]
->
id
)
->
where
(
'homestay.id
Pemilik
'
,
'='
,
$dataPemilik
[
0
]
->
id
)
->
get
();
dd
(
$dataHomestay
);
$lb
->
homestay
;
$lb
->
nama_pemesan
;
$lb
->
jumlah_kamar
;
...
...
This diff is collapsed.
Click to expand it.
resources/views/vendor/adminlte/layouts/owner/AddBookManual.blade.php
View file @
db4d4ee4
...
...
@@ -20,10 +20,8 @@
@endif
</div>
<div class="
box
-
body
">
<form action="" method="
post
" enctype="
multipart
/
form
-
data
">
<input type="
hidden
" name="
_method
" value="
PUT
">
<!--
{
{csrf_field()}
}
-->
<form action="
{{
url
(
'addManual'
)}}
" method="
post
">
<input type="
hidden
" name="
_token
" value="
{{
csrf_token
()
}}
">
<div class="
form
-
group
">
<label> Nama Pemesan </label>
<div class="
input
-
group
">
...
...
@@ -40,7 +38,7 @@
<div class="
input
-
group
-
addon
">
<i class="
fa
fa
-
user
"></i>
</div>
<input type="
text
" name="
kamar
" value="" id="
kamar
" class="
form
-
control
">
<input type="
text
" name="
jumlah_
kamar
" value="" id="
kamar
" class="
form
-
control
">
</div>
</div>
...
...
@@ -62,7 +60,7 @@
<div class="
input
-
group
-
addon
">
<i class="
fa
fa
-
user
"></i>
</div>
<input type="
text
" name="
nama
" value="" id="
nama
" class="
form
-
control
">
<input type="
text
" name="
lama_menginap
" value="" id="
nama
" class="
form
-
control
">
</div>
</div>
...
...
This diff is collapsed.
Click to expand it.
routes/web.php
View file @
db4d4ee4
...
...
@@ -57,6 +57,7 @@ Route::get('DataPemesanan', function(){
Route
::
get
(
'listPemesanan'
,
'AdminController@listPesanan'
);
Route
::
put
(
'editRoom/{id}'
,
'OwnerController@updateRoom'
);
Route
::
post
(
'addManual'
,
'OwnerController@addBookManual'
);
Route
::
get
(
'editRoom/{id}'
,
'OwnerController@editRoom'
)
;
Route
::
get
(
'daftarKamar'
,
'OwnerController@daftarKamar'
);
...
...
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