Update home.blade.php

This commit is contained in:
2021-05-07 07:41:04 +05:00
parent 9db15f4353
commit 5e1f371ff3

View File

@@ -24,6 +24,7 @@
މިއަދުގެ ޚުލާޞާ މިއަދުގެ ޚުލާޞާ
</h2> </h2>
<div class="flex flex-wrap mt-8 sm:mt-16 flex-row-reverse"> <div class="flex flex-wrap mt-8 sm:mt-16 flex-row-reverse">
@isset($todays_pick[0])
<div class="md:w-2/3 w-full pb-6 md:pb-0 md:pr-12"> <div class="md:w-2/3 w-full pb-6 md:pb-0 md:pr-12">
<a <a
href="{{ route('articles.show', [$todays_pick[0]['source']->slug, $todays_pick[0]['guid']]) }}"> href="{{ route('articles.show', [$todays_pick[0]['source']->slug, $todays_pick[0]['guid']]) }}">
@@ -49,6 +50,8 @@
{{ $todays_pick[0]['published_date']->diffForHumans() }}</p> {{ $todays_pick[0]['published_date']->diffForHumans() }}</p>
</a> </a>
</div> </div>
@endisset
@isset($todays_pick[1])
<div class="md:w-1/3 w-full md:pr-12"> <div class="md:w-1/3 w-full md:pr-12">
<a <a
href="{{ route('articles.show', [$todays_pick[1]['source']->slug, $todays_pick[1]['guid']]) }}"> href="{{ route('articles.show', [$todays_pick[1]['source']->slug, $todays_pick[1]['guid']]) }}">
@@ -74,6 +77,7 @@
{{ $todays_pick[1]['published_date']->diffForHumans() }}</p> {{ $todays_pick[1]['published_date']->diffForHumans() }}</p>
</a> </a>
</div> </div>
@endisset
</div> </div>
</div> </div>
@@ -148,8 +152,9 @@
</div> </div>
</div> </div>
@isset($covid19_articles[0])
<div class="md:w-2/3 w-full pb-6 md:pb-0"> <div class="md:w-2/3 w-full pb-6 md:pb-0">
<a href="./blog.html"> <a href="{{ route('articles.show', [$covid19_articles[0]['source']->slug, $covid19_articles[0]->guid]) }}">
<div class="h-96 w-full"> <div class="h-96 w-full">
<img src="{{ $covid19_articles[0]['featured_image'] }}" alt="" <img src="{{ $covid19_articles[0]['featured_image'] }}" alt=""
class="h-full w-full object-cover overflow-hidden rounded shadow" /> class="h-full w-full object-cover overflow-hidden rounded shadow" />
@@ -173,6 +178,7 @@
{{ $covid19_articles[0]['published_date']->diffForHumans() }}</p> {{ $covid19_articles[0]['published_date']->diffForHumans() }}</p>
</a> </a>
</div> </div>
@endisset
</div> </div>
</div> </div>
<!-- covid --> <!-- covid -->