Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
laravel-adminpanel
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
Administrator
laravel-adminpanel
Commits
4de44480
Commit
4de44480
authored
Jan 01, 2018
by
bvipul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Solved errors for blog Category
parent
86e27311
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
BlogCategoryAttribute.php
...BlogCategories/Traits/Attribute/BlogCategoryAttribute.php
+2
-2
create.blade.php
resources/views/backend/blogcategories/create.blade.php
+2
-2
edit.blade.php
resources/views/backend/blogcategories/edit.blade.php
+2
-2
sidebar.blade.php
resources/views/backend/includes/sidebar.blade.php
+2
-2
No files found.
app/Models/BlogCategories/Traits/Attribute/BlogCategoryAttribute.php
View file @
4de44480
...
...
@@ -13,8 +13,8 @@ trait BlogCategoryAttribute
public
function
getActionButtonsAttribute
()
{
return
'<div class="btn-group action-btn">
'
.
$this
->
getEditButtonAttribute
(
'edit-blog-category'
,
'admin.blog
c
ategories.edit'
)
.
'
'
.
$this
->
getDeleteButtonAttribute
(
'delete-blog-category'
,
'admin.blog
c
ategories.destroy'
)
.
'
'
.
$this
->
getEditButtonAttribute
(
'edit-blog-category'
,
'admin.blog
C
ategories.edit'
)
.
'
'
.
$this
->
getDeleteButtonAttribute
(
'delete-blog-category'
,
'admin.blog
C
ategories.destroy'
)
.
'
</div>'
;
}
...
...
resources/views/backend/blogcategories/create.blade.php
View file @
4de44480
...
...
@@ -10,7 +10,7 @@
@
endsection
@
section
(
'content'
)
{{
Form
::
open
([
'route'
=>
'admin.blog
c
ategories.store'
,
'class'
=>
'form-horizontal'
,
'role'
=>
'form'
,
'method'
=>
'post'
,
'id'
=>
'create-permission'
])
}}
{{
Form
::
open
([
'route'
=>
'admin.blog
C
ategories.store'
,
'class'
=>
'form-horizontal'
,
'role'
=>
'form'
,
'method'
=>
'post'
,
'id'
=>
'create-permission'
])
}}
<
div
class
="
box
box
-
info
">
<div class="
box
-
header
with
-
border
">
...
...
@@ -26,7 +26,7 @@
<div class="
form
-
group
">
@include("
backend
.
blogcategories
.
form
")
<div class="
edit
-
form
-
btn
">
{{ link_to_route('admin.blog
c
ategories.index', trans('buttons.general.cancel'), [], ['class' => 'btn btn-danger btn-md']) }}
{{ link_to_route('admin.blog
C
ategories.index', trans('buttons.general.cancel'), [], ['class' => 'btn btn-danger btn-md']) }}
{{ Form::submit(trans('buttons.general.crud.create'), ['class' => 'btn btn-primary btn-md']) }}
<div class="
clearfix
"></div>
</div>
...
...
resources/views/backend/blogcategories/edit.blade.php
View file @
4de44480
...
...
@@ -10,7 +10,7 @@
@
endsection
@
section
(
'content'
)
{{
Form
::
model
(
$blogcategory
,
[
'route'
=>
[
'admin.blog
c
ategories.update'
,
$blogcategory
],
'class'
=>
'form-horizontal'
,
'role'
=>
'form'
,
'method'
=>
'PATCH'
,
'id'
=>
'edit-role'
])
}}
{{
Form
::
model
(
$blogcategory
,
[
'route'
=>
[
'admin.blog
C
ategories.update'
,
$blogcategory
],
'class'
=>
'form-horizontal'
,
'role'
=>
'form'
,
'method'
=>
'PATCH'
,
'id'
=>
'edit-role'
])
}}
<
div
class
="
box
box
-
info
">
<div class="
box
-
header
with
-
border
">
...
...
@@ -26,7 +26,7 @@
<div class="
form
-
group
">
@include("
backend
.
blogcategories
.
form
")
<div class="
edit
-
form
-
btn
">
{{ link_to_route('admin.blog
c
ategories.index', trans('buttons.general.cancel'), [], ['class' => 'btn btn-danger btn-md']) }}
{{ link_to_route('admin.blog
C
ategories.index', trans('buttons.general.cancel'), [], ['class' => 'btn btn-danger btn-md']) }}
{{ Form::submit(trans('buttons.general.crud.update'), ['class' => 'btn btn-primary btn-md']) }}
<div class="
clearfix
"></div>
</div>
...
...
resources/views/backend/includes/sidebar.blade.php
View file @
4de44480
...
...
@@ -90,8 +90,8 @@
<ul
class=
"treeview-menu {{ active_class(Active::checkUriPattern('admin/blog*'), 'menu-open') }}"
style=
"display: none; {{ active_class(Active::checkUriPattern('admin/blog*'), 'display: block;') }}"
>
@permission('view-blog-category')
<li
class=
"{{ active_class(Active::checkUriPattern('admin/blog
c
ategories*')) }}"
>
<a
href=
"{{ route('admin.blog
c
ategories.index') }}"
>
<li
class=
"{{ active_class(Active::checkUriPattern('admin/blog
C
ategories*')) }}"
>
<a
href=
"{{ route('admin.blog
C
ategories.index') }}"
>
<span>
{{ trans('menus.backend.blogcategories.management') }}
</span>
</a>
</li>
...
...
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