@if($homeparty_guest && $homeparty_guest->homeparty_user_order_items->count() || $homeparty_guest->is_host)
@foreach($homeparty_guest->homeparty_user_order_items as $value) @endforeach @php($user_cart = $homeparty->order['user_carts'][$homeparty_guest->id]) @php($hp_order = $homeparty->order) @if(!$homeparty_guest->is_host) @if($homeparty_guest->getDelivery() === 'direct') @endif @else @if($hp_order['is_bonus']) @endif @if($hp_order['is_bonus_coupon']) @endif @if($hp_order['is_bonus']) @endif @endif
{{__('tables.image')}} {{__('tables.product')}} {{__('tables.quantity')}} {{__('tables.margin')}} {{__('tables.points')}} {{__('tables.earnings')}} {{__('tables.vk_price')}} {{__('tables.ek_price')}}
@if(count($value->product->images)) @endif {{ $value->product->getLang('name') }}
{{ __('order.content') }}: {{ $value->product->contents }}
{{ __('order.art_no') }}: {{ $value->product->number }}
{{$value->qty}} {{ $value->margin }}% {{ $value->getFormattedTotalPoints() }} {{ $value->getFormattedTotalIncomePrice() }} € {{ $value->getFormattedTotalPrice() }} € {{ $value->getFormattedTotalEKPrice() }} €
@if($homeparty_guest->getDelivery() === 'host') {{ __('homeparty.delivery_to_host') }} @endif @if($homeparty_guest->getDelivery() === 'direct') {{ __('homeparty.delivery_directly_to_the_guest') }} @endif
{{ __('order.shipping_costs') }}   {{ Util::formatNumber($user_cart['shipping_price'])}} € {{ Util::formatNumber($user_cart['shipping_price'])}} €
{{ __('order.total') }}: {{$user_cart['points']}} {{Util::formatNumber($user_cart['income_price'])}} € {{Util::formatNumber($user_cart['price'])}} € {{Util::formatNumber($user_cart['ek_price'])}} €
{{ __('homeparty.credit_homeparty_voucher') }}   - {{ Util::formatNumber($hp_order['bonus_value']) }} € - {{ Util::formatNumber($hp_order['bonus_value']) }} €
{{ __('homeparty.credit_bonus') }}   - {{ Util::formatNumber($hp_order['bonus_coupon']) }} € - {{ Util::formatNumber($hp_order['bonus_coupon']) }} €
{{ __('homeparty.deduct_points_by_voucher') }} - {{ $hp_order['bonus_points_diff'] }}      
{{ __('order.shipping_costs') }}:     {{Util::formatNumber($user_cart['shipping_price'])}} €
{{ __('order.sums') }}: {{$user_cart['points']}} {{Util::formatNumber($user_cart['income_price'])}} € {{Util::formatNumber($user_cart['price'])}} € {{Util::formatNumber($user_cart['ek_price'])}} €
@if($homeparty_guest->is_host || $homeparty_guest->getDelivery() === 'direct')
{{__('Delivery address')}}
@if($homeparty_guest->same_as_billing)
@if($homeparty_guest->billing_company)
{{ __('Company') }}
{{ $homeparty_guest->billing_company }}
@endif
{{ __('Salutation') }}
{{ \App\Services\HTMLHelper::getSalutationLang($homeparty_guest->billing_salutation) }}
{{ __('First name') }}
{{ $homeparty_guest->billing_firstname }}
{{ __('Last name') }}
{{ $homeparty_guest->billing_lastname }}
{{ __('Street') }}
{{ $homeparty_guest->billing_address }}
{{ __('Addition') }}
{{ $homeparty_guest->billing_address_2 }}
{{ __('Postcode') }}
{{ $homeparty_guest->billing_zipcode }}
{{ __('City') }}
{{ $homeparty_guest->billing_city }}
{{ __('E-Mail') }}
{{ $homeparty_guest->billing_email }}
{{ __('Phone') }}
{{ $homeparty_guest->billing_phone }}
{{ __('Country') }}
{{ $homeparty_guest->billing_country->getLocated() }}
@else
@if($homeparty_guest->shipping_company)
{{ __('Company') }}
{{ $homeparty_guest->shipping_company }}
@endif
{{ __('Salutation') }}
{{ \App\Services\HTMLHelper::getSalutationLang($homeparty_guest->shipping_salutation) }}
{{ __('First name') }}
{{ $homeparty_guest->shipping_firstname }}
{{ __('Last name') }}
{{ $homeparty_guest->shipping_lastname }}
{{ __('Street') }}
{{ $homeparty_guest->shipping_address }}
{{ __('Addition') }}
{{ $homeparty_guest->shipping_address_2 }}
{{ __('Postcode') }}
{{ $homeparty_guest->shipping_zipcode }}
{{ __('City') }}
{{ $homeparty_guest->shipping_city }}
{{ __('E-Mail') }}
{{ $homeparty_guest->shipping_email }}
{{ __('Phone') }}
{{ $homeparty_guest->shipping_phone }}
{{ __('Country') }}
{{ $homeparty_guest->shipping_country->getLocated() }}
@endif
@endif @else

{{ __('order.no_order') }}

@endif