@extends('layouts/front') @section('title', $product->name) @section('scripts') @endsection @section('content')
@if (Auth::guest())
@csrf @include("shared.alerts")

{{ __('free_trial::lang.config.title') }}

@php($pricings = $product->pricingAvailable(currency()))

{{ __('store.config.billing') }}

@foreach ($pricings as $pricing) @endforeach
@if (!empty($options_html))

{{ __('store.config.options') }}

{!! $options_html !!}
@endif @if (!empty($data_html))
{!! $data_html !!}
@endif
@else
@csrf @include("shared.alerts")

{{ __('free_trial::lang.config.title') }}

@php($pricings = $product->pricingAvailable(currency()))

{{ __('store.config.billing') }}

@foreach ($pricings as $pricing) @endforeach
@if (!empty($options_html))

{{ __('store.config.options') }}

{!! $options_html !!}
@endif @if (!empty($data_html))
{!! $data_html !!}
@endif
{{ __('auth.signed_in_as') }} {{ Auth::user()->FullName }} ({{ Auth::user()->email }})
@if (Auth::user()->hasVerifiedEmail() && setting('checkout.customermustbeconfirmed', false)) @endif @csrf
@include("shared.input", ["name" => "firstname", "label" => __('global.firstname'), "value" => auth('web')->user()->firstname ?? old("firstname")])
@include("shared.input", ["name" => "lastname", "label" => __('global.lastname'), "value" => auth('web')->user()->lastname ?? old("lastname")])
@include("shared.input", ["name" => "address", "label" => __('global.address'), "value" => auth('web')->user()->address ?? old("address")])
@include("shared.input", ["name" => "address2", "label" => __('global.address2'), "value" => auth('web')->user()->address2 ?? old("address2")])
@include("shared.input", ["name" => "zipcode", "label" => __('global.zip'), "value" => auth('web')->user()->zipcode ?? old("zipcode")])
@include("shared.input", ["name" => "email", "label" => __('global.email'), "type" => "email", "value" => auth('web')->user()->email ?? old("email"), "disabled"=> true])
@include("shared.input", ["name" => "phone", "label" => __('global.phone'), "value" => auth('web')->user()->phone ?? old("phone")])
@include("shared.select", ["name" => "country", "label" => __('global.country'), "options" => $countries,"value" => auth('web')->user()->country ?? old("country")])
@include("shared.input", ["name" => "city", "label" => __('global.city'), "value" => auth('web')->user()->city ?? old("city")])
@include("shared.input", ["name" => "region", "label" => __('global.region'), "value" => auth('web')->user()->region ?? old("region")])
@if (setting('checkout.toslink'))
@endif @include('shared/captcha', ['center' => false])
@endif

{{ __('store.config.summary') }}

{{ __('global.product') }} {{ $product->name }}
{{ __('free_trial::lang.config.period') }} {{ $free_trial->startDate()->format('d/m/y') }} - {{ $free_trial->endDate()->format('d/m/y') }}
@if ($options->isNotEmpty())
@foreach ($options as $option)
{{ $option->name }} 0
@endforeach
@endif
{{ __('store.config.recurring_payment') }} 0
{{ __('store.config.onetime_payment') }} 0
{{ __('store.fees') }} 0
{{ __('store.subtotal') }} 0
{{ __('store.vat') }} 0

{{ __('free_trial::lang.config.total_now') }} {{ formatted_price(0) }}
{{ __('free_trial::lang.config.total_after_trial') }} 0

{{ __('free_trial::lang.config.details', ['days' => setting('days_before_expiration')]) }}

@endsection