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
11593880
Commit
11593880
authored
May 10, 2017
by
Juliper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
still in profile
parent
d7f65837
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
10 deletions
+21
-10
CustomerController.php
app/Http/Controllers/CustomerController.php
+6
-0
HomeController.php
app/Http/Controllers/HomeController.php
+2
-1
editprofiles.blade.php
.../vendor/adminlte/layouts/customers/editprofiles.blade.php
+9
-8
profiles.blade.php
...iews/vendor/adminlte/layouts/customers/profiles.blade.php
+1
-1
web.php
routes/web.php
+3
-0
No files found.
app/Http/Controllers/CustomerController.php
View file @
11593880
...
@@ -76,4 +76,10 @@ class CustomerController extends Controller
...
@@ -76,4 +76,10 @@ class CustomerController extends Controller
return
view
(
'adminlte::layouts.pages.Homestay'
)
->
with
(
'data'
,
$data
[
0
]);
return
view
(
'adminlte::layouts.pages.Homestay'
)
->
with
(
'data'
,
$data
[
0
]);
}
}
public
function
updateProfile
(
Request
$request
,
$id
){
$cus
=
Customer
::
find
(
$id
);
dd
(
"masuk agan"
,
$id
);
}
}
}
app/Http/Controllers/HomeController.php
View file @
11593880
...
@@ -33,7 +33,7 @@ class HomeController extends Controller
...
@@ -33,7 +33,7 @@ class HomeController extends Controller
*/
*/
public
function
index
()
public
function
index
()
{
{
dd
(
"masuk gan"
);
//
dd("masuk gan");
return
view
(
'adminlte::home'
);
return
view
(
'adminlte::home'
);
}
}
}
}
\ No newline at end of file
resources/views/vendor/adminlte/layouts/customers/editprofiles.blade.php
View file @
11593880
...
@@ -4,43 +4,44 @@
...
@@ -4,43 +4,44 @@
<
div
class
="
cuisines
agileits
w3layouts
" style="
padding
-
top
:
50
px
;
margin
-
top
:
80
px
;
">
<
div
class
="
cuisines
agileits
w3layouts
" style="
padding
-
top
:
50
px
;
margin
-
top
:
80
px
;
">
<div class="
container
">
<div class="
container
">
<div class="
register
agileits
w3layouts
wow
agileits
w3layouts
slideInLeft
">
<div class="
register
agileits
w3layouts
wow
agileits
w3layouts
slideInLeft
">
<form class="
form
-
horizontal
">
<form class="
form
-
horizontal
" action="
{{
url
(
'editProfileCustomer/'
.
$data
->
id
)}}
" method="
post
" enctype="
multipart
/
form
-
data
">
<input type="
hidden
" name="
_method
" value="
PUT
">
{
{csrf_field()}
}
<div class="
form
-
group
">
<div class="
form
-
group
">
<label for="
inputEmail3
" class="
col
-
sm
-
2
control
-
label
">Nama</label>
<label for="
inputEmail3
" class="
col
-
sm
-
2
control
-
label
">Nama</label>
<div class="
col
-
sm
-
10
">
<div class="
col
-
sm
-
10
">
<input type="
email
" class="
form
-
control
" id="
inputEmail3
" placeholder="
Email
">
<input type="
text
" class="
form
-
control
" id="
inputEmail3
" value="
{{
$data
->
nama
}}
">
</div>
</div>
</div>
</div>
<div class="
form
-
group
">
<div class="
form
-
group
">
<label for="
inputPassword3
" class="
col
-
sm
-
2
control
-
label
">Alamat</label>
<label for="
inputPassword3
" class="
col
-
sm
-
2
control
-
label
">Alamat</label>
<div class="
col
-
sm
-
10
">
<div class="
col
-
sm
-
10
">
<input type="
password
" class="
form
-
control
" id="
inputPassword3
" placeholder="
Alamat
">
<input type="
text
" class="
form
-
control
" id="
inputPassword3
" value="
{{
$data
->
alamat
}}
">
</div>
</div>
</div>
</div>
<div class="
form
-
group
">
<div class="
form
-
group
">
<label for="
inputPassword3
" class="
col
-
sm
-
2
control
-
label
">No.Telepon</label>
<label for="
inputPassword3
" class="
col
-
sm
-
2
control
-
label
">No.Telepon</label>
<div class="
col
-
sm
-
10
">
<div class="
col
-
sm
-
10
">
<input type="
password
" class="
form
-
control
" id="
inputPassword3
" placeholder="
No
.
Telepon
">
<input type="
text
" class="
form
-
control
" id="
inputPassword3
" value="
{{
$data
->
noTelepon
}}
">
</div>
</div>
</div>
</div>
<div class="
form
-
group
">
<div class="
form
-
group
">
<label for="
inputPassword3
" class="
col
-
sm
-
2
control
-
label
">Pekerjaan</label>
<label for="
inputPassword3
" class="
col
-
sm
-
2
control
-
label
">Pekerjaan</label>
<div class="
col
-
sm
-
10
">
<div class="
col
-
sm
-
10
">
<input type="
password
" class="
form
-
control
" id="
inputPassword3
" placeholder="
Pekerjaan
">
<input type="
text
" class="
form
-
control
" id="
inputPassword3
" value="
{{
$data
->
pekerjaan
}}
">
</div>
</div>
</div>
</div>
<div class="
form
-
group
">
<div class="
form
-
group
">
<label class="
col
-
sm
-
2
control
-
label
"> Foto </label>
<label class="
col
-
sm
-
2
control
-
label
"> Foto </label>
<div class="
col
-
sm
-
10
">
<div class="
col
-
sm
-
10
">
<input
class="
btn
btn
-
success
" value="
Browse
"
>
<input
type="
file
" value="
Browse
" name="
foto
" id="
picture
"
>
</div>
</div>
</div>
</div>
<div class="
form
-
group
" align="
right
">
<div class="
form
-
group
" align="
right
">
<div class="
col
-
sm
-
12
">
<div class="
col
-
sm
-
12
">
<input type="
submit
" class="
btn
btn
-
primary
">
</input>
<input type="
submit
" class="
btn
btn
-
primary
">
</div>
</div>
</div>
</div>
</div>
</form>
</form>
</div>
</div>
...
...
resources/views/vendor/adminlte/layouts/customers/profiles.blade.php
View file @
11593880
...
@@ -37,7 +37,7 @@
...
@@ -37,7 +37,7 @@
<
div
class
="
services
agileits
w3layouts
" style="
background
-
color
:
#fff; padding: 1px 1px 1px 0px; margin-top: 30px;">
<
div
class
="
services
agileits
w3layouts
" style="
background
-
color
:
#fff; padding: 1px 1px 1px 0px; margin-top: 30px;">
<
a
class
="
agileits
w3layoutswow
slideInLeft
" href="
{{
url
(
'editProfileCustomer/'
.
$data
->
id
_Pelanggan
)}}
" >Edit Profile <span class="
glyphicon
agileits
w3layouts
glyphicon
-
arrow
-
right
" aria-hidden="
true
"></span></a>
<
a
class
="
agileits
w3layoutswow
slideInLeft
" href="
{{
url
(
'editProfileCustomer/'
.
$data
->
id
)}}
" >Edit Profile <span class="
glyphicon
agileits
w3layouts
glyphicon
-
arrow
-
right
" aria-hidden="
true
"></span></a>
<a class="
agileits
w3layoutswow
slideInLeft
" href="
gallery
.
html
">History <span class="
glyphicon
agileits
w3layouts
glyphicon
-
arrow
-
right
" aria-hidden="
true
"></span></a>
<a class="
agileits
w3layoutswow
slideInLeft
" href="
gallery
.
html
">History <span class="
glyphicon
agileits
w3layouts
glyphicon
-
arrow
-
right
" aria-hidden="
true
"></span></a>
</div>
</div>
...
...
routes/web.php
View file @
11593880
...
@@ -46,7 +46,10 @@ Route::group(['middleware' => 'auth'], function () {
...
@@ -46,7 +46,10 @@ Route::group(['middleware' => 'auth'], function () {
Route
::
get
(
'detailhomestay/{id}'
,
'CustomerController@detailhomestay'
);
Route
::
get
(
'detailhomestay/{id}'
,
'CustomerController@detailhomestay'
);
Route
::
get
(
'daftar'
,
'CustomerController@register'
);
Route
::
get
(
'daftar'
,
'CustomerController@register'
);
Route
::
post
(
'daftar'
,
'CustomerController@registerStore'
);
Route
::
post
(
'daftar'
,
'CustomerController@registerStore'
);
//Route::post('editProfileCustomer/{id}','CustomerController@update');
//Route::put('editProfile/{id}','CustomerController@updateProfile');
Route
::
get
(
'editProfileCustomer/{id}'
,
'CustomerController@editProfile'
);
Route
::
get
(
'editProfileCustomer/{id}'
,
'CustomerController@editProfile'
);
Route
::
put
(
'editProfileCustomer/{id}'
,
'CustomerController@updateProfile'
);
Route
::
resource
(
'admin'
,
'AdminController'
);
Route
::
resource
(
'admin'
,
'AdminController'
);
Route
::
get
(
'listowner'
,
'AdminController@listOwner'
);
Route
::
get
(
'listowner'
,
'AdminController@listOwner'
);
Route
::
resource
(
'owner'
,
'OwnerController'
);
Route
::
resource
(
'owner'
,
'OwnerController'
);
...
...
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