@extends('layouts.app')

@section('title', $article->title)


@section('content')
    <!-- 详情 -->
    <div class="details">
        <div class="contant">
            <div class="page-left">
                <div class="pagelist">
                    <h1>{{ $parent->title }}</h1>
                    <ul class="listbox">
                        @if ($parent->children->isNotEmpty())
                            @foreach ($parent->children as $children)
                                <li @if($category->id==$children->id) class="active" @endif>
                                    <a href="{{ $children->link }}">{{ $children->title }}</a>
                                </li>
                            @endforeach
                        @endif
                    </ul>
                </div>
            </div>
            <div class="page-right">
                <div class="pagelujing">
                    <div class="name">{{ $category->title }}</div>
                    <span>
                        您当前所在位置：<a href="/">首页</a>
                        @if ($category->id!=$parent->id)
                            &gt; <a href="{{ $parent->link }}">{{ $parent->title }}</a> &gt;
                        @endif
                        &gt; <a href="{{ $category->link }}">{{ $category->title }}</a>
                    </span>
                </div>
                <div class="news-txt ny mg-t-b">
                    <div class="biaoti">{{ $article->title }}</div>
                    <div class="sshuomign"><span>发布时间：{{ $article->created_at->format('Y-m-d') }}</span></div>
                    <div class="article_txt">
                        {{--                        @if ($article->cover)--}}
                        {{--                            <img src="{{ $article->cover_path }}">--}}
                        {{--                        @endif--}}
                        {!! $article->content !!}
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- end 详情 -->
@endsection
