$model->podcast->language_code

This commit is contained in:
Benjamin Takats
2023-01-27 14:35:54 +01:00
parent 2b46013f20
commit 5ecaf43d6b
6 changed files with 92 additions and 51 deletions

View File

@@ -110,6 +110,7 @@
option-value="language"
/>
</div>
@auth
<div></div>
@else
@@ -128,16 +129,16 @@
</div>
</section>
<section class="h-auto">
<div class="px-10 py-2 sm:py-6 mx-auto max-w-7xl">
<div class="px-10 py-2 mx-auto max-w-7xl">
<div class="w-full mx-auto text-left md:text-center">
@if(str(request()->route()->getName())->contains('school.'))
<div>
<h1 class="mb-6 text-5xl font-extrabold leading-none max-w-5xl mx-auto tracking-normal text-gray-200 sm:text-6xl md:text-6xl lg:text-7xl md:tracking-tight">
<h1 class="mb-2 text-5xl font-extrabold leading-none max-w-5xl mx-auto tracking-normal text-gray-200 sm:text-6xl md:text-6xl lg:text-7xl md:tracking-tight">
Bitcoin <span
class="w-full text-transparent bg-clip-text bg-gradient-to-r from-amber-400 via-amber-500 to-amber-200 lg:inline">{{ __('Courses') }}</span>
</h1>
<p class="px-0 mb-6 text-lg text-gray-600 md:text-xl lg:px-24">
<p class="px-0 mb-2 text-lg text-gray-600 md:text-xl lg:px-24">
{{ __('Choose your city, search for courses in the surrounding area and select a topic that suits you.') }}
</p>
</div>
@@ -145,11 +146,11 @@
@if(str(request()->route()->getName())->contains('library.'))
<div>
<h1 class="mb-6 text-5xl font-extrabold leading-none max-w-5xl mx-auto tracking-normal text-gray-200 sm:text-6xl md:text-6xl lg:text-7xl md:tracking-tight">
<h1 class="mb-2 text-5xl font-extrabold leading-none max-w-5xl mx-auto tracking-normal text-gray-200 sm:text-6xl md:text-6xl lg:text-7xl md:tracking-tight">
Bitcoin <span
class="w-full text-transparent bg-clip-text bg-gradient-to-r from-amber-400 via-amber-500 to-amber-200 lg:inline">{{ __('Content') }}</span>
</h1>
<p class="px-0 mb-6 text-lg text-gray-600 md:text-xl lg:px-24">
<p class="px-0 mb-2 text-lg text-gray-600 md:text-xl lg:px-24">
{{ __('Choose a topic that is right for you.') }}
</p>
</div>

View File

@@ -1,26 +1,52 @@
<div
class="flex overflow-auto relative flex-wrap gap-x-1 gap-y-1 justify-left p-0 mx-auto mt-2 mb-2 w-full font-normal text-white align-baseline border-0 border-solid md:mx-auto md:mb-0 md:max-w-screen-2xl"
>
@foreach($tags as $tag)
<div
class="flex flex-wrap justify-left p-0 m-0 text-center align-baseline border-0 border-solid"
style="font-size: 128%; background-position: 0px center; list-style: outside;"
>
<a
href="{{ route(request()->route()->getName(), ['country' => $country, 'filters' => ['tag' => [$tag->id]]]) }}"
<div>
<div
class="flex overflow-auto relative flex-wrap gap-x-1 gap-y-1 justify-left p-0 mx-auto mt-2 mb-2 w-full font-normal text-white align-baseline border-0 border-solid md:mx-auto md:mb-0 md:max-w-screen-2xl"
>
@foreach($languages as $language)
<div
class="flex flex-wrap justify-left p-0 m-0 text-center align-baseline border-0 border-solid"
style="font-size: 128%; background-position: 0px center; list-style: outside;"
>
@if(in_array($tag->id, $filters['tag'] ?? [], false))
<x-badge squared amber>
<i class="fa fa-thin fa-{{ $tag->icon }}"></i>
{{ $tag->name }}
</x-badge>
@else
<x-badge squared gray>
<i class="fa fa-thin fa-{{ $tag->icon }}"></i>
{{ $tag->name }}
</x-badge>
@endif
</a>
</div>
@endforeach
<a
href="{{ route(request()->route()->getName(), ['country' => $country, 'filters' => ['language' => [$language]]]) }}"
>
@if(in_array($language, $filters['language'] ?? [], false))
<x-badge squared amber>
{{ $language }}
</x-badge>
@else
<x-badge squared gray>
{{ $language }}
</x-badge>
@endif
</a>
</div>
@endforeach
</div>
<div
class="flex overflow-auto relative flex-wrap gap-x-1 gap-y-1 justify-left p-0 mx-auto mt-2 mb-2 w-full font-normal text-white align-baseline border-0 border-solid md:mx-auto md:mb-0 md:max-w-screen-2xl"
>
@foreach($tags as $tag)
<div
class="flex flex-wrap justify-left p-0 m-0 text-center align-baseline border-0 border-solid"
style="font-size: 128%; background-position: 0px center; list-style: outside;"
>
<a
href="{{ route(request()->route()->getName(), ['country' => $country, 'filters' => ['tag' => [$tag->id]]]) }}"
>
@if(in_array($tag->id, $filters['tag'] ?? [], false))
<x-badge squared amber>
<i class="fa fa-thin fa-{{ $tag->icon }}"></i>
{{ $tag->name }}
</x-badge>
@else
<x-badge squared gray>
<i class="fa fa-thin fa-{{ $tag->icon }}"></i>
{{ $tag->name }}
</x-badge>
@endif
</a>
</div>
@endforeach
</div>
</div>