@php $form_id = '-' . uniqid(); $haveBtnCta = $haveBtnCta ?? true; $labels = $labels ?? []; @endphp @once @push('script') @endpush @endonce
@php $cc_list = json_decode(getCountryCallingCodes(), true) ?: []; try { $acc_country_short = app(\App\Models\BusinessAccounts::class)['country'] ?? null; } catch (\Throwable $e) { $acc_country_short = null; } $acc_call_code = null; foreach ($cc_list as $c) { if (($c['short_name'] ?? null) === $acc_country_short) { $acc_call_code = $c['call_code'] ?? null; break; } } $cc_seen = []; $cc_unique = []; foreach ($cc_list as $c) { $code = $c['call_code'] ?? ''; if ($code === '' || isset($cc_seen[$code])) continue; $cc_seen[$code] = true; $cc_unique[] = $c; } @endphp
{{-- Combined "" value submitted by doSubmitAddress() as `mobile` --}}
@php $postcode_placeholder = ''; for ($i=0, $max_digit=config('sys.postcode_digit'); $i<$max; ++$i) { $postcode_placeholder .= '0'; } @endphp
@if($haveBtnCta)
{{ __('label.btn_submit_pending_delivery_address') }}
@endif