diff options
| author | horus | 2020-04-13 23:25:42 +0200 |
|---|---|---|
| committer | horus | 2020-04-13 23:25:42 +0200 |
| commit | bf823c5063b5ad863e7e7cc313fb1406ddd14a98 (patch) | |
| tree | 85eb9260be6466143bb99854d563f385f1c61ba7 /resources/views/topicpopular.blade.php | |
| parent | 075716a5c2698e2687069767cf8d09d4c27487a5 (diff) | |
| download | curious-bf823c5063b5ad863e7e7cc313fb1406ddd14a98.tar.gz | |
Add new page popular topics.
Diffstat (limited to 'resources/views/topicpopular.blade.php')
| -rw-r--r-- | resources/views/topicpopular.blade.php | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/resources/views/topicpopular.blade.php b/resources/views/topicpopular.blade.php new file mode 100644 index 0000000..f6a2c8a --- /dev/null +++ b/resources/views/topicpopular.blade.php @@ -0,0 +1,37 @@ +@extends ('layouts.app') + +@section ('styles') +html { + height: inherit; +} +@endsection + +@section ('content') + +<div class="container"> + + <div style="margin-top: 20px"></div> + <div class="card"> + <h1 class="card-header"> + Popular Topics + </h1> + <div class="card-body"> + <p class="card-text"> + <strong>Hint:</strong> <em>You are looking at popular topics. If you are interested in the most popular articles instead, <a href="{{ route('popular') }}" alt="popular articles">click here instead</a>.</em> + </p> + </div> + </div> + <div style="margin-bottom: 20px"></div> + + <div class="text-center card"> + <div class="card-body"> + @foreach ($topics as $topic) + @if ( "" != $topic->name ) + <a href="{{ route('topic', $topic->name) }}" class="btn btn-lg btn-primary mx-1 my-1">{{ ucwords($topic->name) }} ({{ $topic->count }} Articles)</a> + @endif + @endforeach + </div> + </div> + +</div> +@endsection |
