@php $width = '500px'; switch($type){ case 'product': $source = route("admin.$type.select",@$data); $width = '600px'; break; case 'user': $source = route("admin.$type.select",@$data); $width = '350px'; break; default: $source = route("admin.$type.select",@$data); break; } @endphp