Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Community Hub feedback implementation #2325

Merged
merged 2 commits into from
Nov 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions resources/views/community.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,16 +126,16 @@ class="codeweek-svg-button">
{{-- Display this section only if a country is selected and has specific content --}}
@php
$country = app('request')->input('country_iso');
$supportedCountries = ['GR', 'CY', 'MT', 'IT', 'BG', 'TR', 'UA','PL','IE','FR','LU','NL','BE','SK','CZ','NO','IS','FI','SE','PT','ES','LV','LT','HR','SI','DE','AT','CH','RO','MD'];
$supportedCountries = ['GR', 'CY', 'MT', 'IT', 'BG', 'TR', 'UA','PL','IE','FR','LU','NL','BE','SK','CZ','NO','IS','FI','SE','PT','ES','LV','LT','HR','SI','DE','AT','CH','RO','MD','DK'];
@endphp

@if(in_array($country, $supportedCountries))
<section class="community_type_section">
<div class="community_type">
<div class="text">
{{-- Dynamically construct the language keys based on country code --}}
<h2 class="subtitle">@lang("community.hub_{$country}")</h2>
<br/><h3>@lang("community.hub_level_{$country}")</h3>
<h2 class="subtitle">@lang("community.hub_level_{$country}")</h2>
<br/><h3><b>@lang("community.hub_{$country}")</b></h3>
<p>@lang("community.hub_desc_{$country}")</p>
</div>
<div class="image">
Expand Down
Loading