2018-01-01 04:00:45 +00:00
|
|
|
|
@extends('layouts.app')
|
|
|
|
|
|
2018-01-01 06:51:46 +00:00
|
|
|
|
@section('title', isset($category) ? $category->name : '话题列表')
|
|
|
|
|
|
2018-01-01 04:00:45 +00:00
|
|
|
|
@section('content')
|
2018-01-01 06:51:46 +00:00
|
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-lg-9 col-md-9 topic-list">
|
|
|
|
|
@if (isset($category))
|
|
|
|
|
<div class="alert alert-info" role="alert">
|
|
|
|
|
{{ $category->name }} :{{ $category->description }}
|
|
|
|
|
</div>
|
|
|
|
|
@endif
|
|
|
|
|
|
2018-01-01 04:00:45 +00:00
|
|
|
|
<div class="panel panel-default">
|
2018-01-01 06:51:46 +00:00
|
|
|
|
|
2018-01-01 04:00:45 +00:00
|
|
|
|
<div class="panel-heading">
|
2018-01-01 06:51:46 +00:00
|
|
|
|
<ul class="nav nav-pills">
|
|
|
|
|
<li role="presentation" class="active"><a href="#">最后回复</a></li>
|
|
|
|
|
<li role="presentation"><a href="#">最新发布</a></li>
|
|
|
|
|
</ul>
|
2018-01-01 04:00:45 +00:00
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="panel-body">
|
2018-01-01 06:51:46 +00:00
|
|
|
|
{{-- 话题列表 --}}
|
|
|
|
|
@include('topics._topic_list', ['topics' => $topics])
|
|
|
|
|
{{-- 分页 --}}
|
|
|
|
|
{!! $topics->render() !!}
|
2018-01-01 04:00:45 +00:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2018-01-01 06:51:46 +00:00
|
|
|
|
|
|
|
|
|
<div class="col-lg-3 col-md-3 sidebar">
|
|
|
|
|
@include('topics._sidebar')
|
|
|
|
|
</div>
|
2018-01-01 04:00:45 +00:00
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
@endsection
|