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
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
20 deletions
+35
-20
OwnerController.php
app/Http/Controllers/OwnerController.php
+17
-14
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,23 +262,26 @@ class OwnerController extends Controller
...
@@ -262,23 +262,26 @@ class OwnerController extends Controller
$dataHomestay
=
DB
::
table
(
'homestay'
)
$dataHomestay
=
DB
::
table
(
'homestay'
)
->
join
(
'pemilikhomestay'
,
'homestay.id_pemilik'
,
'pemilikhomestay.id'
)
->
join
(
'pemilikhomestay'
,
'homestay.id_pemilik'
,
'pemilikhomestay.id'
)
->
select
(
'homestay.id'
)
->
select
(
'homestay.id'
,
'homestay.jumlah_kamar'
)
->
where
(
'homestay.id_pemilik'
,
'='
,
$dataPemilik
[
0
]
->
id
)
->
where
(
'homestay.id_pemilik'
,
'='
,
$dataPemilik
[
0
]
->
id
)
->
get
();
->
get
();
$lb
->
homestay
=
$dataHomestay
[
0
]
->
id
;
if
(
$dataHomestay
[
0
]
->
jumlah_kamar
<
$request
[
'jumlah_kamar'
]){
$lb
->
nama_pemesan
=
$request
[
'nama'
];
return
redirect
(
'AddBook'
)
->
with
(
'message'
,
'Maaf jumlah kamar tidak mencukupi'
);
$lb
->
jumlah_kamar
=
$request
[
'jumlah_kamar'
];
}
else
{
$lb
->
tanggal_mulai
=
$request
[
'tanggal_mulai'
];
$lb
->
homestay
=
$dataHomestay
[
0
]
->
id
;
$time
=
explode
(
'-'
,
$request
[
'tanggal_mulai'
]);
$lb
->
nama_pemesan
=
$request
[
'nama'
];
$time
[
2
]
+=
$request
[
'jumlah_hari'
];
$lb
->
jumlah_kamar
=
$request
[
'jumlah_kamar'
];
$baru
=
join
(
'-'
,
$time
);
$lb
->
tanggal_mulai
=
$request
[
'tanggal_mulai'
];
$lb
->
tanggal_berakhir
=
$baru
;
$time
=
explode
(
'-'
,
$request
[
'tanggal_mulai'
]);
$time
[
2
]
+=
$request
[
'jumlah_hari'
];
$lb
->
save
();
$baru
=
join
(
'-'
,
$time
);
$lb
->
tanggal_berakhir
=
$baru
;
return
redirect
(
'daftarBooking'
);
$lb
->
save
();
return
redirect
(
'daftarBooking'
);
}
}
}
//Melakukan Update Kamar
//Melakukan Update Kamar
...
...
resources/views/vendor/adminlte/layouts/customers/History.blade.php
View file @
58e98932
...
@@ -11,8 +11,9 @@
...
@@ -11,8 +11,9 @@
<th> Total Pembayaran </th>
<th> Total Pembayaran </th>
<th> Bukti Pembayaran </th>
<th> Bukti Pembayaran </th>
<th> Status Pemesanan</th>
<th> Status Pemesanan</th>
<th> Unggah Pembayaran </th>
<th></th>
<th> Bataklan Pesanan </th>
<th></th>
<th></th>
</tr>
</tr>
</thead>
</thead>
<tbody>
<tbody>
...
@@ -41,15 +42,21 @@
...
@@ -41,15 +42,21 @@
{
{csrf_field()}
}
{
{csrf_field()}
}
</form>
</form>
</td>
</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)
@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)
@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)
@elseif(
$a->status
=3)
<td colspan="
3
"><h
3>Telah Dibatalkan</h3
></td>
<td colspan="
3
"><h
4>Telah Dibatalkan</h4
></td>
@endif
@endif
</td>
</td>
</tr>
</tr>
@endforeach
@endforeach
</tbody>
</tbody>
...
...
resources/views/vendor/adminlte/layouts/owner/AddBookManual.blade.php
View file @
58e98932
...
@@ -18,6 +18,11 @@
...
@@ -18,6 +18,11 @@
</ul>
</ul>
</div>
</div>
@endif
@endif
@if(session()->has('message'))
<div class="
alert
alert
-
info
">
{
{session()->get('message')}
}
</div>
@endif
</div>
</div>
<div class="
box
-
body
">
<div class="
box
-
body
">
<form action="
{{
url
(
'addManual'
)}}
" method="
post
">
<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