Topics for an article

This commit is contained in:
2020-08-18 01:55:25 +05:00
parent 1f9d3d171f
commit 65d8ac257f
2 changed files with 14 additions and 2 deletions

2
public/css/app.css vendored

File diff suppressed because one or more lines are too long

View File

@@ -74,7 +74,19 @@
</p>
@endforeach
<div class="border-b"></div>
<h5 class="MvTyper text-md font-bold text-center mb-2 mt-2">މައުޟޫޢުތަށް</h5>
<div class="flex flex-wrap gap-2 items-center justify-center">
@foreach ($article->topics as $topic)
<a
href="{{route('topics.show', $topic->slug)}}"
class="mt-4 bg-green-600 no-underline text-sm font-bold hover:bg-white px-3 py-2 rounded border border-green-600 text-white hover:text-green-600 MvTyper">
{{$topic->name}}
</a>
@endforeach
</div>
</div>
</div>
</div>
@endsection