Moved to blade components
This commit is contained in:
@@ -1,74 +1,73 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('content')
|
||||
@if(!isset($articles))
|
||||
<x-layout>
|
||||
@if(!isset($articles))
|
||||
<div class="mb-10">
|
||||
<div>
|
||||
<h3
|
||||
class="text-gray-800 font-bold text-3xl text-center mt-3 mb-2 mr-3 MvAamu"
|
||||
style="direction: rtl;"
|
||||
>
|
||||
ރައްކާކުރެވިފައި އެއްވެސް ލިޔުމެއް ނެއް
|
||||
</h3>
|
||||
</div>
|
||||
</div>
|
||||
@else
|
||||
<div class="mb-10">
|
||||
<div>
|
||||
<h3
|
||||
class="text-gray-800 font-bold text-3xl text-center mt-3 mb-2 mr-3 MvAamu"
|
||||
style="direction: rtl;"
|
||||
class="text-gray-800 font-bold text-3xl text-right mt-3 mb-2 mr-3 MvAamu"
|
||||
>
|
||||
ރައްކާކުރެވިފައި އެއްވެސް ލިޔުމެއް ނެއް
|
||||
ރައްކާ ކުރެވިފައިާ ލިޔުންތައް
|
||||
</h3>
|
||||
</div>
|
||||
</div>
|
||||
@else
|
||||
<div class="mb-10">
|
||||
<div>
|
||||
<h3
|
||||
class="text-gray-800 font-bold text-3xl text-right mt-3 mb-2 mr-3 MvAamu"
|
||||
>
|
||||
ރައްކާ ކުރެވިފައިާ ލިޔުންތައް
|
||||
</h3>
|
||||
</div>
|
||||
|
||||
<div class="flex justify-end mt-5">
|
||||
<!-- post cards -->
|
||||
<div class="w-full lg:w-2/3">
|
||||
@foreach($articles as $article)
|
||||
<div>
|
||||
<a
|
||||
href="{{route('articles.show',['source' => $article->source->slug, 'guid' => $article->guid])}}"
|
||||
class="w-full flex mb-10 shadow rounded-lg"
|
||||
>
|
||||
<div
|
||||
class="bg-white rounded px-4 flex flex-col flex-grow justify-between leading-normal"
|
||||
|
||||
<div class="flex justify-end mt-5">
|
||||
<!-- post cards -->
|
||||
<div class="w-full lg:w-2/3">
|
||||
@foreach($articles as $article)
|
||||
<div>
|
||||
<a
|
||||
href="{{route('articles.show',['source' => $article->source->slug, 'guid' => $article->guid])}}"
|
||||
class="w-full flex mb-10 shadow rounded-lg"
|
||||
>
|
||||
<div>
|
||||
<div
|
||||
class="mt-5 text-gray-700 font-semibold text-1xl mb-2 text-right MvTyper hover:underline"
|
||||
style="direction:rtl;"
|
||||
>
|
||||
{{$article->title}}
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div
|
||||
class="flex items-center justify-end mt-3 mb-3"
|
||||
>
|
||||
<p
|
||||
class="font-semibold text-gray-700 text-sm capitalize MvTyper py-4"
|
||||
<div
|
||||
class="bg-white rounded px-4 flex flex-col flex-grow justify-between leading-normal"
|
||||
>
|
||||
<div>
|
||||
<div
|
||||
class="mt-5 text-gray-700 font-semibold text-1xl mb-2 text-right MvTyper hover:underline"
|
||||
style="direction:rtl;"
|
||||
>
|
||||
{{$article->source->name}}
|
||||
</p>
|
||||
<p class="text-gray-600 text-xs ml-1 MvTyper" style="direction: rtl;">
|
||||
|
||||
{{$article->published_date->locale('dv')->isoFormat('Do MMMM YYYY')}}
|
||||
|
||||
—
|
||||
</p>
|
||||
{{$article->title}}
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div
|
||||
class="flex items-center justify-end mt-3 mb-3"
|
||||
>
|
||||
<p
|
||||
class="font-semibold text-gray-700 text-sm capitalize MvTyper py-4"
|
||||
>
|
||||
{{$article->source->name}}
|
||||
</p>
|
||||
<p class="text-gray-600 text-xs ml-1 MvTyper" style="direction: rtl;">
|
||||
|
||||
{{$article->published_date->locale('dv')->isoFormat('Do MMMM YYYY')}}
|
||||
|
||||
—
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</a>
|
||||
</div>
|
||||
@endforeach
|
||||
|
||||
|
||||
</a>
|
||||
</div>
|
||||
@endforeach
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@endsection
|
||||
@endif
|
||||
|
||||
</x-layout>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user