<div class="card mt-2" style="width: 100%;">
    <div class="card-header">
        <p class="h5">{!! $cardHeader !!}</p>
    </div>
    <div class="card-body">
        @foreach(json_decode(env('LANG_TO_TRANSLATE'), true) as $envLangKey=>$envLangValue)
            <div class="input-group mt-2">
                <div class="input-group-prepend">
                    <span class="input-group-text">{!! $envLangValue !!}</span>
                </div>
                @if($type == 'textarea')
                    <textarea class="form-control @if(isset($tiny) && $tiny == 'tiny') tiny @endif" name="{!! $inputName_Prepend. '['.$inputName_Title.']['. $envLangKey .']' !!}"
                              rows="2">{!! ($inputModel !== null)? ($value = $inputModel->{$envLangKey}): $value = '' !!}</textarea>
                @elseif($type == 'input')
                    <input type="text" class="form-control" name="{!! $inputName_Prepend. '['.$inputName_Title.']['. $envLangKey .']' !!}"
                           value="{!! ($inputModel !== null)? ($value = $inputModel->{$envLangKey}): $value = '' !!}">
                @endif
            </div>
        @endforeach
    </div>
</div>

