@props([ 'provider' => '', // e.g. 'nearby' 'name' => '', // e.g. 'Proximité' 'description' => null, // short text 'logo' => null, // path under public/, e.g. 'metronic/media/brand-logos/jira.svg' 'logoDark' => null, // path under public/, e.g. 'metronic/media/brand-logos/jira.svg' 'link' => null, // title link 'showButton' => true, // show the primary footer button (Connect/Disconnect/Open) 'route' => null ]) @php // default logo path fallback based on your assets location $logoPath = $logo ?? "assets/images/svg_icons/{$provider}.svg"; $logoPathDark = $logoDark ?? "assets/images/svg_icons/inverse/{$provider}.svg"; $routeName = $route ?? null; $hasRoute = $routeName && Route::has($routeName); $url = $hasRoute ? route($routeName) : ($link ? $link : '#'); @endphp {{--