66 lines
2.7 KiB
PHP
66 lines
2.7 KiB
PHP
@extends('layouts.app')
|
|
|
|
@section('title', '首页')
|
|
|
|
@section('content')
|
|
<div class="container mg-t-b container_col">
|
|
<div class="page-left">
|
|
<div class="pagelist">
|
|
<h1>{{ $parent->title }}</h1>
|
|
<ul class="listbox">
|
|
@if ($parent->childrens->isNotEmpty())
|
|
@foreach ($parent->childrens as $child)
|
|
<li @if($category->id==$child->id) class="active" @endif>
|
|
<a href="{{ $child->link }}">{{ $child->title }}</a>
|
|
@if ($child->childrens->isNotEmpty())
|
|
<ul class="dropdown">
|
|
@foreach ($child->childrens as $childd)
|
|
<li @if($category->id==$child->id) class="active" @endif>
|
|
<a href="{{ $childd->link }}">{{ $childd->title }}</a>
|
|
</li>
|
|
@endforeach
|
|
</ul>
|
|
@endif
|
|
</li>
|
|
@endforeach
|
|
@endif
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div class="page-right">
|
|
<div class="pagelujing">
|
|
<div class="name">{{ $category->title }}</div>
|
|
<span>
|
|
您当前所在位置:<a href="/">首页</a> >
|
|
@if ($parent->id!=$category->id)
|
|
<a href="{{ $parent->link }}">{{ $parent->title }}</a> >
|
|
@endif
|
|
<a href="{{ $category->link }}">{{ $category->title }}</a> >
|
|
</span>
|
|
</div>
|
|
<div class="news-txt ny mg-t-b">
|
|
<div class="news-con">
|
|
<ul class="newslist ny">
|
|
@if ($articles->isNotEmpty())
|
|
@foreach ($articles as $article)
|
|
<li>
|
|
<a href="{{ $article->link }}">{{ $article->title }}</a><span>{{ $article->created_at->format('m-d') }}</span>
|
|
</li>
|
|
|
|
@endforeach
|
|
@endif
|
|
</ul>
|
|
|
|
<div class="tcdPageCode">
|
|
@if ($articles->isNotEmpty())
|
|
{{ $articles->links('layouts.pagination') }}
|
|
@endif
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<div class="clearfix"></div>
|
|
</div>
|
|
@endsection
|