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
3e7254b7
Commit
3e7254b7
authored
May 10, 2017
by
Palti Sinaga
Browse files
Options
Browse Files
Download
Plain Diff
x
parents
42e20a5f
11593880
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
9 deletions
+24
-9
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
+12
-7
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 @
3e7254b7
...
...
@@ -76,4 +76,10 @@ class CustomerController extends Controller
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 @
3e7254b7
...
...
@@ -33,7 +33,7 @@ class HomeController extends Controller
*/
public
function
index
()
{
dd
(
"masuk gan"
);
//
dd("masuk gan");
return
view
(
'adminlte::home'
);
}
}
\ No newline at end of file
resources/views/vendor/adminlte/layouts/customers/editprofiles.blade.php
View file @
3e7254b7
...
...
@@ -4,41 +4,46 @@
<
div
class
="
cuisines
agileits
w3layouts
" style="
padding
-
top
:
50
px
;
margin
-
top
:
80
px
;
">
<div class="
container
">
<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
">
<label for="
inputEmail3
" class="
col
-
sm
-
2
control
-
label
">Nama</label>
<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 class="
form
-
group
">
<label for="
inputPassword3
" class="
col
-
sm
-
2
control
-
label
">Alamat</label>
<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 class="
form
-
group
">
<label for="
inputPassword3
" class="
col
-
sm
-
2
control
-
label
">No.Telepon</label>
<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 class="
form
-
group
">
<label for="
inputPassword3
" class="
col
-
sm
-
2
control
-
label
">Pekerjaan</label>
<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 class="
form
-
group
">
<label class="
col
-
sm
-
2
control
-
label
"> Foto </label>
<div class="
col
-
sm
-
10
">
<<<<<<< HEAD
<input type="
file
" class="
btn
btn
-
success
" value="
Browse
">
=======
<input type="
file
" value="
Browse
" name="
foto
" id="
picture
" >
>>>>>>> 11593880b2ce26f2e4aa805f4991f03545402bfa
</div>
</div>
<div class="
form
-
group
" align="
right
">
<div class="
col
-
sm
-
12
">
<input type="
submit
" class="
btn
btn
-
primary
"></input>
</div>
<input type="
submit
" class="
btn
btn
-
primary
">
</div>
</div>
</form>
...
...
resources/views/vendor/adminlte/layouts/customers/profiles.blade.php
View file @
3e7254b7
...
...
@@ -37,7 +37,7 @@
<
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>
</div>
...
...
routes/web.php
View file @
3e7254b7
...
...
@@ -46,7 +46,10 @@ Route::group(['middleware' => 'auth'], function () {
Route
::
get
(
'detailhomestay/{id}'
,
'CustomerController@detailhomestay'
);
Route
::
get
(
'daftar'
,
'CustomerController@register'
);
Route
::
post
(
'daftar'
,
'CustomerController@registerStore'
);
//Route::post('editProfileCustomer/{id}','CustomerController@update');
//Route::put('editProfile/{id}','CustomerController@updateProfile');
Route
::
get
(
'editProfileCustomer/{id}'
,
'CustomerController@editProfile'
);
Route
::
put
(
'editProfileCustomer/{id}'
,
'CustomerController@updateProfile'
);
Route
::
resource
(
'admin'
,
'AdminController'
);
Route
::
get
(
'listowner'
,
'AdminController@listOwner'
);
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