@extends('layouts.app', ['title' => $funnel->name]) @section('content') @php($canManage = auth()->user()->can('funnels.manage'))

{{ $funnel->name }} {!! $funnel->is_published ? 'Live' : 'Draft' !!}

@if ($funnel->is_published) {{ $funnel->publicBaseUrl() }} @else Publish to get a public link. @endif

@if ($canManage)
@csrf
@csrf
@endif
@error('funnel')
{{ $message }}
@enderror
Pages and performance
@foreach ([7, 30, 90] as $d) {{ $d }}d @endforeach
@foreach ($stats as $row) @php($step = $row['step']) @endforeach
PageVisitorsOpt-insOpt-in rateTo next page
@if ($canManage)@endif
{{ $step->name }}
{{ \App\Models\FunnelStep::TYPES[$step->type] ?? $step->type }} · /{{ $step->slug }}
{{ number_format($row['uniques']) }} {{ number_format($row['optins']) }} {{ $row['optin_rate'] }}% {{ $row['to_next_rate'] === null ? '—' : $row['to_next_rate'].'%' }} @if ($canManage) Edit page @endif
Visitors are unique people. Opt-in rate = form submissions ÷ visitors on that page.
@if ($canManage)
Add a page
@csrf
@endif
@if ($canManage)
Funnel settings
@csrf @method('PUT')
@error('slug')
{{ $message }}
@enderror
@csrf @method('DELETE')
@endif
@if ($canManage) @foreach ($funnel->steps as $step) @endforeach @endif @endsection @push('scripts') @if ($canManage) @endif @endpush