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
4b342088
Commit
4b342088
authored
Oct 09, 2017
by
Viral Solani
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://github.com/viralsolani/laravel-adminpanel
parents
bd00f9e1
e93ac586
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
49 additions
and
8 deletions
+49
-8
LICENSE.txt
LICENSE.txt
+21
-0
README.md
README.md
+5
-1
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.
LICENSE.txt
0 → 100644
View file @
4b342088
MIT License
Copyright (c) [2017] Viral Solani [viral.solani@gmail.com]
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
\ No newline at end of file
README.md
View file @
4b342088
# laravel-adminpanel
# laravel-adminpanel
\ No newline at end of file
### License
[
MIT LICENSE
](
https://github.com/viralsolani/laravel-adminpanel/blob/master/LICENSE.txt
)
app/Http/Breadcrumbs/Backend/Backend.php
View file @
4b342088
...
@@ -16,4 +16,5 @@ require __DIR__.'/Blog_Tag.php';
...
@@ -16,4 +16,5 @@ require __DIR__.'/Blog_Tag.php';
require
__DIR__
.
'/Blog_Management.php'
;
require
__DIR__
.
'/Blog_Management.php'
;
require
__DIR__
.
'/Faqs.php'
;
require
__DIR__
.
'/Faqs.php'
;
require
__DIR__
.
'/Module.php'
;
require
__DIR__
.
'/Module.php'
;
require
__DIR__
.
'/Menu.php'
;
require
__DIR__
.
'/LogViewer.php'
;
require
__DIR__
.
'/LogViewer.php'
;
\ No newline at end of file
app/Http/Breadcrumbs/Backend/Menu.php
0 → 100644
View file @
4b342088
<?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 @
bd00f9e1
<?php
require
__DIR__
.
'/Breadcrumbs/Backend/Backend.php'
;
resources/views/backend/includes/partials/breadcrumbs.blade.php
View file @
4b342088
@
if
(
$breadcrumbs
)
@
if
(
$breadcrumbs
)
<
ol
class
="
breadcrumb
">
<
ol
class
="
breadcrumb
">
@foreach (
$breadcrumbs
as
$breadcrumb
)
@foreach (
$breadcrumbs
as
$breadcrumb
)
@if (
!
$breadcrumb
->last
)
@if (
$breadcrumb->url
&& !
$loop
->last
)
<li><a href="
{{
$breadcrumb
->
url
}}
">{{
$breadcrumb->title
}}</a></li>
<li><a href="
{{
$breadcrumb
->
url
}}
">{{
$breadcrumb->title
}}</a></li>
@else
@else
<li class="
active
">{{
$breadcrumb->title
}}</li>
<li class="
active
">{{
$breadcrumb->title
}}</li>
...
...
resources/views/backend/layouts/app.blade.php
View file @
4b342088
...
@@ -58,9 +58,8 @@
...
@@ -58,9 +58,8 @@
<!-- Content Header (Page header) -->
<!-- Content Header (Page header) -->
<section
class=
"content-header"
>
<section
class=
"content-header"
>
@yield('page-header')
@yield('page-header')
<!-- Breadcrumbs would render from routes/breadcrumb.php -->
{{-- Change to Breadcrumbs::render() if you want it to error to remind you to create the breadcrumbs for the given route --}}
{!! Breadcrumbs::render() !!}
{{-- {!! Breadcrumbs::render() !!} --}}
</section>
</section>
<!-- Main content -->
<!-- Main content -->
...
...
routes/breadcrumbs.php
0 → 100755
View file @
4b342088
<?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