Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
lara_cms
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jasvir Singh
lara_cms
Commits
4fc0ee37
Commit
4fc0ee37
authored
4 years ago
by
mohd zamin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
initial commit
Signed-off-by:
mohd zamin
<
m.zamin@ldh.01s.in
>
parent
fda61a88
Pipeline
#431
failed with stage
in 2 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
13 deletions
+14
-13
app/Http/Controllers/Admin/DashboardController.php
app/Http/Controllers/Admin/DashboardController.php
+3
-2
public/images/15be33d514f99d4cb6bc453e405cbb6d.jpg
public/images/15be33d514f99d4cb6bc453e405cbb6d.jpg
+0
-0
public/images/3D-HD-Nature-Wallpapers-For-Desktop-1.jpg
public/images/3D-HD-Nature-Wallpapers-For-Desktop-1.jpg
+0
-0
resources/views/admin/editPage.blade.php
resources/views/admin/editPage.blade.php
+11
-11
No files found.
app/Http/Controllers/Admin/DashboardController.php
View file @
4fc0ee37
...
...
@@ -190,6 +190,7 @@ class DashboardController extends Controller
'description'
=>
$req
->
content
,
'status'
=>
$req
->
status
,
'image'
=>
$fileName
,
'form_status'
=>
0
,
'created_at'
=>
Carbon
::
now
()
);
...
...
@@ -272,9 +273,9 @@ class DashboardController extends Controller
public
function
pageEdit
(
$id
){
// dd($slug);
$
id
=
DB
::
table
(
'pages'
)
->
where
(
'id'
,
$id
)
->
first
();
$
data
=
DB
::
table
(
'pages'
)
->
where
(
'id'
,
$id
)
->
first
();
$cat
=
Category
::
all
();
return
view
(
'admin.editPage'
,
compact
(
'
id'
,
'cat
'
));
return
view
(
'admin.editPage'
,
compact
(
'
data'
,
'cat'
,
'id
'
));
}
public
function
pageUpdate
(
Request
$req
,
$slug
){
if
(
$file
=
$req
->
hasFile
(
'image'
))
...
...
This diff is collapsed.
Click to expand it.
public/images/15be33d514f99d4cb6bc453e405cbb6d.jpg
0 → 100644
View file @
4fc0ee37
513 KB
This diff is collapsed.
Click to expand it.
public/images/3D-HD-Nature-Wallpapers-For-Desktop-1.jpg
0 → 100644
View file @
4fc0ee37
529 KB
This diff is collapsed.
Click to expand it.
resources/views/admin/editPage.blade.php
View file @
4fc0ee37
...
...
@@ -19,33 +19,33 @@
</
div
>
<
div
class
=
"card-body"
>
<
form
class
=
"col-md-12"
method
=
"POST"
action
=
"
{
{url('
editpage')}}/{{$id
->slug}
}
"
enctype
=
"multipart/form-data"
>
<
form
class
=
"col-md-12"
method
=
"POST"
action
=
"
{
{url('
admin/editpage')}}/{{$data
->slug}
}
"
enctype
=
"multipart/form-data"
>
@
csrf
<
div
class
=
"form-group"
>
<
label
for
=
"pageTitle"
>
Page
Title
</
label
>
<
input
type
=
"text"
name
=
"name"
class
=
"form-control col-md-5"
id
=
"pageTitle"
value
=
"
{
{$
id
->name}
}
"
disabled
>
<
input
type
=
"text"
name
=
"name"
class
=
"form-control col-md-5"
id
=
"pageTitle"
value
=
"
{
{$
data
->name}
}
"
disabled
>
<
input
type
=
"hidden"
name
=
"path"
class
=
"form-control col-md-5"
id
=
"path"
value
=
"
{
{$
id
->slug}
}
"
>
<
input
type
=
"hidden"
name
=
"path"
class
=
"form-control col-md-5"
id
=
"path"
value
=
"
{
{$
data
->slug}
}
"
>
<
label
for
=
"status"
>
Status
</
label
>
<
select
id
=
"status"
class
=
"form-control col-md-5"
name
=
"status"
>
<
option
value
=
"1"
{{
$
id
->
status
==
1
?
'selected'
:
''
}}
>
Active
</
option
>
<
option
value
=
"0"
{{
$
id
->
status
==
0
?
'selected'
:
''
}}
>
Inactive
</
option
>
<
option
value
=
"1"
{{
$
data
->
status
==
1
?
'selected'
:
''
}}
>
Active
</
option
>
<
option
value
=
"0"
{{
$
data
->
status
==
0
?
'selected'
:
''
}}
>
Inactive
</
option
>
</
select
>
<
label
for
=
"meta_keyword"
>
Meta
Keywords
</
label
>
<
input
type
=
"text"
name
=
"meta_keyword"
class
=
"form-control col-md-5"
id
=
"pageTitle"
value
=
"
{
{$
id
->meta_keyword}
}
"
required
>
value
=
"
{
{$
data
->meta_keyword}
}
"
required
>
<
label
for
=
"meta_desc"
>
Meta
Discription
</
label
>
<
input
type
=
"text"
name
=
"meta_desc"
class
=
"form-control col-md-5"
id
=
"pageTitle"
value
=
"
{
{$
id
->meta_desc}
}
"
required
>
value
=
"
{
{$
data
->meta_desc}
}
"
required
>
<
label
for
=
"cate"
>
Choose
Catagory
</
label
>
<
select
id
=
"cate"
class
=
"form-control col-md-5"
name
=
"cate"
required
>
<
option
selected
value
=
""
>
Choose
...
</
option
>
@
foreach
(
$cat
as
$c
)
<
option
value
=
"
{
{$c->
slug}
}
"
>
{{
$c
->
name
}}
</
option
>
<
option
value
=
"
{
{$c->
id}
}
"
{{
$c
->
slug
==
$data
->
category
?
'selected'
:
''
}}
>
{{
$c
->
name
}}
</
option
>
@
endforeach
<!--
<
option
value
=
"nav"
>
Nav
</
option
>
...
...
@@ -59,8 +59,8 @@
<!--
<
label
for
=
"layout"
>
Select
Layout
</
label
>
<
select
id
=
"layout"
class
=
"form-control col-md-5"
name
=
"layout"
>
<
option
value
=
"oneCol"
{{
$
id
->
type
==
'oneCol'
?
'selected'
:
''
}}
>
1.
One
Column
</
option
>
<
option
value
=
"twoCol"
{{
$
id
->
type
==
'twoCol'
?
'selected'
:
''
}}
>
2.
Two
Columns
</
option
>
<
option
value
=
"oneCol"
{{
$
data
->
type
==
'oneCol'
?
'selected'
:
''
}}
>
1.
One
Column
</
option
>
<
option
value
=
"twoCol"
{{
$
data
->
type
==
'twoCol'
?
'selected'
:
''
}}
>
2.
Two
Columns
</
option
>
</
select
>
-->
</
div
>
...
...
@@ -69,7 +69,7 @@
<
div
class
=
"form-group"
>
<
label
for
=
"content"
>
Page
Content
</
label
>
<
textarea
name
=
"content"
id
=
"content"
rows
=
"10"
cols
=
"80"
>
{{
$
id
->
description
}}
{{
$
data
->
description
}}
</
textarea
>
</
div
>
...
...
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