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
58e98932
Commit
58e98932
authored
Jun 11, 2017
by
Juliper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
68ed2296
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
8 deletions
+23
-8
OwnerController.php
app/Http/Controllers/OwnerController.php
+5
-2
History.blade.php
...views/vendor/adminlte/layouts/customers/History.blade.php
+13
-6
AddBookManual.blade.php
...ews/vendor/adminlte/layouts/owner/AddBookManual.blade.php
+5
-0
No files found.
app/Http/Controllers/OwnerController.php
View file @
58e98932
...
...
@@ -262,10 +262,13 @@ class OwnerController extends Controller
$dataHomestay
=
DB
::
table
(
'homestay'
)
->
join
(
'pemilikhomestay'
,
'homestay.id_pemilik'
,
'pemilikhomestay.id'
)
->
select
(
'homestay.id'
)
->
select
(
'homestay.id'
,
'homestay.jumlah_kamar'
)
->
where
(
'homestay.id_pemilik'
,
'='
,
$dataPemilik
[
0
]
->
id
)
->
get
();
if
(
$dataHomestay
[
0
]
->
jumlah_kamar
<
$request
[
'jumlah_kamar'
]){
return
redirect
(
'AddBook'
)
->
with
(
'message'
,
'Maaf jumlah kamar tidak mencukupi'
);
}
else
{
$lb
->
homestay
=
$dataHomestay
[
0
]
->
id
;
$lb
->
nama_pemesan
=
$request
[
'nama'
];
$lb
->
jumlah_kamar
=
$request
[
'jumlah_kamar'
];
...
...
@@ -278,7 +281,7 @@ class OwnerController extends Controller
$lb
->
save
();
return
redirect
(
'daftarBooking'
);
}
}
//Melakukan Update Kamar
...
...
resources/views/vendor/adminlte/layouts/customers/History.blade.php
View file @
58e98932
...
...
@@ -11,8 +11,9 @@
<th> Total Pembayaran </th>
<th> Bukti Pembayaran </th>
<th> Status Pemesanan</th>
<th> Unggah Pembayaran </th>
<th> Bataklan Pesanan </th>
<th></th>
<th></th>
<th></th>
</tr>
</thead>
<tbody>
...
...
@@ -41,15 +42,21 @@
{
{csrf_field()}
}
</form>
</td>
<td>
<form action="" method="
post
">
<input type="
hidden
" name="
_method
" value="
PUT
">
{
{csrf_field()}
}
<input type="
submit
" value="
Perbaharui
">
</form>
</td>
@elseif(
$a->status
==1)
<td colspan="
3
"><h
3>Di Terima</h3
></td>
<td colspan="
3
"><h
4>Di Terima</h4
></td>
@elseif(
$a->status
==2)
<td colspan="
3
"><h
3>Di Tolak</h3
></td>
<td colspan="
3
"><h
4>Di Tolak</h4
></td>
@elseif(
$a->status
=3)
<td colspan="
3
"><h
3>Telah Dibatalkan</h3
></td>
<td colspan="
3
"><h
4>Telah Dibatalkan</h4
></td>
@endif
</td>
</tr>
@endforeach
</tbody>
...
...
resources/views/vendor/adminlte/layouts/owner/AddBookManual.blade.php
View file @
58e98932
...
...
@@ -18,6 +18,11 @@
</ul>
</div>
@endif
@if(session()->has('message'))
<div class="
alert
alert
-
info
">
{
{session()->get('message')}
}
</div>
@endif
</div>
<div class="
box
-
body
">
<form action="
{{
url
(
'addManual'
)}}
" method="
post
">
...
...
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