@extends('layouts.core.frontend_dark', [ 'subscriptionPage' => true, ]) @section('title', trans('messages.subscriptions')) @section('menu_title') @include('subscription._title') @endsection @section('menu_right') @include('layouts.core._top_activity_log') @include('layouts.core._menu_frontend_user', [ 'menu' => 'subscription', ]) @endsection @section('content')
@include('layouts.core._errors') @include('subscription._selectPlan')
{{ trans('messages.subscription.billing_information.title') }}

{{ trans('messages.subscription.billing_information.subtitle') }}

task_alt
{{ csrf_field() }}
@if (get_localization_config('show_last_name_first', Auth()->user()->customer->getLanguageCode()))
@include('helpers.form_control', [ 'type' => 'text', 'name' => 'billing_last_name', 'value' => request()->billing_last_name ? request()->billing_last_name : ($invoice->hasBillingInformation() ? $invoice->billing_last_name : ($billingAddress ? $billingAddress->last_name : '')), 'label' => trans('messages.last_name'), 'rules' => ['billing_last_name' => 'required'], ])
@include('helpers.form_control', [ 'type' => 'text', 'name' => 'billing_first_name', 'value' => request()->billing_first_name ? request()->billing_first_name : ($invoice->hasBillingInformation() ? $invoice->billing_first_name : ($billingAddress ? $billingAddress->first_name : '')), 'label' => trans('messages.first_name'), 'rules' => ['billing_first_name' => 'required'], ])
@else
@include('helpers.form_control', [ 'type' => 'text', 'name' => 'billing_first_name', 'value' => request()->billing_first_name ? request()->billing_first_name : ($invoice->hasBillingInformation() ? $invoice->billing_first_name : ($billingAddress ? $billingAddress->first_name : '')), 'label' => trans('messages.first_name'), 'rules' => ['billing_first_name' => 'required'], ])
@include('helpers.form_control', [ 'type' => 'text', 'name' => 'billing_last_name', 'value' => request()->billing_last_name ? request()->billing_last_name : ($invoice->hasBillingInformation() ? $invoice->billing_last_name : ($billingAddress ? $billingAddress->last_name : '')), 'label' => trans('messages.last_name'), 'rules' => ['billing_last_name' => 'required'], ])
@endif
@include('helpers.form_control', [ 'type' => 'text', 'name' => 'billing_email', 'value' => request()->billing_email ? request()->billing_email : ($invoice->hasBillingInformation() ? $invoice->billing_email : ($billingAddress ? $billingAddress->email : '')), 'label' => trans('messages.email_address'), 'rules' => ['billing_email' => 'required'], ])
@include('helpers.form_control', [ 'type' => 'text', 'name' => 'billing_phone', 'value' => request()->billing_phone ? request()->billing_phone : ($invoice->hasBillingInformation() ? $invoice->billing_phone : ($billingAddress ? $billingAddress->phone : '')), 'label' => trans('messages.phone'), 'rules' => ['billing_phone' => 'required'], ])
@include('helpers.form_control', [ 'type' => 'text', 'name' => 'billing_address', 'value' => request()->billing_address ? request()->billing_address : ($invoice->hasBillingInformation() ? $invoice->billing_address : ($billingAddress ? $billingAddress->address : '')), 'label' => trans('messages.address'), 'rules' => ['billing_address' => 'required'], ])
@if (config('custom.japan')) @else
@include('helpers.form_control', [ 'type' => 'select', 'name' => 'billing_country_id', 'value' => request()->billing_country_id ? request()->billing_country_id : ($invoice->hasBillingInformation() ? $invoice->billing_country_id : ($billingAddress ? $billingAddress->country_id : '')), 'label' => trans('messages.country'), 'options' => Acelle\Model\Country::getSelectOptions(), 'include_blank' => trans('messages.select_country'), 'rules' => ['billing_country_id' => 'required'], ])
@endif
@include('subscription._paymentMethod')
@endsection