@php $social = App\Models\Social::find($socialsOptionSelected); $needsServer = $social && Str::contains($social->url_structure, '#'); $canEnable = $social && $userOnSocial && (!$needsServer || $serverOfSocial); @endphp