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
ee56e846
Commit
ee56e846
authored
Jun 14, 2017
by
Palti Sinaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
87654321
parent
a4a2a089
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
143 additions
and
11 deletions
+143
-11
AdminController.php
app/Http/Controllers/AdminController.php
+5
-6
CustomerController.php
app/Http/Controllers/CustomerController.php
+8
-3
rincianpemesanan.blade.php
resources/views/rincianpemesanan.blade.php
+1
-0
rincianpemesanan.blade.php
...dor/adminlte/layouts/customers/rincianpemesanan.blade.php
+123
-0
Home.blade.php
resources/views/vendor/adminlte/layouts/pages/Home.blade.php
+2
-1
detilSHomestay.blade.php
...ws/vendor/adminlte/layouts/pages/detilSHomestay.blade.php
+2
-1
web.php
routes/web.php
+2
-0
No files found.
app/Http/Controllers/AdminController.php
View file @
ee56e846
...
@@ -60,13 +60,12 @@ class AdminController extends Controller
...
@@ -60,13 +60,12 @@ class AdminController extends Controller
public
function
listhomestay
()
public
function
listhomestay
()
{
{
$data
=
DB
::
table
(
'homestay'
)
$data
=
DB
::
table
(
'homestay'
)
->
get
();
->
get
();
return
view
(
'adminlte::layouts.admin.listhomestay'
)
->
with
(
'data'
,
$data
);
return
view
(
'adminlte::layouts.admin.listhomestay'
)
->
with
(
'data'
,
$data
);
}
}
return
view
(
'adminlte::layouts.admin.listhomestay'
)
->
with
(
'data'
,
$data
);
}
public
function
cariPesanan
(
Request
$request
){
public
function
cariPesanan
(
Request
$request
){
...
...
app/Http/Controllers/CustomerController.php
View file @
ee56e846
...
@@ -28,6 +28,11 @@ class CustomerController extends Controller
...
@@ -28,6 +28,11 @@ class CustomerController extends Controller
$this
->
middleware
(
'customer'
);
$this
->
middleware
(
'customer'
);
}
}
public
function
rincianpemesanan
(){
return
view
(
'adminlte::layouts.customers.rincianpemesanan'
);
}
//Pembatalan Pemesanan/Pembookingan Homestay
//Pembatalan Pemesanan/Pembookingan Homestay
public
function
cancelPemesanan
(
$id
){
public
function
cancelPemesanan
(
$id
){
...
@@ -173,9 +178,9 @@ class CustomerController extends Controller
...
@@ -173,9 +178,9 @@ class CustomerController extends Controller
$transaksi
->
tanggal_mulai
=
$request
[
'tanggal'
];
$transaksi
->
tanggal_mulai
=
$request
[
'tanggal'
];
$transaksi
->
tanggal_berakhir
=
$baru
;
$transaksi
->
tanggal_berakhir
=
$baru
;
$transaksi
->
jumlah_kamar
=
$request
[
'jumlah_kamar'
];
$transaksi
->
jumlah_kamar
=
$request
[
'jumlah_kamar'
];
$transaksi
->
total_pembayaran
=
$request
[
'jumlah_kamar'
]
*
$dataHomestay
[
0
]
->
harga
;
$transaksi
->
total_pembayaran
=
$request
[
'jumlah_kamar'
]
*
$dataHomestay
[
0
]
->
harga
;
//dd($transaksi->total_pembayaran,$dataHomestay[0]->harga);
//dd($transaksi->total_pembayaran,$dataHomestay[0]->harga);
$df
=
DB
::
table
(
'daftar_book'
)
$df
=
DB
::
table
(
'daftar_book'
)
->
where
(
'daftar_book.id_transaksi'
,
'='
,
$id
)
->
where
(
'daftar_book.id_transaksi'
,
'='
,
$id
)
->
get
();
->
get
();
...
...
resources/views/rincianpemesanan.blade.php
0 → 100644
View file @
ee56e846
@
extends
(
'adminlte::layouts.pages.rincianpemesanan'
)
resources/views/vendor/adminlte/layouts/customers/rincianpemesanan.blade.php
0 → 100644
View file @
ee56e846
@
extends
(
'adminlte::layouts.master'
)
@
section
(
'main-content'
)
<
div
class
="
cuisines
agileits
w3layouts
" style="
padding
-
top
:
50
px
;
margin
-
top
:
70
px
;
">
<div class="
container
">
<div class="
col
-
md
-
6
col
-
sm
-
6
cuisines
-
grids
agileits
w3layouts
" style="
padding
:
0
px
;
">
<h3>Data Pemesanan Homestay</h3> <br>
<!-- <h3 style="
margin
-
left
:
60
px
;
margin
-
top
:
3
px
;
">
{
{Auth::user()->name}
}
</h2> -->
<form class="
form
-
horizontal
" action="" method="
post
" enctype="
multipart
/
form
-
data
">
<input type="
hidden
" name="
_method
" value="
PUT
">
{
{csrf_field()}
}
<div class="
form
-
group
">
<div class="
col
-
sm
-
10
">
<label for="">Nama</label>
<input type="
text
" name="
nama
" class="
form
-
control
" id="
inputEmail3
" value="">
</div>
</div>
<div class="
form
-
group
">
<div class="
col
-
sm
-
5
">
<label>Nomor Handphone Kontak</label>
<input type="
text
" name="
nama
" class="
form
-
control
" id="
inputEmail3
" value="
">
</div>
<div class="
col
-
sm
-
5
">
<label>Alamat Email Kontak</label>
<input type="
text
" name="
nama
" class="
form
-
control
" id="
inputEmail3
" value="">
</div>
</div>
<div class="
form
-
group
">
<div class="
col
-
sm
-
10
">
<label>Permintaan Khusus</label>
<textarea style="
border
:
#cccccc 1px solid;border-radius: 5px; min-height:150px;"></textarea>
</
div
>
</
div
>
<!--
<
div
class
="
form
-
group
" align="
right
">
<div class="
col
-
sm
-
10
">
<input type="
submit
" class="
btn
btn
-
primary
">
</div>
</div> -->
</div>
</form>
<div class="
col
-
md
-
5
col
-
sm
-
5
cuisines
-
grids
agileits
w3layouts
" style="
background
-
color
:
#f9f9f9;padding: 40px;border-radius: 9px;">
<
h3
>
Rincian
Pemesanan
Homestay
</
h3
>
<
br
>
<
br
><
br
>
<
table
class
="
table
-
condensed
" style="
font
-
size
:
16
px
;
margin
-
left
:
-
3
px
;
color
:
#777;" >
<
tr
>
<
td
>
Durasi
</
td
>
<
td
>:</
td
>
</
tr
>
<
tr
>
<
td
>
Check
-
in
</
td
>
<
td
>:</
td
>
</
tr
>
<
tr
>
<
td
>
Check
-
in
</
td
>
<
td
>:</
td
>
</
tr
>
<
tr
>
<
td
>
Julmah
Kamar
</
td
>
<
td
>:</
td
>
</
tr
>
<
tr
>
<
td
>
Jumlah
Tamu
</
td
>
<
td
>:</
td
>
</
tr
>
</
table
>
<
br
><
br
><
br
>
<
div
class
="
cuisines
-
grids
agileits
w3layouts
" >
<h3>Rincian Harga</h3><br>
<table class="
table
-
condensed
" style="
font
-
size
:
16
px
;
margin
-
left
:
-
3
px
;
color
:
#777;" >
<
label
for
=
""
>
Nama
Homestay
</
label
>
<
tr
>
<
td
>
Harga
Kamar
</
td
>
<
td
>:</
td
>
</
tr
>
<
tr
>
<
td
>
Total
Bayar
</
td
>
<
td
>:</
td
>
</
tr
>
<
tr
>
<
td
>
Check
-
in
</
td
>
<
td
>:</
td
>
</
tr
>
<
tr
>
<
td
>
Julmah
Kamar
</
td
>
<
td
>:</
td
>
</
tr
>
<
tr
>
<
td
>
Jumlah
Tamu
</
td
>
<
td
>:</
td
>
</
tr
>
</
table
>
<
br
>
<
form
class
="
form
-
horizontal
" action="" method="
post
" enctype="
multipart
/
form
-
data
">
<div class="
form
-
group
" align="
left
">
<div class="
col
-
sm
-
10
">
<input type="
submit
" class="
btn
btn
-
warning
" value="
Lanjutkan
Pembayaran
">
</div>
</div>
</form>
</div>
</div>
</div>
<div class="
clearfix
"></div>
</div>
</div>
@endsection
resources/views/vendor/adminlte/layouts/pages/Home.blade.php
View file @
ee56e846
...
@@ -27,6 +27,7 @@
...
@@ -27,6 +27,7 @@
<
form
action
=
"
{
{url('cari')}
}
"
>
<
form
action
=
"
{
{url('cari')}
}
"
>
<
div
class
="
col
-
md
-
2
col
-
sm
-
2
agileits
w3layouts
contact
-
grid
contact
-
grid
-
2
"></div>
<
div
class
="
col
-
md
-
2
col
-
sm
-
2
agileits
w3layouts
contact
-
grid
contact
-
grid
-
2
"></div>
<div class="
col
-
md
-
2
col
-
sm
-
2
agileits
w3layouts
contact
-
grid
contact
-
grid
-
2
">
<div class="
col
-
md
-
2
col
-
sm
-
2
agileits
w3layouts
contact
-
grid
contact
-
grid
-
2
">
<label>Tanggal Check-in:</label>
<label>Tanggal Check-in:</label>
<input class="
date
agileits
w3layouts
" id="
datepicker1
" name="
tanggal_mulai
" type="
text
" required value="
Tanggal
Check
in
" onfocus="
this
.
value
=
''
;
" onblur="
if
(
this
.
value
==
''
)
{
this
.
value
=
''
;}
">
<input class="
date
agileits
w3layouts
" id="
datepicker1
" name="
tanggal_mulai
" type="
text
" required value="
Tanggal
Check
in
" onfocus="
this
.
value
=
''
;
" onblur="
if
(
this
.
value
==
''
)
{
this
.
value
=
''
;}
">
...
@@ -35,11 +36,11 @@
...
@@ -35,11 +36,11 @@
<label>Durasi</label>
<label>Durasi</label>
<input type="
number
" min="
1
" class="
text
wow
agileits
w3layouts
" name="
jumlah_hari
" required onchange="
updateDate
(
this
)
" placeholder="
Lama
Menginap
" style="
background
-
color
:
white
;
color
:
black
">
<input type="
number
" min="
1
" class="
text
wow
agileits
w3layouts
" name="
jumlah_hari
" required onchange="
updateDate
(
this
)
" placeholder="
Lama
Menginap
" style="
background
-
color
:
white
;
color
:
black
">
</div>
</div>
<div class="
col
-
md
-
2
col
-
sm
-
2
agileits
w3layouts
contact
-
grid
contact
-
grid
-
2
">
<div class="
col
-
md
-
2
col
-
sm
-
2
agileits
w3layouts
contact
-
grid
contact
-
grid
-
2
">
<label>Tanggal Check-out:</label>
<label>Tanggal Check-out:</label>
<input class="
date
agileits
w3layouts
" id="
datepicker2
" name="
tanggal_selesai
" type="
text
" value="
Tanggal
Check
Out
" onfocus="
this
.
value
=
''
;
" onblur="
if
(
this
.
value
==
''
)
{
this
.
value
=
''
;}
">
<input class="
date
agileits
w3layouts
" id="
datepicker2
" name="
tanggal_selesai
" type="
text
" value="
Tanggal
Check
Out
" onfocus="
this
.
value
=
''
;
" onblur="
if
(
this
.
value
==
''
)
{
this
.
value
=
''
;}
">
</div>
</div>
<div class="
col
-
md
-
1
col
-
sm
-
2
agileits
w3layouts
contact
-
grid
contact
-
grid
-
2
">
<div class="
col
-
md
-
1
col
-
sm
-
2
agileits
w3layouts
contact
-
grid
contact
-
grid
-
2
">
<label>Tamu :</label>
<label>Tamu :</label>
<input type="
number
" min="
1
" class="
text
wow
agileits
w3layouts
" required name="
jumlah_Tamu
" placeholder="" style="
background
-
color
:
white
;
color
:
black
">
<input type="
number
" min="
1
" class="
text
wow
agileits
w3layouts
" required name="
jumlah_Tamu
" placeholder="" style="
background
-
color
:
white
;
color
:
black
">
...
...
resources/views/vendor/adminlte/layouts/pages/detilSHomestay.blade.php
View file @
ee56e846
...
@@ -73,13 +73,14 @@
...
@@ -73,13 +73,14 @@
</
tr
>
</
tr
>
<
tr
>
<
tr
>
<
td
>
<
td
>
<
form
action
=
"
{
{url('')}
}
"
>
<
form
action
=
""
>
<
input
type
=
"hidden"
name
=
"tanggal_mulai"
value
=
"
{
{$tm}
}
"
>
<
input
type
=
"hidden"
name
=
"tanggal_mulai"
value
=
"
{
{$tm}
}
"
>
<
input
type
=
"hidden"
name
=
"lama_menginap"
value
=
"
{
{$lm}
}
"
>
<
input
type
=
"hidden"
name
=
"lama_menginap"
value
=
"
{
{$lm}
}
"
>
<
input
type
=
"hidden"
name
=
"tanggal_selesai"
value
=
"
{
{$ts}
}
"
>
<
input
type
=
"hidden"
name
=
"tanggal_selesai"
value
=
"
{
{$ts}
}
"
>
<
input
type
=
"hidden"
name
=
"jumlah_tamu"
value
=
"
{
{$jt}
}
"
>
<
input
type
=
"hidden"
name
=
"jumlah_tamu"
value
=
"
{
{$jt}
}
"
>
<
input
type
=
"hidden"
name
=
"jumlah_kamar"
value
=
"
{
{$jk}
}
"
>
<
input
type
=
"hidden"
name
=
"jumlah_kamar"
value
=
"
{
{$jk}
}
"
>
<
input
type
=
"submit"
value
=
"Pesan Sekarang"
class
="
btn
-
succes
">
<
input
type
=
"submit"
value
=
"Pesan Sekarang"
class
="
btn
-
succes
">
<a href="
{{
url
(
'/rincianpemesanan'
)}}
">pesan coba</a>
</form>
</form>
</td>
</td>
</tr>
</tr>
...
...
routes/web.php
View file @
ee56e846
...
@@ -112,6 +112,8 @@ Route::group(['middleware' => 'customer'], function () {
...
@@ -112,6 +112,8 @@ Route::group(['middleware' => 'customer'], function () {
Route
::
put
(
'editProfileCustomer/{id}'
,
'CustomerController@updateProfile'
);
Route
::
put
(
'editProfileCustomer/{id}'
,
'CustomerController@updateProfile'
);
Route
::
get
(
'customerProfile'
,
'CustomerController@profile'
);
Route
::
get
(
'customerProfile'
,
'CustomerController@profile'
);
Route
::
post
(
'feedback/{id}'
,
'CustomerController@sendFeedback'
);
Route
::
post
(
'feedback/{id}'
,
'CustomerController@sendFeedback'
);
Route
::
get
(
'rincianpemesanan'
,
'CustomerController@rincianpemesanan'
);
});
});
...
...
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