@foreach ($languages as $language)
@php
$feature_content = App\Models\Listing\ListingFeatureContent::where([
['language_id', $language->id],
['listing_feature_id', $feature->id],
])->first();
@endphp
@endforeach
X
@php
$feature_content = App\Models\Listing\ListingFeatureContent::where(
'listing_feature_id',
$feature->id,
)->get();
$op = json_decode($feature_content[0]['feature_value']);
@endphp
@if ($op)
@foreach ($op as $opIn => $w)
@php
$opArr = [];
for ($i = 0; $i < count($languages); $i++) {
$opArr[$i] = json_decode($feature_content[$i]['feature_value'] ?? '');
}
@endphp
@for ($i = 0; $i < count($languages); $i++)
@endfor
@endforeach
@endif