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
e98ea325
Commit
e98ea325
authored
Jun 14, 2017
by
Palti Sinaga
Browse files
Options
Browse Files
Download
Plain Diff
123123
parents
beefbbac
7979307c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
49 additions
and
66 deletions
+49
-66
CustomerController.php
app/Http/Controllers/CustomerController.php
+3
-6
GuestController.php
app/Http/Controllers/GuestController.php
+0
-0
ListBook.php
app/ListBook.php
+1
-1
Transaksi.php
app/Transaksi.php
+1
-1
History.blade.php
...views/vendor/adminlte/layouts/customers/History.blade.php
+0
-13
rincianpemesanan.blade.php
...dor/adminlte/layouts/customers/rincianpemesanan.blade.php
+37
-39
detilSHomestay.blade.php
...ws/vendor/adminlte/layouts/pages/detilSHomestay.blade.php
+1
-2
searchhomestay.blade.php
...ws/vendor/adminlte/layouts/pages/searchhomestay.blade.php
+2
-2
web.php
routes/web.php
+4
-2
No files found.
app/Http/Controllers/CustomerController.php
View file @
e98ea325
...
...
@@ -28,11 +28,6 @@ class CustomerController extends Controller
$this
->
middleware
(
'customer'
);
}
public
function
rincianpemesanan
(){
return
view
(
'adminlte::layouts.customers.rincianpemesanan'
);
}
//Pembatalan Pemesanan/Pembookingan Homestay
public
function
cancelPemesanan
(
$id
){
...
...
@@ -446,6 +441,7 @@ class CustomerController extends Controller
$trans
->
tanggal_mulai
=
$request
[
'tanggal'
];
$trans
->
tanggal_berakhir
=
$baru
;
$trans
->
jumlah_kamar
=
$request
[
'jumlah_kamar'
];
$trans
->
permintaan_khusus
=
$request
[
'permintaan_khusus'
];
$trans
->
lama_menginap
=
$request
[
'jumlah_hari'
];
$trans
->
total_pembayaran
=
$request
[
'jumlah_kamar'
]
*
$dataHomestay
[
0
]
->
harga
;
$trans
->
status
=
0
;
...
...
@@ -458,10 +454,11 @@ class CustomerController extends Controller
->
where
(
'transaksi.tanggal_berakhir'
,
'='
,
$baru
)
->
get
();
//Insert Table Daftar Booking
$lb
->
homestay
=
$request
[
'id'
];
$lb
->
id_transaksi
=
$dataTrans
[
0
]
->
id
;
$lb
->
nama_pemesan
=
$
dataPelanggan
[
0
]
->
nama
;
$lb
->
nama_pemesan
=
$
request
[
'nama'
]
;
$lb
->
jumlah_kamar
=
$request
[
'jumlah_kamar'
];
$lb
->
tanggal_mulai
=
$request
[
'tanggal'
]
;
$lb
->
tanggal_berakhir
=
$baru
;
...
...
app/Http/Controllers/GuestController.php
View file @
e98ea325
This diff is collapsed.
Click to expand it.
app/ListBook.php
View file @
e98ea325
...
...
@@ -9,7 +9,7 @@ class ListBook extends Model
protected
$table
=
"daftar_book"
;
protected
$fillable
=
[
'nama_pemesan'
,
'tanggal_mulai'
,
'tanggal_berakhir'
,
'homestay'
,
'jumlah_kamar'
'
jumlah_tamu'
,
'total_harga'
,
'permintaan_khusus'
,
'
nama_pemesan'
,
'tanggal_mulai'
,
'tanggal_berakhir'
,
'homestay'
,
'jumlah_kamar'
];
public
$timestamps
=
false
;
...
...
app/Transaksi.php
View file @
e98ea325
...
...
@@ -9,7 +9,7 @@ class Transaksi extends Model
protected
$table
=
"transaksi"
;
protected
$fillable
=
[
'id_pelanggan'
,
'tanggal_mulai'
,
'tanggal_berakhir'
,
'lama_menginap'
,
'total_pembayaran'
,
'tanggal_konfirmasi'
,
'status'
,
'tanggal_konfirmasi'
,
'jumlah_tamu'
,
'permintaan_khusus'
,
'id_pelanggan'
,
'tanggal_mulai'
,
'tanggal_berakhir'
,
'lama_menginap'
,
'total_pembayaran'
,
'tanggal_konfirmasi'
,
'status'
,
];
public
$timestamps
=
false
;
...
...
resources/views/vendor/adminlte/layouts/customers/History.blade.php
View file @
e98ea325
...
...
@@ -15,7 +15,6 @@
<th> Status Pemesanan</th>
<th></th>
<th></th>
<th></th>
</tr>
</thead>
<tbody>
...
...
@@ -39,22 +38,10 @@
<td>
<a href="
{{
url
(
'buktipembayaran/'
.
$a
->
id
)}}
">Upload Bukti</a>
</td>
<td>
<a href="
{{
url
(
'updatepesanan/'
.
$a
->
id
)}}
">Perbaharui Pesanan</a>
</td>
<td>
<form action="
{{
url
(
'batalkan/'
.
$a
->
id
)}}
" method="
post
">
<input type="
hidden
" name="
_method
" value="
PUT
">
</i><input type="
submit
" value="
batalkan
" class="
btn
btn
-
warning
">
{
{csrf_field()}
}
</form>
</td>
@elseif(
$a->status
==1)
<td colspan="
3
"><h4>Diterima</h4></td>
@elseif(
$a->status
==2)
<td colspan="
3
"><h4>Ditolak</h4></td>
@elseif(
$a->status
=3)
<td colspan="
3
"><h4>Telah Dibatalkan</h4></td>
@endif
</td>
</tr>
...
...
resources/views/vendor/adminlte/layouts/customers/rincianpemesanan.blade.php
View file @
e98ea325
...
...
@@ -4,45 +4,60 @@
<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> -->
<!-- <h3 style="
margin
-
left
:
60
px
;
margin
-
top
:
3
px
;
"> </h2> -->
<form class="
form
-
horizontal
" action="" method="
post
" enctype="
multipart
/
form
-
data
">
<input type="
hidden
" name="
_method
" value="
PUT
">
<form class="
form
-
horizontal
" action="
{{
url
(
'booking'
)}}
" method="
post
" enctype="
multipart
/
form
-
data
">
{
{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=""
>
<input type="
text
" name="
nama
" class="
form
-
control
"
value="
{{
Auth
::
user
()
->
name
}}
" id="
inputEmail3
"
>
</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="
">
<input type="
text
" name="
kontak_hp
" class="
form
-
control
" id="
inputEmail3
" value="
{{
$dataUser
->
no_telepon
}}
">
</div>
<div class="
col
-
sm
-
5
">
<label>Alamat Email Kontak</label>
<input type="
text
" name="
nama
" class="
form
-
control
" id="
inputEmail3
" value="
">
<input type="
text
" name="
kontak_email
" class="
form
-
control
" id="
inputEmail3
" value="
{{
Auth
::
user
()
->
email
}}
">
</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>
<textarea
name="
permintaan_khusus
"
style="
border
:
#cccccc 1px solid;border-radius: 5px; min-height:150px;"></textarea>
</
div
>
</
div
>
<
input
type
=
"hidden"
value
=
"
{
{$dataUser->no_telepon}
}
"
name
=
"id_user"
>
<
input
type
=
"hidden"
value
=
"
{
{$request->lama_menginap}
}
"
name
=
"lama_menginap"
>
<
input
type
=
"hidden"
value
=
"
{
{$request->tanggal_mulai}
}
"
name
=
"tanggal_mulai"
>
<
input
type
=
"hidden"
value
=
"
{
{$request->tanggal_selesai}
}
"
name
=
"tanggal_selesai"
>
<
input
type
=
"hidden"
value
=
"
{
{$request->jumlah_kamar}
}
"
name
=
"jumlah_kamar"
>
<
input
type
=
"hidden"
value
=
"
{
{$request->jumlah_tamu}
}
"
name
=
"jumlah_tamu"
>
<
input
type
=
"hidden"
value
=
"
{
{$data->harga}
}
"
name
=
"harga_homestay"
>
<
input
type
=
"hidden"
value
=
"
{
{$totalHarga}
}
"
name
=
"total_harga"
>
<
input
type
=
"hidden"
value
=
"
{
{$id}
}
"
name
=
"id_homestay"
>
<!--
<
div
class
="
form
-
group
" align="
right
">
<div class="
col
-
sm
-
10
">
<input type="
submit
" class="
btn
btn
-
primary
">
</div>
</div> -->
</div>
<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 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
>
...
...
@@ -50,26 +65,30 @@
<
tr
>
<
td
>
Durasi
</
td
>
<
td
>:</
td
>
<
td
>
{{
$request
->
lama_menginap
}}
Malam
</
td
>
</
tr
>
<
tr
>
<
td
>
Check
-
in
</
td
>
<
td
>:</
td
>
<
td
>
{{
$request
->
tanggal_mulai
}}
</
td
>
</
tr
>
<
tr
>
<
td
>
Check
-
in
</
td
>
<
td
>
Check
-
out
</
td
>
<
td
>:</
td
>
<
td
>
{{
$request
->
tanggal_selesai
}}
</
td
>
</
tr
>
<
tr
>
<
td
>
Ju
lm
ah
Kamar
</
td
>
<
td
>
Ju
ml
ah
Kamar
</
td
>
<
td
>:</
td
>
<
td
>
{{
$request
->
jumlah_kamar
}}
</
td
>
</
tr
>
<
tr
>
<
td
>
Jumlah
Tamu
</
td
>
<
td
>:</
td
>
<
td
>
{{
$request
->
jumlah_tamu
}}
</
td
>
</
tr
>
</
table
>
...
...
@@ -77,41 +96,20 @@
<
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
>
<
label
for
=
""
>
{{
$data
->
nama_homestay
}}
</
label
>
<
tr
>
<
td
>
Harga
Kamar
</
td
>
<
td
>:</
td
>
</
tr
>
<
tr
>
<
td
>
Harga
Kamar
</
td
>
<
td
>:</
td
>
<
td
>
{{
$data
->
harga
}}
</
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
>
<
td
>
{{
$totalHarga
}}
</
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
>
...
...
resources/views/vendor/adminlte/layouts/pages/detilSHomestay.blade.php
View file @
e98ea325
...
...
@@ -73,14 +73,13 @@
</
tr
>
<
tr
>
<
td
>
<
form
action
=
""
>
<
form
action
=
"
{
{url('rincianpemesanan/'.$id)}
}
"
>
<
input
type
=
"hidden"
name
=
"tanggal_mulai"
value
=
"
{
{$tm}
}
"
>
<
input
type
=
"hidden"
name
=
"lama_menginap"
value
=
"
{
{$lm}
}
"
>
<
input
type
=
"hidden"
name
=
"tanggal_selesai"
value
=
"
{
{$ts}
}
"
>
<
input
type
=
"hidden"
name
=
"jumlah_tamu"
value
=
"
{
{$jt}
}
"
>
<
input
type
=
"hidden"
name
=
"jumlah_kamar"
value
=
"
{
{$jk}
}
"
>
<
input
type
=
"submit"
value
=
"Pesan Sekarang"
class
="
btn
-
succes
">
<a href="
{{
url
(
'/rincianpemesanan'
)}}
">pesan coba</a>
</form>
</td>
</tr>
...
...
resources/views/vendor/adminlte/layouts/pages/searchhomestay.blade.php
View file @
e98ea325
...
...
@@ -22,10 +22,10 @@
<div class="
col
-
md
-
4
col
-
sm
-
4
details
-
grid
details
-
grid
-
2
agileits
w3layouts
">
<div class="
details
-
grid2
agileits
w3layouts
">
<div class="
details
-
grid
-
image
agileits
w3layouts
" >
<a href ="
{{
url
(
'homestay/'
.
$a
[
0
]
->
id
.
'/'
.
$tm
.
'/'
.
$lm
.
'/'
.
$ts
.
'/'
.
$jt
.
'/'
.
$jk
.
'/'
.
$th
)}}
" ><img src="
/
img
/
{{
$a
[
0
]
->
gambar
}}
" alt="
Agileits
W3layouts
" ></a>
<a href ="
{{
url
(
'homestay/'
.
$a
[
0
]
->
id
.
'/'
.
$tm
.
'/'
.
$lm
.
'/'
.
$ts
.
'/'
.
$jt
.
'/'
.
$jk
)}}
" ><img src="
/
img
/
{{
$a
[
0
]
->
gambar
}}
" alt="
Agileits
W3layouts
" ></a>
</div>
<div class="
details
-
grid
-
info
agileits
w3layouts
">
<a href ="
{{
url
(
'homestay/'
.
$a
[
0
]
->
id
.
'/'
.
$tm
.
'/'
.
$lm
.
'/'
.
$ts
.
'/'
.
$jt
.
'/'
.
$jk
.
'/'
.
$th
)}}
" ><h4>
{
{$a[0]->nama_homestay}
}
</h4></a>
<a href ="
{{
url
(
'homestay/'
.
$a
[
0
]
->
id
.
'/'
.
$tm
.
'/'
.
$lm
.
'/'
.
$ts
.
'/'
.
$jt
.
'/'
.
$jk
)}}
" ><h4>
{
{$a[0]->nama_homestay}
}
</h4></a>
</div>
<div class="
clearfix
"><h5>RP.
{
{$a[0]->harga}
}
</h5></div>
</div>
...
...
routes/web.php
View file @
e98ea325
...
...
@@ -94,11 +94,13 @@ Route::group(['middleware' => 'owner'], function () {
Route
::
resource
(
'pdf'
,
'PDFController@showPDF'
);
});
Route
::
get
(
'homestay/{id}/{tm}/{lm}/{ts}/{jt}/{jk}/{th}'
,
'GuestController@homestay'
);
Route
::
post
(
'booking'
,
'GuestController@booking'
);
Route
::
get
(
'homestay/{id}/{tm}/{lm}/{ts}/{jt}/{jk}'
,
'GuestController@homestay'
);
Route
::
get
(
'cari'
,
'GuestController@cari'
);
Route
::
get
(
'detailhomestay/{id}'
,
'GuestController@detailhomestay'
);
Route
::
get
(
'daftar'
,
'GuestController@register'
);
Route
::
post
(
'daftar'
,
'GuestController@registerStore'
);
Route
::
get
(
'rincianpemesanan/{id}'
,
'GuestController@rincianpemesanan'
);
Route
::
group
([
'middleware'
=>
'customer'
],
function
()
{
Route
::
get
(
'updatepesanan/{id}'
,
'CustomerController@updatePesanan'
);
...
...
@@ -112,7 +114,7 @@ Route::group(['middleware' => 'customer'], function () {
Route
::
put
(
'editProfileCustomer/{id}'
,
'CustomerController@updateProfile'
);
Route
::
get
(
'customerProfile'
,
'CustomerController@profile'
);
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