@php
[$label, $badgeClass, $icon] = $m->status_badge;
$rowClass = match($m->status) {
\App\Models\MissileDraft::STATUS_READY => 'cd-missile-row-ready',
\App\Models\MissileDraft::STATUS_BRANDING_PENDING => 'cd-missile-row-branding',
\App\Models\MissileDraft::STATUS_LAUNCHED => 'cd-missile-row-launched',
\App\Models\MissileDraft::STATUS_REJECTED => 'cd-missile-row-rejected',
\App\Models\MissileDraft::STATUS_EXPIRED => 'cd-missile-row-expired',
default => '',
};
$launchable = $m->isLaunchable();
$editable = $m->status !== \App\Models\MissileDraft::STATUS_LAUNCHED;
$cores = $cores ?? [];
$closers = $closers ?? collect();
@endphp
|
@if($launchable)
@endif
|
@if($editable)
.bewpro.com
@else
{{ $m->project_name ?: '—' }}
@if($m->subdomain)
{{ $m->subdomain }}.bewpro.com
@endif
@endif
|
@if($editable)
@else
{{ $m->prospect_name ?: '—' }}
@if($m->prospect_email)
{{ $m->prospect_email }}
@endif
@endif
|
@if($editable)
@else
@if($m->product_slug)
{{ $m->product_slug }}
@endif
@if($m->tier)
{{ $m->tier }}
@endif
@endif
@if($m->hasImportJson())
JSON
@endif
|
@php
[$tempKey, $tempEmoji, $tempLabel, $tempClass] = $m->lead_temp;
$last = $m->latestAttempt ?? null;
$count = $m->outreach_attempts_count ?? 0;
@endphp
|
{{ $label }}
@if($m->launchedProject ?? null)
@php
$tp = $m->launchedProject;
$tpAlive = in_array($tp->pipeline_status ?? '', ['active','on_development'], true);
$tpToneClass = $tpAlive ? 'badge-light-success' : 'badge-light-secondary';
$tpIcon = $tpAlive ? 'fa-bullseye' : 'fa-circle';
@endphp
tenant #{{ $tp->id }}
@endif
|
{{ $m->updated_at?->diffForHumans() }}
|
@if($editable)
@php
$editPayload = $m->only(['id','project_name','subdomain','prospect_email','prospect_name','product_slug','tier','status','closer_user_id','branding_notes','internal_notes','import_json_filename']);
$editPayload['import_json_size_kb'] = $m->import_json_size_kb;
@endphp
@endif
@if($launchable)
@endif
@if($editable)
@endif
|
@if($m->status === \App\Models\MissileDraft::STATUS_LAUNCHED && ($m->launchedProject ?? null))