Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
palaniapp_demo
Overview
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Hussain Mohamed
palaniapp_demo
Commits
90581d02
Commit
90581d02
authored
Dec 20, 2025
by
Hussain Mohamed
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Slider Image
parent
3a107e10
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
8 deletions
+17
-8
.gitignore
.gitignore
+1
-0
SliderController.php
app/Http/Controllers/Backend/SliderController.php
+4
-4
menu.blade.php
resources/views/backend/base/menu.blade.php
+8
-0
add_edit.blade.php
resources/views/backend/slider/add_edit.blade.php
+0
-0
list.blade.php
resources/views/backend/slider/list.blade.php
+4
-4
No files found.
.gitignore
View file @
90581d02
...
...
@@ -3,6 +3,7 @@
/public/build
/public/hot
/public/storage
/public/uploads/*
/storage/*.key
/vendor
.env
...
...
app/Http/Controllers/Backend/SliderController.php
View file @
90581d02
...
...
@@ -37,7 +37,7 @@ public function storeUpdateSlider(Request $request)
if
(
$request
->
file
(
'slider_image'
)
!=
''
)
{
$image
=
$request
->
file
(
'slider_image'
);
$imageName
=
'
product_image
'
.
time
()
.
'_'
.
str_replace
(
' '
,
'_'
,
$image
->
getClientOriginalName
());
$imageName
=
'
slider_
'
.
time
()
.
'_'
.
str_replace
(
' '
,
'_'
,
$image
->
getClientOriginalName
());
$image
->
move
(
public_path
(
'/uploads/slider_image/'
),
$imageName
);
$imageUrl
=
URL
::
to
(
'/'
)
.
'/uploads/slider_image/'
.
$imageName
;
$dataArr
[
'slider_img'
]
=
$imageUrl
;
...
...
@@ -51,9 +51,9 @@ public function storeUpdateSlider(Request $request)
$insert
=
SliderModel
::
create
(
$dataArr
);
if
(
$insert
[
'id'
]
>
0
)
{
return
redirect
()
->
route
(
'
country
'
)
->
with
(
'success'
,
'Slider Saved Successfully'
);
return
redirect
()
->
route
(
'
slider
'
)
->
with
(
'success'
,
'Slider Saved Successfully'
);
}
else
{
return
redirect
()
->
route
(
'
country
'
)
->
with
(
'error'
,
'Something went wrong!'
);
return
redirect
()
->
route
(
'
slider
'
)
->
with
(
'error'
,
'Something went wrong!'
);
}
}
else
{
...
...
@@ -64,7 +64,7 @@ public function storeUpdateSlider(Request $request)
'currency_code'
=>
"required"
,
]);
$update
=
SliderModel
::
Where
(
'id'
,
$id
)
->
update
(
$dataArr
);
return
redirect
()
->
route
(
'
country
'
)
->
with
(
'success'
,
'Slider Updated Successfully'
);;
return
redirect
()
->
route
(
'
slider
'
)
->
with
(
'success'
,
'Slider Updated Successfully'
);;
}
}
}
resources/views/backend/base/menu.blade.php
View file @
90581d02
...
...
@@ -195,6 +195,8 @@
Country
</a>
</li>
<li
class=
"pe-slide-item"
>
<a
href=
"
<?=
route
(
'language'
)
?>
"
class=
"pe-nav-link"
>
Language
...
...
@@ -269,6 +271,12 @@
</a>
</li>
<li
class=
"pe-slide-item"
>
<a
href=
"
<?=
route
(
'slider'
)
?>
"
class=
"pe-nav-link"
>
Slider
</a>
</li>
<li
class=
"pe-slide-item"
>
<a
href=
"
<?=
route
(
'language'
)
?>
"
class=
"pe-nav-link
@if(request()->routeIs(['language', 'addLanguage'])) active @endif"
>
...
...
resources/views/backend/slider/add_edit.blade.php
View file @
90581d02
This diff is collapsed.
Click to expand it.
resources/views/backend/slider/list.blade.php
View file @
90581d02
...
...
@@ -26,9 +26,9 @@
<thead>
<tr>
<th>
S.No
</th>
<th>
Slider
Name
</th>
<th>
Cod
e
</th>
<th>
Flag
</th>
<th>
Slider
Caption
</th>
<th>
Slider Typ
e
</th>
<th>
Slider Image
</th>
<th>
Status
</th>
<th>
Action
</th>
</tr>
...
...
@@ -49,7 +49,7 @@
</td>
<td><a
data-placement=
"top"
title=
"Status"
data-original-title=
"Status"
href=
"javascript:void(0)"
onclick=
"changeStatus('
<?php
echo
$row
->
id
?>
','
<?php
echo
(
$row
->
status
==
1
)
?
0
:
1
?>
','SliderModel')"
class=
"badge bg-pill bg-
<?php
echo
(
$row
->
status
==
1
)
?
'success'
:
'danger'
?>
"
>
<?php
echo
(
$row
->
status
==
1
)
?
'Active'
:
'In-Active'
?>
</a></td>
<td>
<a
data-toggle=
"tooltip"
data-placement=
"top"
title=
"Edit"
href=
"
<?php
echo
route
(
'add
Model
'
,
[
$row
->
id
])
?>
"
class=
"btn btn-sm btn-warning"
><i
class=
"bi bi-pencil-fill"
></i></a>
<a
data-toggle=
"tooltip"
data-placement=
"top"
title=
"Edit"
href=
"
<?php
echo
route
(
'add
Slider
'
,
[
$row
->
id
])
?>
"
class=
"btn btn-sm btn-warning"
><i
class=
"bi bi-pencil-fill"
></i></a>
<a
data-toggle=
"tooltip"
data-placement=
"top"
title=
"Delete"
data-original-title=
"Delete"
href=
"javascript:void(0)"
onclick=
"commonDelete('
<?php
echo
$row
->
id
?>
','SliderModel')"
class=
"btn btn-sm btn-danger"
><i
class=
"bi bi-trash-fill"
></i></a>
</td>
</tr>
...
...
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