@extends('layouts.popup.small') @section('title') {{ trans('messages.billing_information') }} @endsection @section('content')
{{ csrf_field() }} @if (request()->user()->customer->contact) @include('helpers.form_control', [ 'type' => 'checkbox2', 'name' => 'same_as_contact', 'value' => (request()->same_as_contact == 'true' ? 'true' : 'false'), 'label' => trans('messages.same_as_contact'), 'options' => ['false', 'true'], 'help_class' => 'billing_address', 'rules' => ['first_name' => 'required'], ]) @endif
@if (get_localization_config('show_last_name_first', Auth()->user()->customer->getLanguageCode()))
@include('helpers.form_control', [ 'type' => 'text', 'name' => 'last_name', 'value' => $billingAddress->last_name, 'label' => trans('messages.last_name'), 'help_class' => 'billing_address', 'rules' => ['last_name' => 'required'], // 'readonly' => request()->same_as_contact == 'true', ])
@include('helpers.form_control', [ 'type' => 'text', 'name' => 'first_name', 'value' => $billingAddress->first_name, 'label' => trans('messages.first_name'), 'help_class' => 'billing_address', 'rules' => ['first_name' => 'required'], // 'readonly' => request()->same_as_contact == 'true', ])
@else
@include('helpers.form_control', [ 'type' => 'text', 'name' => 'first_name', 'value' => $billingAddress->first_name, 'label' => trans('messages.first_name'), 'help_class' => 'billing_address', 'rules' => ['first_name' => 'required'], // 'readonly' => request()->same_as_contact == 'true', ])
@include('helpers.form_control', [ 'type' => 'text', 'name' => 'last_name', 'value' => $billingAddress->last_name, 'label' => trans('messages.last_name'), 'help_class' => 'billing_address', 'rules' => ['last_name' => 'required'], // 'readonly' => request()->same_as_contact == 'true', ])
@endif
@include('helpers.form_control', [ 'type' => 'text', 'name' => 'email', 'value' => $billingAddress->email, 'label' => trans('messages.email_address'), 'help_class' => 'billing_address', 'rules' => ['email' => 'required'], // 'readonly' => request()->same_as_contact == 'true', ])
@include('helpers.form_control', [ 'type' => 'text', 'name' => 'phone', 'value' => $billingAddress->phone, 'label' => trans('messages.phone'), 'help_class' => 'billing_address', // 'readonly' => request()->same_as_contact == 'true', ])
@include('helpers.form_control', [ 'type' => 'text', 'name' => 'address', 'value' => $billingAddress->address, 'label' => trans('messages.address'), 'help_class' => 'billing_address', 'rules' => ['address' => 'required'], // 'readonly' => request()->same_as_contact == 'true', ])
@if (config('custom.japan')) @else
@include('helpers.form_control', [ 'type' => 'select', 'name' => 'country_id', 'value' => $billingAddress->country_id, 'label' => trans('messages.country'), 'options' => Acelle\Model\Country::getSelectOptions(), 'include_blank' => trans('messages.select_country'), 'help_class' => 'billing_address', 'rules' => ['country_id' => 'required'], // 'readonly' => request()->same_as_contact == 'true', ])
@endif
@endsection