answers.blade.php 1.4 KB

1234567891011121314151617181920212223242526272829303132
  1. @extends('theme::layout.space')
  2. @section('seo_title')@if(Auth()->check() && Auth()->user()->id === $userInfo->id )我@else{{ $userInfo->name }} @endif 的回答 - {{ Setting()->get('website_name') }}@endsection
  3. @section('space_content')
  4. <h2 class="h4">{{ $answers->total() }} 个回答</h2>
  5. <div class="stream-list board border-top">
  6. @foreach($answers as $answer)
  7. <section class="stream-list-item">
  8. <div class="qa-rank">
  9. <div class="answers answered ">
  10. {{ $answer->supports }} <small> 赞同 </small>
  11. </div>
  12. </div>
  13. <div class="summary">
  14. <h2 class="title">
  15. <a href="{{ route('ask.question.detail',['question_id'=>$answer->question_id]) }}" title="{{ $answer->question_title }}">{{ str_limit($answer->question_title,60) }}</a>
  16. @if($answer->adopted_at>0) <label class="label label-warning ml-5">已采纳</label> @endif
  17. </h2>
  18. <p class="text-muted mt-10">{{ str_limit(strip_tags($answer->content),300) }}</p>
  19. <p class="text-muted">回答于 {{ timestamp_format($answer->created_at) }}</p>
  20. </div>
  21. </section>
  22. @endforeach
  23. </div>
  24. <div class="text-center">
  25. {!! str_replace('/?', '?', $answers->render()) !!}
  26. </div>
  27. @endsection