12345678910111213141516171819202122232425262728293031 |
- @extends ('layout')
- @section ('content')
- <a href='{{ route('cntrl.create') }}'>New Post</a>
- <div class='feed'>
- @foreach ($posts as $post)
- <div class='feedPost'>
- <h3>
- <a href="{{ route('cntrl.show', [$post['id']])}}"> {{ $post['title'] }} </a>
- </h3>
- <div class='postText'>
- {{ $post['text'] }}
- </div>
- <div class='commentCount'>
- {{ $post['commentCount'] }}
- </div>
- <div class='commentCount'>
- @foreach($post['tags'] as $tag)
- <a href='/tag/{{$tag['tag']}}'>{{$tag['tag']}}</a>
- @endforeach
- </div>
-
- </div>
- @endforeach
- </div>
- @endsection
- @section ('title')
- create
- @endsection
|