@php $termsSetting = $settings->where('name', \App\Models\Setting::$installmentsTermsSettingsName)->first(); $termsValue = (!empty($termsSetting) and !empty($termsSetting->translate($selectedLocale))) ? $termsSetting->translate($selectedLocale)->value : null; if (!empty($termsValue)) { $termsValue = json_decode($termsValue, true); } @endphp