@if (isset($page_data) && count($page_data) > 0) @php $all_data = data_get($page_data, 'data', []); $input_fields = []; $file_fields = []; foreach ($all_data as $key => $item) { if ($item['field_type'] == 'file') { $file_fields[] = ['key' => $key, 'item' => $item]; } else { $input_fields[] = ['key' => $key, 'item' => $item]; } } @endphp

{{ translate('messages.Additional_Data') }}

{{ translate('messages.Setup your additional data') }}

@if (count($input_fields) > 0)
@foreach ($input_fields as $data) @php $key = $data['key']; $item = $data['item']; $value = $additional_data[$item['input_data']] ?? ''; @endphp @if (!in_array($item['field_type'], ['file', 'check_box']))
@elseif ($item['field_type'] == 'check_box' && $item['check_data'])
@foreach ($item['check_data'] as $i) @php $checked = in_array($i, (array)($additional_data[$item['input_data']] ?? [])) ? 'checked' : ''; @endphp
@endforeach
@endif @endforeach
@endif @if (count($file_fields) > 0)
@foreach ($file_fields as $data) @php $key = $data['key']; $item = $data['item']; @endphp @if ($item['field_type'] == 'file' ) @if ($item['media_data'] != null)
Fatal error: Uncaught Error: Call to undefined function data_get() in /home/chaipost/public_html/reachstage.eelcon.in/resources/views/admin-views/partials/_custom-fields.blade.php:98 Stack trace: #0 {main} thrown in /home/chaipost/public_html/reachstage.eelcon.in/resources/views/admin-views/partials/_custom-fields.blade.php on line 98