@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 --}}
{{ $labelName ?: '-' }} @if ($user?->access_code) ({{ $user->access_code }}) @endif
{{ $labelAddressLine ?: 'No address saved for this user.' }}
Mobile: {{ $labelMobile ?: '-' }} @if (($user->whatsapp_no ?? null) && $user->whatsapp_no != $labelMobile) | WhatsApp: {{ $user->whatsapp_no }} @endif
@if ($isSelfPickup)
@csrf
@else
@csrf
@endif