@php // $deliveryMethod is resolved by the controller: the saved delivery method, or the // listing the modal was opened from when the payment has none saved. $isSelfPickup = $deliveryMethod === 'Self Pickup'; $labelName = ($labelAddress->name ?? null) ?: trim(($user->name ?? '') . ' ' . ($user->last_name ?? '')); $labelMobile = ($labelAddress->mobile ?? null) ?: ($user->mobile ?? ''); $labelAddressLine = $labelAddress ? implode(', ', array_filter([ $labelAddress->flat_no, $labelAddress->area_street, $labelAddress->landmark, $labelAddress->city, $labelAddress->district, $labelAddress->state, $labelAddress->country, ])) . ($labelAddress->pincode ? ' - ' . $labelAddress->pincode : '') : ''; @endphp {{-- Courier label: the name / address / mobile the admin needs to write the courier label --}}