@props(['language', 'inputkey', 'objectName', 'isTextarea' => false]) @php $key = $inputkey . '_' . $language['code']; @endphp @if ($isTextarea == false)
merge(attributeDefaults: ['class' => 'form-control border border-2 p-2']) }} direction="{{ $language['direction'] }}" data="{!! $objectName[$key] ?? '' !!}" code="{{ $language['code'] }}" id="{{ $key }}" prefix="{{ $inputkey }}">
@else @endif {{-- -
merge(attributeDefaults: ['class' => 'form-control border border-2 p-2']) }} direction="{{ $language['direction'] }}" data="{!! $objectName[$key] ?? '' !!}" code="{{ $language['code'] }}" id="{{ $key }}" prefix="{{ $inputkey }}">
=========================================== wire:model="name.name_{{ $lang['code'] }}" --}} {{-- objectName is the master object array.. $input key is the key for the input, meaning, what are we entering? room description? its status? name? $language is always $lang. example, we have a master array called amenities, its input key mixed with lang is the key to the value description["description" . "en"] = "hello welcome to etc... " --}}