Title
*
Description
{!! getValueInput($data,'description') !!}
@include('common.script.select-multi-section')
@include('common.lfm', [ 'type' => 'image', 'name' => 'Image', 'input' => 'image', 'required' => false, 'file' => $data->image ?? null, ])
@if(old('section') != null) @php $i = 0; @endphp @foreach(old('section') as $oldData)
Section Title*
@if(count($dataContent) > 0) @foreach($dataContent as $e)
{{$e['title']}}
@endforeach @endif
@php $i++ @endphp @endforeach @else @if(!empty($data->section_content) && count($data->section_content)) @php $i = 0; @endphp @foreach($data->section_content as $section)
Section Title*
@if(count($dataContent) > 0) @php $content = json_decode($section->content,true); $content = is_array($content) ? $content : []; @endphp @foreach($content as $keyMap) @if(array_key_exists($keyMap,$dataContent))
{{$dataContent[$keyMap]['title']}}
@endif @endforeach @foreach($dataContent as $e) @if(!in_array($e['value'],$content))
{{$e['title']}}
@endif @endforeach @endif
@php $i++ @endphp @endforeach @else
Section Title*
@if(count($dataContent) > 0) @foreach($dataContent as $e)
{{$e['title']}}
@endforeach @endif
@endif @endif