@props(['cats'=>'','selected'=>'']) @php if(isset($attributes['url']) && $attributes['url'] !=''){ $init = 'initWithURL()'; $route = $attributes['url']; }else{ $init=""; $route=""; } @endphp