first commit
This commit is contained in:
83
resources/views/category/show.blade.php
Normal file
83
resources/views/category/show.blade.php
Normal file
@@ -0,0 +1,83 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('title', '首页')
|
||||
|
||||
@section('content')
|
||||
@if ($advert)
|
||||
<div id="lyg_sub_banner"><img src="{{ $advert->cover_path }}"/></div>
|
||||
@endif
|
||||
<div class="ly_page ly_min">
|
||||
<div class="ly_wrap">
|
||||
<div class="lyg_page_box">
|
||||
<div class="lyg_lpage">
|
||||
<div id="lyg_left_bar">
|
||||
<h2>{{ $parent->title }}</h2>
|
||||
<dl>
|
||||
@foreach ($parent->childrens as $children)
|
||||
<dt><a href="{{ route('category.show',$children) }}">{{ $children->title }}</a></dt>
|
||||
@endforeach
|
||||
</dl>
|
||||
</div>
|
||||
</div>
|
||||
<div class="lyg_rpage">
|
||||
<div class="lyg_rpage_box">
|
||||
<div class="lyg_page_title">
|
||||
<h2>{{ $parent->title }}</h2>
|
||||
<div id="lyg_breadcrumb">
|
||||
|
||||
<a class="ly_home" href="#">首页</a>
|
||||
<font>></font>
|
||||
@if ($parent->id==$category->id)
|
||||
{{ $category->title }}
|
||||
@else
|
||||
{{ $parent->title }}
|
||||
<font>></font>
|
||||
{{ $category->title }}
|
||||
@endif
|
||||
</div>
|
||||
<div class="lyg_clear"></div>
|
||||
</div>
|
||||
<div id="lyg_news" class="lyg_container_content">
|
||||
<div id="lyg_news_0">
|
||||
@foreach ($articles as $article)
|
||||
<div class="lyg_item lyg_top">
|
||||
<div class="lyg_lbar">
|
||||
<a href="{{ route('article.show',$article) }}">
|
||||
<img src="{{ $article->cover_path }}" width="270" height="174"/>
|
||||
</a>
|
||||
</div>
|
||||
<div class="lyg_rbar">
|
||||
<h3><a href="{{ route('article.show',$article) }}">{{ $article->title }}</a></h3>
|
||||
<div class="lyg_intro">
|
||||
{{ $article->description }}
|
||||
</div>
|
||||
<div class="lyg_date">
|
||||
更新时间:{{ $article->created_at }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="lyg_clear"></div>
|
||||
</div>
|
||||
@endforeach
|
||||
<div class="lyg_blank25"></div>
|
||||
@if ($articles->isNotEmpty())
|
||||
{{ $articles->links('layouts.pagination') }}
|
||||
@endif
|
||||
{{-- <div class="Page clearfix">--}}
|
||||
{{-- <span>46 条记录 1/6 页</span>--}}
|
||||
{{-- <a href="">下一页</a>--}}
|
||||
{{-- <span class="current">1</span>--}}
|
||||
{{-- <a href=""> 2 </a>--}}
|
||||
{{-- <a href=""> 3 </a>--}}
|
||||
{{-- <a href=""> 4 </a>--}}
|
||||
{{-- <a href=""> 5 </a>--}}
|
||||
{{-- <a href="">下5页</a>--}}
|
||||
{{-- <a href="">末页</a>--}}
|
||||
{{-- </div>--}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="lyg_clear"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
Reference in New Issue
Block a user