@extends('backend.master') @section('title') {{ @$data['title'] }} @endsection @section('content')
{{-- @dump($data['sections']->toArray()) --}} {{-- bradecrumb Area S t a r t --}} {{-- bradecrumb Area E n d --}} {{-- @dump($data['sections']->toArray()) --}}

{{ ___('website.Key') }}: {{ @$data['sections']->key }}

@csrf @method('PUT')
{{-- Name Field --}} @if (@$data['sections']->name)
@error('name')
{{ $message }}
@enderror
@endif {{-- Description Field --}} @if (@$data['sections']->description)
@error('description')
{{ $message }}
@enderror
@endif {{-- Image Upload Field --}} @if (@$data['sections']->upload_id)
@endif @if (@$data['sections']->key == 'social_links') {{-- -------------------------------- Social link --------------------------------- --}}
@foreach (@$data['sections']->data as $key => $item) @endforeach
@endif {{-- Statement Section --}} @if (@$data['sections']->key == 'statement')

{{ ___('common.Details') }}

@php $sectionData = @$data['sections']->defaultTranslate->data ?? @$data['sections']->data; if (is_string($sectionData)) { $sectionData = json_decode($sectionData, true); } $sectionData = $sectionData ?: []; @endphp @foreach ($sectionData as $key => $item)
@endforeach
@endif {{-- Study At Section --}} @if (@$data['sections']->key == 'study_at')

{{ ___('common.Details') }}

@php $sectionData = @$data['sections']->defaultTranslate->data ?? @$data['sections']->data; if (is_string($sectionData)) { $sectionData = json_decode($sectionData, true); } $sectionData = $sectionData ?: []; @endphp @foreach ($sectionData as $key => $item)
@endforeach
@endif {{-- Explore Section --}} @if (@$data['sections']->key == 'explore')

{{ ___('common.Details') }}

@php $sectionData = @$data['sections']->defaultTranslate->data ?? @$data['sections']->data; if (is_string($sectionData)) { $sectionData = json_decode($sectionData, true); } $sectionData = $sectionData ?: []; @endphp @foreach ($sectionData as $key => $item)
@endforeach
@endif {{-- Why Choose Us Section --}} @if (@$data['sections']->key == 'why_choose_us')

{{ ___('common.Details') }}

@php $sectionData = @$data['sections']->defaultTranslate->data ?? @$data['sections']->data; if (is_string($sectionData)) { $sectionData = json_decode($sectionData, true); } $sectionData = $sectionData ?: []; @endphp @foreach ($sectionData as $key => $item)
@endforeach
@endif {{-- Academic Curriculum Section --}} @if (@$data['sections']->key == 'academic_curriculum')

{{ ___('common.Details') }}

@php $sectionData = @$data['sections']->defaultTranslate->data ?? @$data['sections']->data; if (is_string($sectionData)) { $sectionData = json_decode($sectionData, true); } $sectionData = $sectionData ?: []; @endphp @foreach ($sectionData as $key => $item)
@endforeach
@endif {{-- Submit Button --}}
@endsection