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
bb149567
Commit
bb149567
authored
7 years ago
by
Palti Sinaga
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://gitlab.del.ac.id/juliper19/pa2d4ti06
parents
d8f50c57
3556b67e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
25 deletions
+30
-25
CustomerController.php
app/Http/Controllers/CustomerController.php
+14
-5
profiles.blade.php
...iews/vendor/adminlte/layouts/customers/profiles.blade.php
+15
-20
web.php
routes/web.php
+1
-0
No files found.
app/Http/Controllers/CustomerController.php
View file @
bb149567
...
@@ -13,11 +13,16 @@ class CustomerController extends Controller
...
@@ -13,11 +13,16 @@ class CustomerController extends Controller
{
{
public
function
profile
(){
public
function
profile
(){
//dd("masuk agan");
//dd("masuk agan");
// dd(Auth::user()->id);
//dd(Auth::user()->id);
$data
=
DB
::
table
(
'pelanggan'
)
->
select
(
'pelanggan.*'
)
->
where
(
'pelanggan.id_Akun'
,
'='
,
Auth
::
user
()
->
id
)
->
get
();
//$data2 = User::find(Auth::user()->id);
//dd($data[0]);
return
view
(
'adminlte::layouts.customers.profiles'
);
return
view
(
'adminlte::layouts.customers.profiles'
)
->
with
(
'data'
,
$data
[
0
])
;
}
}
public
function
register
(){
public
function
register
(){
...
@@ -48,9 +53,13 @@ class CustomerController extends Controller
...
@@ -48,9 +53,13 @@ class CustomerController extends Controller
$cus
->
save
();
$cus
->
save
();
$this
->
guard
()
->
login
(
$user
);
//$this->guard()->login($user);
return
redirect
(
'login'
);
}
return
redirect
(
'/'
);
public
function
editProfile
(){
}
}
...
...
This diff is collapsed.
Click to expand it.
resources/views/vendor/adminlte/layouts/customers/profiles.blade.php
View file @
bb149567
...
@@ -3,43 +3,38 @@
...
@@ -3,43 +3,38 @@
<
div
class
="
cuisines
agileits
w3layouts
" style="
padding
-
top
:
50
px
;
margin
-
top
:
40
px
;
">
<
div
class
="
cuisines
agileits
w3layouts
" style="
padding
-
top
:
50
px
;
margin
-
top
:
40
px
;
">
<div class="
container
">
<div class="
container
">
<div class="
col
-
md
-
4
col
-
sm
-
4
cuisines
-
grids
agileits
w3layouts
cuisines
-
grids
-
2
wow
slideInRight
">
<div class="
col
-
md
-
4
col
-
sm
-
4
cuisines
-
grids
agileits
w3layouts
cuisines
-
grids
-
2
wow
slideInRight
">
<img src="
img
/
avatar3
.
png
" alt="
Agileits
W3layouts
">
<img src="
img
/
{{
Auth
::
user
()
->
foto
}}
" alt="
Agileits
W3layouts
">
<h2 style="
text
-
align
:
center
;
margin
-
top
:
3
px
;
">
Palti Sinaga
</h2>
<h2 style="
text
-
align
:
center
;
margin
-
top
:
3
px
;
">
{
{Auth::user()->name}
}
</h2>
</div>
</div>
<div class="
col
-
md
-
8
col
-
sm
-
8
cuisines
-
grids
agileits
w3layouts
cuisines
-
grids
-
1
wow
slideInLeft
">
<div class="
col
-
md
-
8
col
-
sm
-
8
cuisines
-
grids
agileits
w3layouts
cuisines
-
grids
-
1
wow
slideInLeft
">
<h3>Data Diri</h3>
<h3>Data Diri</h3>
<table class="
table
-
condensed
" style="
font
-
size
:
16
px
;
margin
-
left
:
-
3
px
;
color
:
#777">
<table class="
table
-
condensed
" style="
font
-
size
:
16
px
;
margin
-
left
:
-
3
px
;
color
:
#777">
<
tr
>
<
tr
>
<
td
>
Tempat
/
Tanggal
Lahir
</
td
>
<
td
>
Nama
</
td
>
<
td
>
Palti
Sinaga
</
td
>
<
td
>:</
td
>
<
td
>
{{
$data
->
nama
}}
</
td
>
</
tr
>
</
tr
>
<
tr
>
<
tr
>
<
td
>
Kelaasdas
</
td
>
<
td
>
Alamat
</
td
>
<
td
>
test
</
td
>
<
td
>:</
td
>
<
td
>
{{
$data
->
alamat
}}
</
td
>
</
tr
>
</
tr
>
<
tr
>
<
tr
>
<
td
>
Tempaasfasdt
/
Tanggal
Lahir
</
td
>
<
td
>
No
Telepon
</
td
>
<
td
>
Palti
Sinaga
</
td
>
<
td
>:</
td
>
<
td
>
{{
$data
->
noTelepon
}}
</
td
>
</
tr
>
</
tr
>
<
tr
>
<
tr
>
<
td
>
Kelasdas
</
td
>
<
td
>
Pekerjaan
</
td
>
<
td
>
test
</
td
>
<
td
>:</
td
>
</
tr
>
<
td
>
{{
$data
->
pekerjaan
}}
</
td
>
<
tr
>
<
td
>
Tempaqwdat
/
Tanggal
Lahir
</
td
>
<
td
>
Palti
Sinaga
</
td
>
</
tr
>
<
tr
>
<
td
>
Keasddlas
</
td
>
<
td
>
test
</
td
>
</
tr
>
</
tr
>
</
table
>
</
table
>
<
br
><
br
>
<
br
><
br
>
<
h3
>
Testimoni
</
h3
>
<
p
>
Lorem
ipsum
dolor
sit
amet
,
consectetur
adipisicing
elit
,
sed
do
eiusmod
tempor
incididunt
ut
labore
et
dolore
magna
aliqua
.
Ut
enim
ad
minim
veniam
,
quis
nostrud
exercitation
ullamco
laboris
nisi
ut
aliquip
ex
ea
commodo
consequat
.
Duis
aute
irure
dolor
in
reprehenderit
in
voluptate
velit
esse
cillum
dolore
eu
fugiat
nulla
pariatur
.
Excepteur
sint
occaecat
cupidatat
non
proident
,
sunt
in
culpa
qui
officia
deserunt
mollit
anim
id
est
laborum
.</
p
>
<
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="
gallery
.
html
" >Edit Profile <span class="
glyphicon
agileits
w3layouts
glyphicon
-
arrow
-
right
" aria-hidden="
true
"></span></a>
<
a
class
="
agileits
w3layoutswow
slideInLeft
" href="
gallery
.
html
" >Edit Profile <span class="
glyphicon
agileits
w3layouts
glyphicon
-
arrow
-
right
" aria-hidden="
true
"></span></a>
...
...
This diff is collapsed.
Click to expand it.
routes/web.php
View file @
bb149567
...
@@ -45,6 +45,7 @@ Route::group(['middleware' => 'auth'], function () {
...
@@ -45,6 +45,7 @@ Route::group(['middleware' => 'auth'], function () {
Route
::
get
(
'daftar'
,
'CustomerController@register'
);
Route
::
get
(
'daftar'
,
'CustomerController@register'
);
Route
::
post
(
'daftar'
,
'CustomerController@registerStore'
);
Route
::
post
(
'daftar'
,
'CustomerController@registerStore'
);
Route
::
get
(
'editProfileCustomer'
,
'CustomerController@editProfile'
);
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'
);
...
...
This diff is collapsed.
Click to expand it.
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