@if (!is_numeric($c))
{{ readableString($c) }}
@endif
@php($last = $c)
@endif
@endif
@php($lbl_category_name = $one)
@if (is_array($one))
@continue
@endif
@php(preg_match_all('/:[a-zA-Z_]+[. ]{1}/i', $one, $m))
@php($validation = [])
@if (count($m[0]) > 0)
@php($validation = ['data-in-metch' => implode(',', array_map('trimDotAndSpaces', $m[0]))])
@php($validation['data-pristine-metch-message'] = __('validation.custom.required_array_keys', ['values' => implode(',', array_map('trimDotAndSpaces', $m[0]))]))
@endif
@if (request()->query->get('file') == 'foods' && Str::contains($key, '.description'))
{!! Form::textarea(
getDotStringToInputString($key, 'other'),
$other[$key] ?? $one,
[
'class' => 'form-control',
'id' => 'name',
'placeholder' => $lbl_category_name,
'required' => 'true',
'rows' => '2',
'data-pristine-required-message' => __('validation.custom.required'),
] + $validation,
) !!}
@else
{!! Form::text(
getDotStringToInputString($key, 'other'),
$other[$key] ?? $one,
[
'class' => 'form-control',
'id' => 'name',
'placeholder' => $lbl_category_name,
'required' => 'true',
'data-pristine-required-message' => __('validation.custom.required'),
] + $validation,
) !!}
@endif
@endforeach