1
- <h2 ><a href =' #' class =" not-clickable" >Laravel Blogger Admin Panel</a ></h2 >
2
- <p >Welcome to the admin panel for your blog posts.</p >
3
-
4
-
5
- <ul class =" list-group mb-3" >
6
- <li class =" list-group-item justify-content-between lh-condensed" >
1
+ <ul class =" list-group" >
2
+ <li class =" list-group-item list-group-color justify-content-between lh-condensed" >
7
3
<div >
8
- <h6 class =" my-0" ><a href =" {{ route (' blogetc.admin.index' ) } }" >Admin Home </a >
9
- <span class =" text-muted" >(<?php
10
- $categoryCount = \WebDevEtc \BlogEtc \Models \BlogEtcPost:: count ();
4
+ <h6 class =" my-0" ><a href =" {{ route (' blogetc.admin.index' ) } }" >Dashboard </a >
5
+ <span class =" text-muted" >(<?php
6
+ $categoryCount = \WebDevEtc \BlogEtc \Models \BlogEtcPost:: count ();
11
7
12
- echo $categoryCount . " " . str_plural (" Post" , $categoryCount );
8
+ echo $categoryCount . " " . str_plural (" Post" , $categoryCount );
13
9
14
- ? > )</span >
10
+ ? > )</span >
15
11
</h6 >
16
12
<small class =" text-muted" >Overview of your posts</small >
17
13
18
14
<div class =" list-group " >
19
15
20
16
<a href =' {{ route (' blogetc.admin.index' ) } }'
21
- class =' list-group-item list-group-item-action @if (\Request:: route ()-> getName () === ' blogetc.admin.index' ) active @endif ' ><i
17
+ class =' list-group-item list-group-color list-group- item list-group-color -action @if (\Request:: route ()-> getName () === ' blogetc.admin.index' ) active @endif ' ><i
22
18
class =" fa fa-th fa-fw"
23
19
aria-hidden =" true" ></i >
24
20
All Posts</a >
25
21
<a href =' {{ route (' blogetc.admin.create_post' ) } }'
26
- class =' list-group-item list-group-item-action @if (\Request:: route ()-> getName () === ' blogetc.admin.create_post' ) active @endif ' ><i
22
+ class =' list-group-item list-group-color list-group- item list-group-color -action @if (\Request:: route ()-> getName () === ' blogetc.admin.create_post' ) active @endif ' ><i
27
23
class =" fa fa-plus fa-fw" aria-hidden =" true" ></i >
28
24
Add Post</a >
29
25
</div >
30
26
</div >
31
-
32
27
</li >
33
28
34
29
35
- <li class =" list-group-item justify-content-between lh-condensed" >
30
+ <li class =" list-group-item list-group-color justify-content-between lh-condensed" >
36
31
<div >
37
32
<h6 class =" my-0" ><a href =" {{ route (' blogetc.admin.comments.index' ) } }" >Comments</a >
38
33
39
- <span class =" text-muted" >(<?php
40
- $commentCount = \WebDevEtc \BlogEtc \Models \BlogEtcComment:: withoutGlobalScopes ()-> count ();
34
+ <span class =" text-muted" >(<?php
35
+ $commentCount = \WebDevEtc \BlogEtc \Models \BlogEtcComment:: withoutGlobalScopes ()-> count ();
41
36
42
- echo $commentCount . " " . str_plural (" Comment" , $commentCount );
37
+ echo $commentCount . " " . str_plural (" Comment" , $commentCount );
43
38
44
- ? > )</span >
39
+ ? > )</span >
45
40
</h6 >
46
41
<small class =" text-muted" >Manage your comments</small >
47
42
48
43
<div class =" list-group " >
49
44
<a href =' {{ route (' blogetc.admin.comments.index' ) } }'
50
- class =' list-group-item list-group-item-action @if (\Request:: route ()-> getName () === ' blogetc.admin.comments.index' && ! \Request:: get (" waiting_for_approval" ) ) active @endif ' ><i
45
+ class =' list-group-item list-group-color list-group- item list-group-color -action @if (\Request:: route ()-> getName () === ' blogetc.admin.comments.index' && ! \Request:: get (" waiting_for_approval" ) ) active @endif ' ><i
51
46
class =" fa fa-fw fa-comments" aria-hidden =" true" ></i >
52
47
All Comments</a >
53
48
54
49
55
50
<?php $comment_approval_count = \WebDevEtc \BlogEtc \Models \BlogEtcComment:: withoutGlobalScopes ()-> where (" approved" , false )-> count (); ? >
56
51
57
52
<a href =' {{ route (' blogetc.admin.comments.index' ) } } ?waiting_for_approval=true'
58
- class =' list-group-item list-group-item- action @if (\Request:: route ()-> getName () === ' blogetc.admin.comments.index' && \Request:: get (" waiting_for_approval" ) ) active @elseif ($comment_approval_count > 0 ) list-group-item-warning @endif ' ><i
53
+ class =' list-group-item list-group-color list-group- item list-group-color- action @if (\Request:: route ()-> getName () === ' blogetc.admin.comments.index' && \Request:: get (" waiting_for_approval" ) ) active @elseif ($comment_approval_count > 0 ) list-group-item list-group-color -warning @endif ' ><i
59
54
class =" fa fa-fw fa-comments" aria-hidden =" true" ></i >
60
55
{{ $comment_approval_count } }
61
56
Waiting for approval </a >
@@ -65,25 +60,25 @@ class="fa fa-fw fa-comments" aria-hidden="true"></i>
65
60
</li >
66
61
67
62
68
- <li class =" list-group-item justify-content-between lh-condensed" >
63
+ <li class =" list-group-item list-group-color justify-content-between lh-condensed" >
69
64
<div >
70
65
<h6 class =" my-0" ><a href =" {{ route (' blogetc.admin.categories.index' ) } }" >Categories</a >
71
- <span class =" text-muted" >(<?php
72
- $postCount = \WebDevEtc \BlogEtc \Models \BlogEtcCategory:: count ();
73
- echo $postCount . " " . str_plural (" Category" , $postCount );
74
- ? > )</span >
66
+ <span class =" text-muted" >(<?php
67
+ $postCount = \WebDevEtc \BlogEtc \Models \BlogEtcCategory:: count ();
68
+ echo $postCount . " " . str_plural (" Category" , $postCount );
69
+ ? > )</span >
75
70
</h6 >
76
71
77
72
78
73
<small class =" text-muted" >Blog post categories</small >
79
74
80
75
<div class =" list-group " >
81
76
<a href =' {{ route (' blogetc.admin.categories.index' ) } }'
82
- class =' list-group-item list-group-item-action @if (\Request:: route ()-> getName () === ' blogetc.admin.categories.index' ) active @endif ' ><i
77
+ class =' list-group-item list-group-color list-group- item list-group-color -action @if (\Request:: route ()-> getName () === ' blogetc.admin.categories.index' ) active @endif ' ><i
83
78
class =" fa fa-object-group fa-fw" aria-hidden =" true" ></i >
84
79
All Categories</a >
85
80
<a href =' {{ route (' blogetc.admin.categories.create_category' ) } }'
86
- class =' list-group-item list-group-item-action @if (\Request:: route ()-> getName () === ' blogetc.admin.categories.create_category' ) active @endif ' ><i
81
+ class =' list-group-item list-group-color list-group- item list-group-color -action @if (\Request:: route ()-> getName () === ' blogetc.admin.categories.create_category' ) active @endif ' ><i
87
82
class =" fa fa-plus fa-fw" aria-hidden =" true" ></i >
88
83
Add Category</a >
89
84
</div >
@@ -92,33 +87,23 @@ class="fa fa-plus fa-fw" aria-hidden="true"></i>
92
87
</li >
93
88
94
89
@if (config (" blogetc.image_upload_enabled" ) )
95
- <li class =" list-group-item justify-content-between lh-condensed" >
96
- <div >
97
- <h6 class =" my-0" ><a href =" {{ route (' blogetc.admin.images.upload' ) } }" >Upload images</a ></h6 >
98
-
99
-
100
- <div class =" list-group " >
101
-
102
- <a href =' {{ route (' blogetc.admin.images.all' ) } }'
103
- class =' list-group-item list-group-item-action @if (\Request:: route ()-> getName () === ' blogetc.admin.images.all' ) active @endif ' ><i
104
- class =" fa fa-picture-o fa-fw" aria-hidden =" true" ></i >
105
- View All</a >
106
-
107
-
108
-
109
- <a href =' {{ route (' blogetc.admin.images.upload' ) } }'
110
- class =' list-group-item list-group-item-action @if (\Request:: route ()-> getName () === ' blogetc.admin.images.upload' ) active @endif ' ><i
111
- class =" fa fa-upload fa-fw" aria-hidden =" true" ></i >
112
- Upload</a >
113
-
114
-
90
+ <li class =" list-group-item list-group-color justify-content-between lh-condensed" >
91
+ <div >
92
+ <h6 class =" my-0" ><a href =" {{ route (' blogetc.admin.images.upload' ) } }" >Upload images</a ></h6 >
93
+
94
+ <div class =" list-group " >
95
+
96
+ <a href =' {{ route (' blogetc.admin.images.all' ) } }'
97
+ class =' list-group-item list-group-color list-group-item list-group-color-action @if (\Request:: route ()-> getName () === ' blogetc.admin.images.all' ) active @endif ' ><i
98
+ class =" fa fa-picture-o fa-fw" aria-hidden =" true" ></i >
99
+ View All</a >
100
+
101
+ <a href =' {{ route (' blogetc.admin.images.upload' ) } }'
102
+ class =' list-group-item list-group-color list-group-item list-group-color-action @if (\Request:: route ()-> getName () === ' blogetc.admin.images.upload' ) active @endif ' ><i
103
+ class =" fa fa-upload fa-fw" aria-hidden =" true" ></i >
104
+ Upload</a >
105
+ </div >
115
106
</div >
116
-
117
-
118
- </div >
119
-
120
- </li >
121
- @endif
122
-
123
-
107
+ </li >
108
+ @endif
124
109
</ul >
0 commit comments