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
ee014bec
Commit
ee014bec
authored
May 14, 2017
by
Juliper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
transaction will done in time
parent
fe9c68c1
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
7 deletions
+17
-7
CustomerController.php
app/Http/Controllers/CustomerController.php
+11
-2
ListBook.php
app/ListBook.php
+1
-1
Homestay.blade.php
...es/views/vendor/adminlte/layouts/pages/Homestay.blade.php
+2
-2
scripts.blade.php
...iews/vendor/adminlte/layouts/partialweb/scripts.blade.php
+2
-2
web.php
routes/web.php
+1
-0
No files found.
app/Http/Controllers/CustomerController.php
View file @
ee014bec
...
@@ -18,6 +18,12 @@ use Psy\Command\ListCommand\ConstantEnumerator;
...
@@ -18,6 +18,12 @@ use Psy\Command\ListCommand\ConstantEnumerator;
class
CustomerController
extends
Controller
class
CustomerController
extends
Controller
{
{
public
function
hitory
(
$id
){
return
view
(
'adminlte::layouts.customers.History'
);
}
public
function
profile
(){
public
function
profile
(){
//dd("masuk agan");
//dd("masuk agan");
//dd(Auth::user()->id);
//dd(Auth::user()->id);
...
@@ -148,14 +154,17 @@ class CustomerController extends Controller
...
@@ -148,14 +154,17 @@ class CustomerController extends Controller
$lb
->
homestay
=
$request
[
'id'
];
$lb
->
homestay
=
$request
[
'id'
];
$lb
->
nama_pemesan
=
$data2
[
0
]
->
nama
;
$lb
->
nama_pemesan
=
$data2
[
0
]
->
nama
;
$lb
->
tanggal_mulai
=
$request
[
'tanggal'
]
;
$lb
->
tanggal_mulai
=
$request
[
'tanggal'
]
;
$lb
->
tanggal_berakhir
=
$baru
;
$lb
->
tanggal_berakhir
=
$baru
;
$trans
->
save
();
$trans
->
save
();
$lb
->
save
();
$lb
->
save
();
return
redirect
(
'detailhomestay/'
,
$request
[
'id'
]);
return
redirect
()
->
action
(
'CustomerController@detailhomestay'
,
[
'id'
=>
$request
[
'id'
]]
);
}
}
}
}
app/ListBook.php
View file @
ee014bec
...
@@ -9,7 +9,7 @@ class ListBook extends Model
...
@@ -9,7 +9,7 @@ class ListBook extends Model
protected
$table
=
"daftar_book"
;
protected
$table
=
"daftar_book"
;
protected
$fillable
=
[
protected
$fillable
=
[
'nama_pemesan'
,
'tanggal_mulai'
,
'tanggal_berakhir'
'nama_pemesan'
,
'tanggal_mulai'
,
'tanggal_berakhir'
,
'homestay'
];
];
public
$timestamps
=
false
;
public
$timestamps
=
false
;
...
...
resources/views/vendor/adminlte/layouts/pages/Homestay.blade.php
View file @
ee014bec
...
@@ -40,7 +40,7 @@
...
@@ -40,7 +40,7 @@
<br><br>
<br><br>
<div class="
details
agilets
w3layouts
">
<div class="
details
agilets
w3layouts
">
<h2 style="
margin
-
bottom
:
10
px
;
"> Daftar Booking </h2>
<h2 style="
margin
-
bottom
:
10
px
;
"> Daftar Booking </h2>
<div class="
container
">
<div class="
container
">
<div class="
cuisines
agileits
w3layouts
">
<div class="
cuisines
agileits
w3layouts
">
<div class="
container
">
<div class="
container
">
...
@@ -65,7 +65,7 @@
...
@@ -65,7 +65,7 @@
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Informations -->
<!-- Informations -->
...
...
resources/views/vendor/adminlte/layouts/partialweb/scripts.blade.php
View file @
ee014bec
...
@@ -81,11 +81,11 @@
...
@@ -81,11 +81,11 @@
<script
src=
"{{asset('js/jquery-ui.js')}}"
></script>
<script
src=
"{{asset('js/jquery-ui.js')}}"
></script>
<script>
<script>
$
(
'#datepicker2'
).
datepicker
({
$
(
'#datepicker2'
).
datepicker
({
dateFormat
:
"
dd-M-yy"
dateFormat
:
"
yy-mm-dd"
});
});
$
(
"#datepicker1"
).
datepicker
({
$
(
"#datepicker1"
).
datepicker
({
dateFormat
:
"
dd-M-yy"
,
dateFormat
:
"
yy-mm-dd"
,
minDate
:
0
,
minDate
:
0
,
onSelect
:
function
(
date
){
onSelect
:
function
(
date
){
var
date1
=
$
(
'#datepicker1'
).
datepicker
(
'getDate'
);
var
date1
=
$
(
'#datepicker1'
).
datepicker
(
'getDate'
);
...
...
routes/web.php
View file @
ee014bec
...
@@ -46,6 +46,7 @@ Route::group(['middleware' => 'auth'], function () {
...
@@ -46,6 +46,7 @@ Route::group(['middleware' => 'auth'], function () {
#adminlte_routes
#adminlte_routes
});
});
Route
::
get
(
'detailhomestay/{id}'
,
'CustomerController@detailhomestay'
);
Route
::
get
(
'detailhomestay/{id}'
,
'CustomerController@detailhomestay'
);
Route
::
get
(
'history/{id}'
,
'CustomerController@hitory'
);
Route
::
get
(
'daftar'
,
'CustomerController@register'
);
Route
::
get
(
'daftar'
,
'CustomerController@register'
);
Route
::
post
(
'daftar'
,
'CustomerController@registerStore'
);
Route
::
post
(
'daftar'
,
'CustomerController@registerStore'
);
Route
::
post
(
'book'
,
'CustomerController@booking'
);
Route
::
post
(
'book'
,
'CustomerController@booking'
);
...
...
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