{{-- Calendly invite-reply marketing popup overlay (backdrop is dashboard-v2 guest shell) --}} @php $biz = $previewBusiness ?? 'Your Business'; $customer = $previewCustomer ?? 'Guest'; $email = $previewEmail ?? ''; $phone = $previewPhone ?? ''; $leadId = $leadId ?? null; $leadStatus = $leadStatus ?? 'reply_land'; $pid = $previewPlaceId ?? ''; $postCalendly = request()->boolean('post_calendly'); $startTrial = request()->boolean('start_trial'); $connectCalendly = request()->boolean('connect_calendly'); $postGoogle = $postGoogle ?? request()->boolean('post_google'); $postStripe = $postStripe ?? request()->boolean('post_stripe'); $postStripeCancel = $postStripeCancel ?? request()->boolean('post_stripe_cancel'); $openRegister = $openRegister ?? request()->boolean('open_register'); $oauthError = $oauthError ?? request()->boolean('oauth_error'); $oauthErrorMessage = $oauthErrorMessage ?? (string) (session('error') ?? ''); $brandedTestSent = $brandedTestSent ?? false; $initialEmailSchedule = $initialEmailSchedule ?? []; $initialPrepare = $initialPrepare ?? null; $exploreDashboardUrl = route('dashboard', array_filter([ 'lead_id' => ! empty($leadId) ? (int) $leadId : null, 'explore' => 1, 'lander_key' => 'invite-reply-calendly', 'pid' => trim((string) $pid) !== '' ? $pid : null, 'e' => trim((string) $email) !== '' ? $email : null, 'n' => trim((string) $customer) !== '' ? $customer : null, 'b' => trim((string) $biz) !== '' && $biz !== 'Your Business' ? $biz : null, 'c' => trim((string) $biz) !== '' && $biz !== 'Your Business' ? $biz : null, 'p' => trim((string) $phone) !== '' ? $phone : null, ])); $marketplaceInstallUrl = (trim((string) $pid) !== '' && trim((string) $email) !== '') ? route('marketplace.install', array_filter([ 'placeId' => $pid, 'email' => $email, 'name' => trim((string) $customer) !== '' ? $customer : null, ])) : \App\Support\MarketplaceLead::listingUrl(); @endphp