{{-- WhatsApp Send Button Component --}} @php $buttonSize = $size ?? 'md'; $buttonClass = match($buttonSize) { 'sm' => 'btn-sm', 'lg' => 'btn-lg', default => '' }; $iconSize = match($buttonSize) { 'sm' => 'fa-sm', 'lg' => 'fa-lg', default => '' }; // Get customer phone number $customerPhone = ''; $hasValidPhone = false; if (isset($data->customer) && $data->customer) { $phone = $data->customer->phone ?? ''; // Check if phone is valid (not empty, not default values) if ($phone && $phone !== '00000000' && strlen(trim($phone)) > 5) { $customerPhone = $phone; $hasValidPhone = true; } } @endphp @if($hasValidPhone) @else @endif @push('script') @endpush