@php $isCustomer = auth()->guard('customer')->check(); @endphp @if (isset($shipping) && $shipping)
@{{ errors.first('address-form.shipping[first_name]') }}
@{{ errors.first('address-form.shipping[last_name]') }}
@{{ errors.first('address-form.shipping[email]') }}
@{{ errors.first('address-form.shipping[address1][]') }}
@if ( core()->getConfigData('customer.settings.address.street_lines') && core()->getConfigData('customer.settings.address.street_lines') > 1 ) @for ($i = 1; $i < core()->getConfigData('customer.settings.address.street_lines'); $i++)
@endfor @endif
@{{ errors.first('address-form.shipping[city]') }}
@{{ errors.first('address-form.shipping[country]') }}
@{{ errors.first('address-form.shipping[state]') }}
@{{ errors.first('address-form.shipping[postcode]') }}
@{{ errors.first('address-form.shipping[phone]') }}
@auth('customer')
{{ __('shop::app.checkout.onepage.save_as_address') }}
@endauth @elseif (isset($billing) && $billing)
@{{ errors.first('address-form.billing[company_name]') }}
@{{ errors.first('address-form.billing[first_name]') }}
@{{ errors.first('address-form.billing[last_name]') }}
@{{ errors.first('address-form.billing[email]') }}
{{-- for customer login checkout --}} @if (! $isCustomer) @include('shop::checkout.onepage.customer-checkout') @endif
@{{ errors.first('address-form.billing[address1][]') }}
@if ( core()->getConfigData('customer.settings.address.street_lines') && core()->getConfigData('customer.settings.address.street_lines') > 1 ) @for ($i = 1; $i < core()->getConfigData('customer.settings.address.street_lines'); $i++)
@endfor @endif
@{{ errors.first('address-form.billing[city]') }}
@{{ errors.first('address-form.billing[country]') }}
@{{ errors.first('address-form.billing[state]') }}
@{{ errors.first('address-form.billing[postcode]') }}
@{{ errors.first('address-form.billing[phone]') }}
@if ($cart->haveStockableItems())
{{ __('shop::app.checkout.onepage.use_for_shipping') }}
@endif @auth('customer')
{{ __('shop::app.checkout.onepage.save_as_address') }}
@php @endphp @endauth @endif