summaryrefslogtreecommitdiff
path: root/resources/views/topicpopular.blade.php
blob: e4d2b184c9d5fd7b9dfd1af8aba93e6fd067802f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
@extends ('layouts.app')

@section ('styles')
@include ('layouts.footer-style')
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

@section ('footer')
	@include ('layouts.footer')
@endsection