@extends('layouts.base') @section('title','My restaurant referrals') @section('body')
@include('layouts.messages')

Grow with Menulyn

My restaurant referrals

Follow the restaurants you’ve introduced to Menulyn.

Partner home
@if($partner->programme_type === 'conversion')

Your referral link

Share this link with a restaurant owner. It opens Menulyn’s trial registration and keeps your referral attached to that web signup.

Registering in the mobile app instead? Ask the owner to enter {{ $partner->partnership_id }} in the optional referral-code field. A code does not automatically transfer through an app-store installation.

A registration or approved trial is not a commission. Conversion rewards require confirmed onboarding and a verified first paid subscription.

Campaign links

Give each campaign a name so you can recognise where your introductions came from. Visits are link visits, not unique people or verified conversions.

@csrf
@forelse($campaigns as $campaign)@empty@endforelse
CampaignVisitsLink / QRAvailability
{{ $campaign->name }}
{{ $campaign->venue }}
{{ $campaign->visits }}Open campaign link@if($campaign->active)
Download QR@endif
{{ $campaign->active ? 'Active' : 'Paused' }}
@csrf
No campaigns yet. Your main referral link is ready to share.
@endif

Referred restaurants

@forelse($records as $record)@php($snapshot=json_decode($record->partner_referral_snapshot ?? 'null',true) ?: [])@empty@endforelse
RestaurantTrial reviewOnboardingCampaignRegistered
{{ $record->companyName }}{{ ucfirst($record->trial_approval_status ?: 'Not recorded') }}{{ $record->onboarding_status ? ucfirst(str_replace('_',' ',$record->onboarding_status)) : 'Not assigned' }}{{ $snapshot['campaign_code'] ?? 'Direct referral' }}{{ $record->created_at ? \Illuminate\Support\Carbon::parse($record->created_at)->format('j M Y') : 'Not recorded' }}
No restaurants have completed registration with your referral yet.
@endsection