@php $featuresShow = App\Models\HomepageSetting::get('features_show', true); $featuresLabel = App\Models\HomepageSetting::get('features_label', 'WHY CHOOSE US'); $featuresHeading = App\Models\HomepageSetting::get('features_heading', 'Everything a Serious Student Needs'); $featuresSubtext = App\Models\HomepageSetting::get('features_subtext', 'Our integrated web portal combines premium video spaces, dynamic worksheets, and installment invoicing to streamline learning.'); $featuresList = App\Models\HomepageSetting::get('features_list_json', []); $card1 = App\Models\HomepageSetting::get('features_card1_json', []); $card2 = App\Models\HomepageSetting::get('features_card2_json', []); $card3 = App\Models\HomepageSetting::get('features_card3_json', []); $featuresFloat = App\Models\HomepageSetting::get('features_float_animation', true); $featuresSpeed = App\Models\HomepageSetting::get('features_animation_speed', 'Medium'); @endphp @if($featuresShow)
@if(isset($activeEditingSection) && $activeEditingSection === 'features')
Editing: Why CognitiaGlobal
@endif
{{ $featuresLabel }}

{{ $featuresHeading }}

{{ $featuresSubtext }}

@foreach($featuresList as $feature) @if($feature['visible'] ?? true)
@if(($feature['icon'] ?? '') === 'video-camera') 📹 @elseif(($feature['icon'] ?? '') === 'collection') 📚 @elseif(($feature['icon'] ?? '') === 'calendar') 📅 @elseif(($feature['icon'] ?? '') === 'credit-card') 💳 @else ✦ @endif

{{ $feature['title'] ?? '' }}

{{ $feature['description'] ?? '' }}

@endif @endforeach
@if(!empty($card1))
Live Room {{ $card1['countdown'] ?? 'Starting in 15 min' }}

{{ $card1['title'] ?? 'Live Class Starting Soon' }}

{{ $card1['subject'] ?? 'Mathematics AA HL' }}

Taught by: {{ $card1['teacher'] ?? 'Mr. Arjun Krishnan' }}

@endif @if(!empty($card2))

{{ $card2['title'] ?? 'Your Next Installment' }}

{{ $card2['amount'] ?? '$150' }} {{ $card2['due_text'] ?? 'Due in 3 days' }}
{{ $card2['progress'] ?? '2 of 3 installments paid' }}
@endif @if(!empty($card3))
✓

{{ $card3['title'] ?? 'Assignment Graded ✓' }}

{{ $card3['subject'] ?? 'Physics HL' }}

Your Score: {{ $card3['score'] ?? '87/100' }}

"{{ $card3['feedback'] ?? 'Great work!' }}"

@endif
@endif