laravel-learn-bbs/resources/views/topics/index.blade.php
2018-01-01 14:51:46 +08:00

38 lines
1.2 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@extends('layouts.app')
@section('title', isset($category) ? $category->name : '话题列表')
@section('content')
<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
<div class="panel panel-default">
<div class="panel-heading">
<ul class="nav nav-pills">
<li role="presentation" class="active"><a href="#">最后回复</a></li>
<li role="presentation"><a href="#">最新发布</a></li>
</ul>
</div>
<div class="panel-body">
{{-- 话题列表 --}}
@include('topics._topic_list', ['topics' => $topics])
{{-- 分页 --}}
{!! $topics->render() !!}
</div>
</div>
</div>
<div class="col-lg-3 col-md-3 sidebar">
@include('topics._sidebar')
</div>
</div>
@endsection