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
1da81d7c
Commit
1da81d7c
authored
Jun 13, 2017
by
Palti Sinaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
3664c6aa
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
96 additions
and
35 deletions
+96
-35
CustomerController.php
app/Http/Controllers/CustomerController.php
+2
-1
OwnerController.php
app/Http/Controllers/OwnerController.php
+16
-0
detailpesanan.blade.php
...ews/vendor/adminlte/layouts/owner/detailpesanan.blade.php
+47
-0
listPesanan.blade.php
...views/vendor/adminlte/layouts/owner/listPesanan.blade.php
+18
-5
Homestay.blade.php
...es/views/vendor/adminlte/layouts/pages/Homestay.blade.php
+12
-2
web.php
routes/web.php
+1
-27
No files found.
app/Http/Controllers/CustomerController.php
View file @
1da81d7c
...
@@ -24,7 +24,6 @@ use Nexmo\Laravel\Facade\Nexmo;
...
@@ -24,7 +24,6 @@ use Nexmo\Laravel\Facade\Nexmo;
class
CustomerController
extends
Controller
class
CustomerController
extends
Controller
{
{
public
function
__construct
(){
public
function
__construct
(){
$this
->
middleware
(
'customer'
);
$this
->
middleware
(
'customer'
);
}
}
...
@@ -310,6 +309,8 @@ class CustomerController extends Controller
...
@@ -310,6 +309,8 @@ class CustomerController extends Controller
//Melakukan Pembookingan Homestay
//Melakukan Pembookingan Homestay
public
function
booking
(
Request
$request
){
public
function
booking
(
Request
$request
){
$this
->
validate
(
$request
,[
$this
->
validate
(
$request
,[
'tanggal'
=>
'required'
,
'tanggal'
=>
'required'
,
'jumlah_hari'
=>
'required|numeric'
,
'jumlah_hari'
=>
'required|numeric'
,
...
...
app/Http/Controllers/OwnerController.php
View file @
1da81d7c
...
@@ -23,6 +23,22 @@ class OwnerController extends Controller
...
@@ -23,6 +23,22 @@ class OwnerController extends Controller
$this
->
middleware
(
'owner'
);
$this
->
middleware
(
'owner'
);
}
}
public
function
detailpesanan
(
$id
){
//dd($id);
$dataTrans
=
DB
::
table
(
'transaksi'
)
->
join
(
'pelanggan'
,
'transaksi.id_pelanggan'
,
'='
,
'pelanggan.id'
)
->
select
(
'transaksi.tanggal_mulai'
,
'transaksi.tanggal_berakhir'
,
'transaksi.jumlah_kamar'
,
'pelanggan.nama'
,
'pelanggan.no_telepon'
)
->
where
(
'transaksi.id'
,
'='
,
$id
)
->
get
();
//dd($dataTrans);
return
view
(
'adminlte::layouts.owner.detailpesanan'
)
->
with
(
'data'
,
$dataTrans
[
0
]);
}
public
function
index
()
public
function
index
()
{
{
$dataPel
=
DB
::
table
(
'pemilikhomestay'
)
$dataPel
=
DB
::
table
(
'pemilikhomestay'
)
...
...
resources/views/vendor/adminlte/layouts/owner/detailpesanan.blade.php
0 → 100644
View file @
1da81d7c
@
extends
(
'adminlte::layouts.app'
)
@
section
(
'htmlheader_title'
)
{{
trans
(
'adminlte_lang::message.home'
)
}}
@
endsection
@
section
(
'main-content'
)
<
div
class
="
box
box
-
info
">
<div class="
box
-
header
with
-
border
">
<h3 class="
box
-
title
"> DETAIL PESANAN </h3>
@if(Session::has('alert-success'))
<div class="
alert
alert
-
success
">
{{ Session::get('alert-success') }}
</div>
@endif
@if (count(
$errors
) > 0)
<div class="
alert
alert
-
danger
">
<ul>
@foreach (
$errors->all
() as
$error
)
<li>{{
$error
}}</li>
@endforeach
</ul>
</div>
@endif
</div>
<div class="
box
-
body
">
<table class="
table
table
-
user
-
information
">
<tr>
<th>Nama </th>
<td>: </td>
<td>
{
{$data->nama}
}
</td>
</tr>
<tr>
<th>No Telepon</th>
<td>: </td>
<td>
{
{$data->no_telepon}
}
</td>
</tr>
</table>
</div>
<div class="
box
-
footer
">
</div>
</div>
@endsection
resources/views/vendor/adminlte/layouts/owner/listPesanan.blade.php
View file @
1da81d7c
...
@@ -24,6 +24,7 @@
...
@@ -24,6 +24,7 @@
</div>
</div>
@endif
@endif
</div>
</div>
<div class="
box
-
body
">
<div class="
box
-
body
">
<div class="
col
-
md
-
4
col
-
sm
-
6
col
-
xs
-
12
">
<div class="
col
-
md
-
4
col
-
sm
-
6
col
-
xs
-
12
">
...
@@ -34,34 +35,39 @@
...
@@ -34,34 +35,39 @@
<tr>
<tr>
<th>Nama Pelanggan</th>
<th>Nama Pelanggan</th>
<th>Nomor Telepon</th>
<th>Nomor Telepon</th>
<th>Pekerjaan</th>
<th>Tanggal Mulai</th>
<th>Tanggal Mulai</th>
<th>Tanggal Berakhir</th>
<th>Tanggal Berakhir</th>
<th>Lama Menginap</th>
<th>Lama Menginap</th>
<th>Jumlah Kamar</th>
<th>Jumlah Kamar</th>
<th>Bukti Pembayaran</th>
<th>Bukti Pembayaran</th>
<th>Download </th>
<th colspan="
3
" style="
position
:
center
;
">Status</th>
<th colspan="
3
" style="
position
:
center
;
">Status</th>
<th></th>
</tr>
</tr>
@foreach(
$data
as
$a
)
@foreach(
$data
as
$a
)
<tr>
<tr>
<td>
{
{$a->nama}
}
</td>
<td>
{
{$a->nama}
}
</td>
<td>
{
{$a->alamat}
}
</td>
<td>
{
{$a->no_telepon}
}
</td>
<td>
{
{$a->no_telepon}
}
</td>
<td>
{
{$a->tanggal_mulai}
}
</td>
<td>
{
{$a->tanggal_mulai}
}
</td>
<td>
{
{$a->tanggal_berakhir}
}
</td>
<td>
{
{$a->tanggal_berakhir}
}
</td>
<td>
{
{$a->lama_menginap}
}
Hari</td>
<td>
{
{$a->lama_menginap}
}
Hari</td>
<td>
{
{$a->jumlah_kamar}
}
</td>
<td>
{
{$a->jumlah_kamar}
}
</td>
<td> <a href="
{{
url
(
'detailpesanan/'
.
$a
->
id
)}}
" class="
btn
btn
-
primary
"><i class="
glyphicon
glyphicon
-
edit
"></i> </a></a></td>
<td>
<td>
@if(
$a->bukti_pembayaran
==null)
@if(
$a->bukti_pembayaran
==null)
Bukti pembayaran tidak ada
Bukti pembayaran tidak ada
@else
@else
<
img src="
/
img
/
{{
$a
->
bukti_pembayaran
}}
" style="
width
:
100
px
" alt="
User
Image
" onclick="
document
.
getElementById
(
'modal'
)
.
style
.
display
=
'block'
"/
>
<
a href="
/
img
/
{{
$a
->
bukti_pembayaran
}}
" alt="
Bukti
Pembayaran
" data-lightbox="
roadtrip
"><img src="
/
img
/
{{
$a
->
bukti_pembayaran
}}
" style="
max
-
height
:
150
px
;
width
:
200
px
;
"></a
>
@endif
@endif
</td>
</td>
<td>
@if(
$a->bukti_pembayaran
==null)
@else
<a id="
download
" href="
/
img
/
{{
$a
->
bukti_pembayaran
}}
" download="
/
img
/
{{
$a
->
bukti_pembayaran
}}
" class="
btn
btn
-
danger
"><i class="
fa
fa
-
download
"></i> Download</a>
@endif
</td>
<td>
<td>
@if(
$a->status
==0)
@if(
$a->status
==0)
<td>
<td>
...
@@ -84,10 +90,17 @@
...
@@ -84,10 +90,17 @@
@endif
@endif
</td>
</td>
</td>
</td>
</tr>
</tr>
@endforeach
@endforeach
</table>
</table>
{!!
$data->render
() !!}
{!!
$data->render
() !!}
</div>
</div>
</div>
</div>
<script type="
text
/
javascript
">
document.getElementById("
download
").setAttribute("
download
", "
bukti
pembayaran_
{{
$a
->
nama
}}
.
jpg
")
</script>
@endsection
@endsection
resources/views/vendor/adminlte/layouts/pages/Homestay.blade.php
View file @
1da81d7c
...
@@ -149,7 +149,6 @@
...
@@ -149,7 +149,6 @@
@endforeach
@endforeach
<div class="
clearfix
"></div>
<div class="
clearfix
"></div>
<!--Homestay pict -->
<!--Homestay pict -->
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -169,9 +168,20 @@
...
@@ -169,9 +168,20 @@
</div>
</div>
</div>
</div>
</div>
</div>
<!-- //Kritik & Saran -->
<!-- //Kritik & Saran -->
<div class="
cuisines
agileits
w3layouts
">
<div class="
container
">
<div class="
col
-
md
-
6
col
-
sm
-
6
cuisines
-
grids
agileits
w3layouts
cuisines
-
grids
-
1
">
<h3 style="
margin
-
bottom
:
0
px
;
font
-
weight
:
10
px
;
"> Review Pengunjung </h3>
<img style="
width
:
450
px
;
margin
-
top
:
3
px
;
" src="
{{
asset
(
'img/line1.png'
)}}
"><br>
DISINI REVIEW
</div>
</div>
</div>
<!-- //Informations -->
<!-- Scripts -->
<!-- Scripts -->
<!-- Date-Picker-JavaScript -->
<!-- Date-Picker-JavaScript -->
<script src="
{{
asset
(
'js/jquery-ui.js'
)}}
"></script>
<script src="
{{
asset
(
'js/jquery-ui.js'
)}}
"></script>
...
...
routes/web.php
View file @
1da81d7c
...
@@ -85,7 +85,7 @@ Route::group(['middleware' => 'owner'], function () {
...
@@ -85,7 +85,7 @@ Route::group(['middleware' => 'owner'], function () {
Route
::
get
(
'listPengajuanFasilitas'
,
'OwnerController@listPengajuanFasilitas'
);
Route
::
get
(
'listPengajuanFasilitas'
,
'OwnerController@listPengajuanFasilitas'
);
Route
::
get
(
'listFeedback'
,
'OwnerController@feddback'
);
Route
::
get
(
'listFeedback'
,
'OwnerController@feddback'
);
Route
::
get
(
'home'
,
'OwnerController@index'
);
Route
::
get
(
'home'
,
'OwnerController@index'
);
Route
::
get
(
'detailpesanan/{id}'
,
'OwnerController@detailpesanan'
);
});
});
Route
::
get
(
'detailhomestay/{id}'
,
'GuestController@detailhomestay'
);
Route
::
get
(
'detailhomestay/{id}'
,
'GuestController@detailhomestay'
);
...
@@ -122,29 +122,3 @@ Route::group(['middleware' => 'dinaspariwisata'], function () {
...
@@ -122,29 +122,3 @@ Route::group(['middleware' => 'dinaspariwisata'], function () {
Route
::
put
(
'listPengajuanHmsty/{id}'
,
'AdminController@RejectPengajuanHomestay'
);
Route
::
put
(
'listPengajuanHmsty/{id}'
,
'AdminController@RejectPengajuanHomestay'
);
Route
::
get
(
'ownerprofil/{id}'
,
'AdminController@profileowner'
);
Route
::
get
(
'ownerprofil/{id}'
,
'AdminController@profileowner'
);
});
});
Route
::
get
(
'howtobook'
,
function
(){
return
view
(
'howtobook'
);
});
Route
::
get
(
'gallery'
,
function
(){
return
view
(
'gallery'
);
});
Route
::
get
(
'gallerrry'
,
function
(){
return
view
(
'media_gallery'
);
});
/*Route::get('UpdateHomestay', function(){
return view('adminlte::layouts.owner.UpdateHomestay');
});*/
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