laravel-learn-bbs/resources/views/topics/_sidebar.blade.php

45 lines
1.6 KiB
PHP
Raw Permalink Normal View History

2018-01-01 06:51:46 +00:00
<div class="panel panel-default">
2018-01-01 08:32:20 +00:00
<div class="panel-body">
<a href="{{ route('topics.create') }}" class="btn btn-success btn-block"
aria-label="Left Align">
<span class="glyphicon glyphicon-pencil" aria-hidden="true"></span> 新建帖子
</a>
</div>
2018-06-02 10:21:53 +00:00
</div>
@if(count($active_users))
<div class="panel panel-default">
<div class="panel-body active_users">
<div class="text-center">活跃用户</div>
<hr>
@foreach($active_users as $active_user)
<a class="media" href="{{route('users.show',$active_user->id)}}">
<div class="media-left media-middle">
<img src="{{$active_user->avatar}}" width="24px" height="24px" class="img-circle media-object"
alt="header">
</div>
<div class="media-body">
<span class="media-heading">{{$active_user->name}}</span>
</div>
</a>
@endforeach
</div>
</div>
2018-06-02 13:48:16 +00:00
@endif
@if (count($links))
<div class="panel panel-default">
<div class="panel-body active-users">
<div class="text-center">资源推荐</div>
<hr>
@foreach ($links as $link)
<a class="media" href="{{ $link->link }}">
<div class="media-body">
<span class="media-heading">{{ $link->title }}</span>
</div>
</a>
@endforeach
</div>
</div>
2018-06-02 10:21:53 +00:00
@endif