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
f01a7c79
Commit
f01a7c79
authored
Oct 06, 2017
by
bvipul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Breadcrumbs Issue Resolved
parent
ea6edd11
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
23 additions
and
7 deletions
+23
-7
Backend.php
app/Http/Breadcrumbs/Backend/Backend.php
+1
-0
Menu.php
app/Http/Breadcrumbs/Backend/Menu.php
+16
-0
breadcrumbs.php
app/Http/breadcrumbs.php
+0
-3
breadcrumbs.blade.php
...ces/views/backend/includes/partials/breadcrumbs.blade.php
+1
-1
app.blade.php
resources/views/backend/layouts/app.blade.php
+2
-3
breadcrumbs.php
routes/breadcrumbs.php
+3
-0
No files found.
app/Http/Breadcrumbs/Backend/Backend.php
View file @
f01a7c79
...
...
@@ -16,4 +16,5 @@ require __DIR__.'/Blog_Tag.php';
require
__DIR__
.
'/Blog_Management.php'
;
require
__DIR__
.
'/Faqs.php'
;
require
__DIR__
.
'/Module.php'
;
require
__DIR__
.
'/Menu.php'
;
require
__DIR__
.
'/LogViewer.php'
;
\ No newline at end of file
app/Http/Breadcrumbs/Backend/Menu.php
0 → 100644
View file @
f01a7c79
<?php
Breadcrumbs
::
register
(
'admin.menus.index'
,
function
(
$breadcrumbs
)
{
$breadcrumbs
->
parent
(
'admin.dashboard'
);
$breadcrumbs
->
push
(
trans
(
'menus.backend.menus.management'
),
route
(
'admin.menus.index'
));
});
Breadcrumbs
::
register
(
'admin.menus.create'
,
function
(
$breadcrumbs
)
{
$breadcrumbs
->
parent
(
'admin.menus.index'
);
$breadcrumbs
->
push
(
trans
(
'menus.backend.menus.create'
),
route
(
'admin.menus.create'
));
});
Breadcrumbs
::
register
(
'admin.menus.edit'
,
function
(
$breadcrumbs
,
$id
)
{
$breadcrumbs
->
parent
(
'admin.menus.index'
);
$breadcrumbs
->
push
(
trans
(
'menus.backend.menus.edit'
),
route
(
'admin.menus.edit'
,
$id
));
});
app/Http/breadcrumbs.php
deleted
100755 → 0
View file @
ea6edd11
<?php
require
__DIR__
.
'/Breadcrumbs/Backend/Backend.php'
;
resources/views/backend/includes/partials/breadcrumbs.blade.php
View file @
f01a7c79
@
if
(
$breadcrumbs
)
<
ol
class
="
breadcrumb
">
@foreach (
$breadcrumbs
as
$breadcrumb
)
@if (
!
$breadcrumb
->last
)
@if (
$breadcrumb->url
&& !
$loop
->last
)
<li><a href="
{{
$breadcrumb
->
url
}}
">{{
$breadcrumb->title
}}</a></li>
@else
<li class="
active
">{{
$breadcrumb->title
}}</li>
...
...
resources/views/backend/layouts/app.blade.php
View file @
f01a7c79
...
...
@@ -58,9 +58,8 @@
<!-- Content Header (Page header) -->
<section
class=
"content-header"
>
@yield('page-header')
{{-- Change to Breadcrumbs::render() if you want it to error to remind you to create the breadcrumbs for the given route --}}
{{-- {!! Breadcrumbs::render() !!} --}}
<!-- Breadcrumbs would render from routes/breadcrumb.php -->
{!! Breadcrumbs::render() !!}
</section>
<!-- Main content -->
...
...
routes/breadcrumbs.php
0 → 100755
View file @
f01a7c79
<?php
//Just pointed it to where the breadcrumbs are located, in Http/Breadcrumbs/Backend
require
__DIR__
.
'/../app/Http/Breadcrumbs/Backend/Backend.php'
;
\ No newline at end of file
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