@foreach ($data['languages'] as $language)
@php
$encoded = json_decode(@$data['translates'][$language->code][0]->data);
@endphp
@if (@$data['sections']->name)
@error('name')
{{ $message }}
@enderror
@endif
@if (@$data['sections']->description)
@error('description')
{{ $message }}
@enderror
@endif
{{-- dynamic sections --}}
@if (@$data['sections']->key == 'social_links') {{-- -------------------------------- Social link --------------------------------- --}}
@endif
@if (@$data['sections']->key == 'statement') {{-- -------------------------------- Statement --------------------------------- --}}
{{___('common.Details')}}
@endif
@if (@$data['sections']->key == 'study_at') {{-- -------------------------------- study_at --------------------------------- --}}
{{___('common.Details')}}
@php
$study_at = json_decode(@$data['translates'][$language->code][0]->data);
@endphp
@endif
@if (@$data['sections']->key == 'explore') {{-- -------------------------------- explore --------------------------------- --}}
{{___('common.Details')}}
@endif
@if (@$data['sections']->key == 'why_choose_us') {{-- -------------------------------- why_choose_us --------------------------------- --}}
{{___('common.Details')}}
@endif
@if (@$data['sections']->key == 'academic_curriculum') {{-- -------------------------------- academic_curriculum --------------------------------- --}}
{{___('common.Details')}}
@endif
{{-- dynamic sections --}}
@endforeach