public function search(GlobalSearch $request): View 	{ 		$search = $request->search; 		$provider = $request->enum('provider', SmsProvider::class);  		$sms_messages = SmsMessage::when($provider, function (object $query) use ($provider): void { 			$query->where('provider', $provider); 		}) 			->search($search) 			->latest() 			->get();  		return view('sms-messages.list', compact('sms_messages', 'provider', 'search')); 	}