|
6 | 6 |
|
7 | 7 | @section("content")
|
8 | 8 |
|
9 |
| - <div class='row'> |
10 |
| - <div class='col-sm-12 blogetc_container'> |
11 |
| - @if(\Auth::check() && \Auth::user()->canManageBlogEtcPosts()) |
12 |
| - <div class="text-center"> |
13 |
| - <p class='mb-1'>You are logged in as a blog admin user. |
14 |
| - <br> |
15 |
| - <a href='{{route("blogetc.admin.index")}}' |
16 |
| - class='btn border btn-outline-primary btn-sm '> |
17 |
| - <i class="fa fa-cogs" aria-hidden="true"></i> |
18 |
| - Go To Blog Admin Panel</a> |
19 |
| - </p> |
20 |
| - </div> |
21 |
| - @endif |
| 9 | + <div class='col-sm-12 blogetc_container'> |
| 10 | + @if(\Auth::check() && \Auth::user()->canManageBlogEtcPosts()) |
| 11 | + <div class="text-center"> |
| 12 | + <p class='mb-1'>You are logged in as a blog admin user. |
| 13 | + <br> |
| 14 | + <a href='{{route("blogetc.admin.index")}}' |
| 15 | + class='btn border btn-outline-primary btn-sm '> |
| 16 | + <i class="fa fa-cogs" aria-hidden="true"></i> |
| 17 | + Go To Blog Admin Panel</a> |
| 18 | + </p> |
| 19 | + </div> |
| 20 | + @endif |
22 | 21 |
|
23 |
| - <div class="row"> |
24 |
| - <div class="col-md-9"> |
| 22 | + <div class="row"> |
| 23 | + <div class="col-md-9"> |
25 | 24 |
|
26 |
| - @if($category_chain) |
27 |
| - <div class="container"> |
28 |
| - <div class="row"> |
29 |
| - <div class="col-md-12"> |
30 |
| - @forelse($category_chain as $cat) |
31 |
| - / <a href="{{$cat->url()}}"> |
32 |
| - <span class="cat1">{{$cat->category_name}}</span> |
33 |
| - </a> |
34 |
| - @empty @endforelse |
35 |
| - </div> |
36 |
| - </div> |
| 25 | + @if($category_chain) |
| 26 | + <div class="container"> |
| 27 | + <div class="row"> |
| 28 | + <div class="col-md-12"> |
| 29 | + @forelse($category_chain as $cat) |
| 30 | + / <a href="{{$cat->url()}}"> |
| 31 | + <span class="cat1">{{$cat->category_name}}</span> |
| 32 | + </a> |
| 33 | + @empty @endforelse |
37 | 34 | </div>
|
38 |
| - @endif |
| 35 | + </div> |
| 36 | + </div> |
| 37 | + @endif |
39 | 38 |
|
40 |
| - @if(isset($blogetc_category) && $blogetc_category) |
41 |
| - <h2 class='text-center'> {{$blogetc_category->category_name}}</h2> |
| 39 | + @if(isset($blogetc_category) && $blogetc_category) |
| 40 | + <h2 class='text-center'> {{$blogetc_category->category_name}}</h2> |
42 | 41 |
|
43 |
| - @if($blogetc_category->category_description) |
44 |
| - <p class='text-center'>{{$blogetc_category->category_description}}</p> |
45 |
| - @endif |
| 42 | + @if($blogetc_category->category_description) |
| 43 | + <p class='text-center'>{{$blogetc_category->category_description}}</p> |
| 44 | + @endif |
46 | 45 |
|
47 |
| - @endif |
| 46 | + @endif |
48 | 47 |
|
49 |
| - <div class="container"> |
50 |
| - <div class="row"> |
51 |
| - @forelse($posts as $post) |
52 |
| - @include("blogetc::partials.index_loop") |
53 |
| - @empty |
54 |
| - <div class='alert alert-danger'>No posts</div> |
55 |
| - @endforelse |
56 |
| - </div> |
57 |
| - </div> |
58 |
| - </div> |
59 |
| - <div class="col-md-3"> |
60 |
| - <h6>Blog Categories</h6> |
61 |
| - @forelse($categories as $category) |
62 |
| - <a href="{{$category->url()}}"> |
63 |
| - <h6>{{$category->category_name}}</h6> |
64 |
| - </a> |
| 48 | + <div class="container"> |
| 49 | + <div class="row"> |
| 50 | + @forelse($posts as $post) |
| 51 | + @include("blogetc::partials.index_loop") |
65 | 52 | @empty
|
66 |
| - <a href="#"> |
67 |
| - <h6>No Categories</h6> |
68 |
| - </a> |
| 53 | + <div class="col-md-12"> |
| 54 | + <div class='alert alert-danger'>No posts!</div> |
| 55 | + </div> |
69 | 56 | @endforelse
|
70 | 57 | </div>
|
71 | 58 | </div>
|
72 |
| - |
73 |
| - <div class='text-center col-sm-4 mx-auto'> |
74 |
| - {{$posts->appends( [] )->links()}} |
75 | 59 | </div>
|
76 |
| - @if (config('blogetc.search.search_enabled') ) |
77 |
| - @include('blogetc::sitewide.search_form') |
78 |
| - @endif |
| 60 | + <div class="col-md-3"> |
| 61 | + <h6>Blog Categories</h6> |
| 62 | + @forelse($categories as $category) |
| 63 | + <a href="{{$category->url()}}"> |
| 64 | + <h6>{{$category->category_name}}</h6> |
| 65 | + </a> |
| 66 | + @empty |
| 67 | + <a href="#"> |
| 68 | + <h6>No Categories</h6> |
| 69 | + </a> |
| 70 | + @endforelse |
| 71 | + </div> |
79 | 72 | </div>
|
| 73 | + |
| 74 | + <div class='text-center col-sm-4 mx-auto'> |
| 75 | + {{$posts->appends( [] )->links()}} |
| 76 | + </div> |
| 77 | + @if (config('blogetc.search.search_enabled') ) |
| 78 | + @include('blogetc::sitewide.search_form') |
| 79 | + @endif |
80 | 80 | </div>
|
| 81 | + |
81 | 82 | @endsection
|
0 commit comments