index.blade.php 1.4 KB

123456789101112131415161718192021222324252627282930
  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">最近动态</h2>
  5. <div class="stream-doing clearfix">
  6. @foreach($doings as $doing)
  7. <section class="stream-doing-item">
  8. <p class="stream-doing-item-info">{{ timestamp_format($doing->created_at) }} {{ $doing->action_text }}</p>
  9. <div class="stream-doing-item-title">
  10. @if(in_array($doing->action,['follow_question','answer','ask','append_reward','answer_adopted']))
  11. <h4><a href="{{ route('ask.question.detail',['id'=>$doing->source_id]) }}">{{ $doing->subject }}</a></h4>
  12. @elseif(in_array($doing->action,['create_article']))
  13. <h4><a href="{{ route('blog.article.detail',['id'=>$doing->source_id]) }}">{{ $doing->subject }}</a></h4>
  14. @elseif(in_array($doing->action,['exchange']))
  15. <h4><a href="{{ route('shop.goods.detail',['id'=>$doing->source_id]) }}">{{ $doing->subject }}</a></h4>
  16. @endif
  17. </div>
  18. @if(in_array($doing->action,['answer']))
  19. <p class="stream-doing-item-quote">
  20. {{ $doing->content }}
  21. </p>
  22. @endif
  23. </section>
  24. @endforeach
  25. </div>
  26. @endsection