@php $profile = $data['profile'] ?? []; $metrics = $data['metrics'] ?? []; $lifetime = $data['lifetime'] ?? []; $customerId = $customer->id ?? null; $phone = $profile['phone'] ?? ($customer->phone ?? ''); $initials = strtoupper(substr($profile['name'] ?? 'C', 0, 2)); $waUrl = $phone && ($customer ?? null) ? \App\Services\WhatsAppService::buildCustomerLink($customer, 'offer_promo') : null; $createOrderUrl = route('admin.orders.create', array_filter(['phone' => $phone, 'name' => $profile['name'] ?? ''])); @endphp @if(!empty($data['tier']))
@endif @if(!empty($data['tags'])) @endif