@php $currentLang = app()->getLocale(); $langFolderPath = resource_path("lang/$currentLang"); $filePaths = \File::files($langFolderPath); $sitesetup = App\Models\Setting::where('type','site-setup')->where('key', 'site-setup')->first(); $date_time = $sitesetup ? json_decode($sitesetup->value, true) : null; $dateformate = $date_time ? $date_time['date_format'] : 'Y-m-d'; $serviceconfig = App\Models\Setting::getValueByKey('service-configurations', 'service-configurations'); @endphp @foreach ($filePaths as $filePath) @php $fileName = pathinfo($filePath, PATHINFO_FILENAME); @endphp @endforeach