View file trums/views/blogs/index.blade.php

File size: 3.01Kb
@extends('layout')

@section('title')
    Блоги - Список разделов
@stop

@section('content')



    <h1>Блоги</h1>
    
<div class="blog-wrapp">
   
    <nav>
        <ol class="breadcrumb">
            <li class="breadcrumb-item"><a href="/"><i class="fas fa-home"></i></a></li>
            <li class="breadcrumb-item active">Блоги</li>
        </ol>
    </nav>

    <div class="main-new-link">
    <div class="l-block">
    @if (getUser())
       <button class="m">Мои: <i class="fa fa-caret-down" aria-hidden="true"></i></button>
       <ul class="main-link">
           <li><a href="/blogs/active/articles">статьи</a></li>
           <li><a href="/blogs/active/comments">комментарии</a></li>
        </ul>
    @endif
</div>
  
  <div class="l-block">
   <button class="o"> Новые: <i class="fa fa-caret-down" aria-hidden="true"></i></button>
   <ul class="ob-link">
       <li><a href="/articles">статьи</a></li>
       <li><a href="/articles/comments">комментарии</a></li>
    </ul>
   </div>

   <div class="l-block">
    @if (getUser())
            <a class="bt" href="/blogs/create">Добавить статью</a>
    @endif
    </div>
    </div>
    
    
    <div class="blog-block">
    @foreach ($categories as $key => $data)

       <div class="blog-nav">
        <ul>
         <li><a href="/blogs/{{ $data->id }}"><span class="blog-nav-icons"><i class="material-icons">folder</i></span>
               
               {{ $data->name }}   @if ($data->new)
               <span class="count-nav">
                {{ $data->count_blogs }}/<span style="color:green">+{{ $data->new->count_blogs }}</span>
                 </span>
            @else
               <span class="count-nav">
                {{ $data->count_blogs }}
             </span>
            @endif
            </a></li>

        </ul>
 <!--<div class="blog-podcat">
             <ul>
            @if ($data->children->isNotEmpty())
                @foreach ($data->children as $child)
                 
                    <li><a href="/blogs/{{ $child->id }}"><span class="podcat-icon"><i class="material-icons">folder_open</i></span>{{ $child->name }}
                    @if ($child->new)
                       <span class="podcat-count">
                        {{ $child->count_blogs }}/<span style="color:#ff0000">+{{ $child->new->count_blogs }}</span>
                        </span>
                    @else
                       <span class="podcat-count">
                        {{ $child->count_blogs }}
                        </span>
                    @endif
                @endforeach
                </a></li>
            @endif
     </ul>           
        </div>-->
    </div>
       
    @endforeach
</div>
   
    <div class="post-nav-link">
    <a href="/blogs/top">Топ статей</a>
    <a href="/blogs/tags">Облако тегов</a>
    <a href="/blogs/search">Поиск</a>
    <a href="/blogs/authors">Авторы</a>
    <a href="/blogs/rss">RSS</a>
    </div>
    
    </div>
@stop