@php $whatsapp = preg_replace('/\D+/', '', (string) $subscription->phone); // Egyptian local numbers (01xxxxxxxxx) need the country code for wa.me links. if (str_starts_with($whatsapp, '01') && strlen($whatsapp) === 11) { $whatsapp = '2' . $whatsapp; } @endphp
@if ($subscription->contact_method === 'whatsapp' && $whatsapp) @else @endif
@csrf @method('PATCH')
@csrf @method('DELETE')