@if(empty($notes))
    <div class="empty">
        没有记录
    </div>
@else
    @foreach($notes as $note)
        <div class="item">
            <div class="action">
                @if($note['_isInTopic'])
                    <a class="remove" href="javascript:;" data-ajax-request-loading data-ajax-request="/topic/note_remove/{{$topic['id']}}/{{$note['id']}}">移除</a>
                @else
                    <a href="javascript:;" data-ajax-request-loading data-ajax-request="/topic/note_add/{{$topic['id']}}/{{$note['id']}}">加入</a>
                @endif
            </div>
            <a href="/n/{{$note['alias']}}" class="title" target="_blank">
                {{$note['title']}}
            </a>
        </div>
    @endforeach
@endif