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
f3b1285e
Commit
f3b1285e
authored
May 10, 2017
by
Juliper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
profile completee
parent
3e7254b7
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
33 additions
and
11 deletions
+33
-11
CustomerController.php
app/Http/Controllers/CustomerController.php
+26
-1
lesa.jpg
public/img/lesa.jpg
+0
-0
lesa2.jpg
public/img/lesa2.jpg
+0
-0
editprofiles.blade.php
.../vendor/adminlte/layouts/customers/editprofiles.blade.php
+5
-9
mainheader.blade.php
...s/vendor/adminlte/layouts/partialweb/mainheader.blade.php
+1
-0
adminlte-app.css
...ha/admin-lte-template-laravel/public/css/adminlte-app.css
+1
-1
No files found.
app/Http/Controllers/CustomerController.php
View file @
f3b1285e
...
@@ -78,8 +78,33 @@ class CustomerController extends Controller
...
@@ -78,8 +78,33 @@ class CustomerController extends Controller
public
function
updateProfile
(
Request
$request
,
$id
){
public
function
updateProfile
(
Request
$request
,
$id
){
$cus
=
Customer
::
find
(
$id
);
$cus
=
Customer
::
find
(
$id
);
$dataUs
=
User
::
find
(
Auth
::
user
()
->
id
);
if
(
$request
[
'nama'
]
==
""
){
$cus
->
nama
=
$cus
->
nama
;
$dataUs
->
name
=
$dataUs
->
name
;
}
else
{
$cus
->
nama
=
$request
[
'nama'
];
$dataUs
->
name
=
$request
[
'nama'
];
}
$cus
->
alamat
=
$request
[
'alamat'
];
$cus
->
pekerjaan
=
$request
[
'pekerjaan'
];
$cus
->
noTelepon
=
$request
[
'noTelepon'
];
if
(
$request
->
file
(
'foto'
)
==
null
){
$dataUs
->
foto
=
$dataUs
->
foto
;
}
else
{
$file
=
$request
->
file
(
'foto'
);
$fileName
=
$file
->
getClientOriginalName
();
$request
->
file
(
'foto'
)
->
move
(
"img/"
,
$fileName
);
$dataUs
->
foto
=
$fileName
;
}
$cus
->
update
();
$dataUs
->
update
();
dd
(
"masuk agan"
,
$id
);
//dd("masuk agan",$id,$cus,Auth::user()->id);
return
redirect
(
'customerProfile'
);
}
}
}
}
public/img/lesa.jpg
0 → 100644
View file @
f3b1285e
92.8 KB
public/img/lesa2.jpg
0 → 100644
View file @
f3b1285e
14.2 KB
resources/views/vendor/adminlte/layouts/customers/editprofiles.blade.php
View file @
f3b1285e
...
@@ -10,36 +10,32 @@
...
@@ -10,36 +10,32 @@
<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="
text
" class="
form
-
control
" id="
inputEmail3
" value="
{{
$data
->
nama
}}
">
<input type="
text
"
name="
nama
"
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="
text
" class="
form
-
control
" id="
inputPassword3
" value="
{{
$data
->
alamat
}}
">
<input type="
text
"
name="
alamat
"
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="
text
" class="
form
-
control
" id="
inputPassword3
" value="
{{
$data
->
noTelepon
}}
">
<input type="
text
"
name="
noTelepon
"
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="
text
" class="
form
-
control
" id="
inputPassword3
" value="
{{
$data
->
pekerjaan
}}
">
<input type="
text
"
name="
pekerjaan
"
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
">
<<<<<<< HEAD
<input type="
file
" class="
btn
btn
-
success
" value="
Browse
">
=======
<input type="
file
" value="
Browse
" name="
foto
" id="
picture
" >
<input type="
file
" value="
Browse
" name="
foto
" id="
picture
" >
>>>>>>> 11593880b2ce26f2e4aa805f4991f03545402bfa
</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
">
...
...
resources/views/vendor/adminlte/layouts/partialweb/mainheader.blade.php
View file @
f3b1285e
...
@@ -36,6 +36,7 @@
...
@@ -36,6 +36,7 @@
<li
class=
"user-header"
>
<li
class=
"user-header"
>
{{--
<img
src=
"{{ Gravatar::get($user->email) }}"
class=
"img-circle"
alt=
"User Image"
/>
--}}
{{--
<img
src=
"{{ Gravatar::get($user->email) }}"
class=
"img-circle"
alt=
"User Image"
/>
--}}
<p>
<p>
<img
src=
"img/{{ Auth::user()->foto }}"
class=
"img-circle"
alt=
"User Image"
/>
{{ Auth::user()->name }}
{{ Auth::user()->name }}
<small>
{{ trans('adminlte_lang::message.login') }}
</small>
<small>
{{ trans('adminlte_lang::message.login') }}
</small>
</p>
</p>
...
...
vendor/acacha/admin-lte-template-laravel/public/css/adminlte-app.css
View file @
f3b1285e
...
@@ -1112,7 +1112,7 @@ img {
...
@@ -1112,7 +1112,7 @@ img {
height
:
auto
;
height
:
auto
;
}
}
.img-circle
{
.img-circle
{
border-radius
:
5
0%
;
border-radius
:
3
0%
;
}
}
hr
{
hr
{
margin-top
:
20px
;
margin-top
:
20px
;
...
...
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