summaryrefslogtreecommitdiff
path: root/resources/views/topicpopular.blade.php
diff options
context:
space:
mode:
Diffstat (limited to 'resources/views/topicpopular.blade.php')
-rw-r--r--resources/views/topicpopular.blade.php37
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