@php use App\Models\Admin\Settings; use App\Models\Admin\WebSettings; use App\Models\Admin\OurServices; $logo = Settings::get('logo'); $home = WebSettings::get(1); $companyName = Settings::get('company_name'); $services = []; if($home) { $servicesIds = json_decode($home->footer_services,true); $services = []; if($servicesIds) { $servicesIds = implode(',', $servicesIds); $whereServices[] = " our_services.id IN (".$servicesIds.") "; $whereServices['our_services.status = ?'] = [1]; $services = OurServices::getAll([],$whereServices); } } @endphp