@extends('layouts.summary') @section('content')
@cstack('order.summary.header.before')

{{ c_trans('Potwierdzenie złożenia zamówienia nr.') }} {{ $order->id }}

@if (null === $order->payment->system_payment && ! empty($order->payment->getExistsLanguageColumnValue('description'))) {!! $order->c('replaceMarkers', $order->payment->c('getExistsLanguageColumnValue', 'description')) !!} @endif
@cstack('order.summary.header.after') {!! $paymentView !!}
@cstack('client.shopcart.summary.before')

{{ c_trans('Podsumowanie') }}

@cstack('client.shopcart.summary.product-title.before')

{{ c_trans('Zamówione produkty') }}:

@cstack('client.shopcart.summary.product-list.before')
    @php($listCounter=1) @foreach($order->orderPositions as $item) @if(empty($item->product_parent_id) && !$order->orderPositions->where('product_parent_id', $item->product_id)->count())
  1. {{ $listCounter++ }}. {{ $item->name }}
    {{ $item->quantity }} @if( c_options()->get('display_product_unit', 'products') ) {{ optional( optional($item->loadMissing(['product.unit.unitLang'])->product)->unit)->getExistingLanguageColumnValue('name') ?? c_trans('szt.')}} @else {{ c_trans('szt.') }} @endif
    {!! c_template()->price(($item->gross * $item->quantity), '%d%02d') !!} {!! $item->loadMissing('currency')->currency->user_currency_code !!} @if( c_options()->get('display_product_unit', 'products') ) / {{ optional( optional($item->loadMissing(['product.unit.unitLang'])->product)->unit)->getExistingLanguageColumnValue('name') ?? c_trans('szt.')}} @else {{ c_trans('szt.') }} @endif
  2. @elseif(empty($item->product_parent_id) && $order->orderPositions->where('product_parent_id', $item->product_id)->count())
  3. {{ $listCounter++ }}. {{ $item->name }}
    {{ $item->quantity }} @if( c_options()->get('display_product_unit', 'products') ) {{ optional( optional($item->loadMissing(['product.unit.unitLang'])->product)->unit)->getExistingLanguageColumnValue('name') ?? c_trans('szt.')}} @else {{ c_trans('szt.') }} @endif
    {!! c_template()->price(($item->gross * $item->quantity), '%d%02d') !!} {!! $item->loadMissing('currency')->currency->user_currency_code !!} @if( c_options()->get('display_product_unit', 'products') ) / {{ optional( optional($item->loadMissing(['product.unit.unitLang'])->product)->unit)->getExistingLanguageColumnValue('name') ?? c_trans('szt.')}} @else {{ c_trans('szt.') }} @endif
    @foreach($item->product->productSet as $productSet)
    • {{$productSet->getExistsLanguageColumnValue('name')}}
      {{ $productSet->pivot->quantity }} @if( c_options()->get('display_product_unit', 'products') ) {{ optional( optional($productSet->loadMissing(['unit.unitLang'])->product)->unit)->getExistingLanguageColumnValue('name') ?? c_trans('szt.')}} @else {{ c_trans('szt.') }} @endif
    @endforeach
  4. @endif @endforeach
@cstack('client.shopcart.summary.product-list.after')
{{ c_trans('Wysyłka') }}: {{ $shipment->c('getExistsLanguageColumnValue', 'name') }} ( {!! c_template()->price($order->shipment_gross, '%d,%02d') !!} {!! $order->loadMissing('currency')->currency->user_currency_code !!} )
{{ c_trans('Płatność') }}: {{ $payment->c('getExistsLanguageColumnValue', 'name') }} ( {!! c_template()->price($order->payment_gross, '%d,%02d') !!} {!! $paymentShipment->currency_code !!} ) @cstack('client.shopcart.payment.after')
@if($order->discount_amount)
{{ c_trans('Kod rabatowy') }}: {{ optional( $order->discountCode )->name }} ( - {!! c_template()->price($order->discount_amount, '%d,%02d') !!} {!! $paymentShipment->currency_code !!} )
@endif @if($order->payment_discount_id)
{{c_trans('Zniżka za formę płatności')}} ( {!! trans('Payments::admin/forms/edit.types.' . $order->payment->type) !!} ) ( - {!! c_template()->price($order->payment_discount_amount, '%d,%02d') !!} {!! $order->loadMissing('currency')->currency->user_currency_code !!} )
@endif
{{ c_trans('Suma zamówienia') }}:
{!! c_template()->price($sum, '%d%02d') !!} {!! $order->loadMissing('currency')->currency->user_currency_code !!}
{{ c_trans('Dane kontaktowe') }}:
{{ c_trans('Telefon') }}

{{ $order->phone }}

{{ c_trans('E-mail') }}

{{ $order->email }}

@if ($order->orderAddress)
{{ c_trans('Dane do wysyłki') }}:
@if (isset($order->orderAddress->company) && !empty($order->orderAddress->company))
{{ c_trans('Nazwa firmy') }}

{{ $order->orderAddress->company }}

@endif
{{ c_trans('Imię i nazwisko') }}

{{ $order->orderAddress->name }} {{ $order->orderAddress->surname }}

{{ c_trans('Adres') }}

{{ $order->orderAddress->street }} {{ $order->orderAddress->number }} {{ !empty($order->orderAddress->apartment) ? '/'.$order->orderAddress->apartment: '' }} , {{ $order->orderAddress->postal }} {{ $order->orderAddress->city }}{{ $order->orderAddress->region ? ', ' . $order->orderAddress->region : '' }}

@if (isset($order->orderAddress->additional) && !empty($order->orderAddress->additional))
{{ c_trans('Dane dodatkowe') }}

{{ $order->orderAddress->additional }}

@endif
@endif @if ($order->orderInvoice)
{{ c_trans('Dane do faktury') }}:
@if (isset($order->orderInvoice->company) && ! empty($order->orderInvoice->company))
{{ c_trans('Nazwa firmy') }}

{{ $order->orderInvoice->company }}

@if (isset($order->orderInvoice->identity) && ! empty($order->orderInvoice->identity))
{{ c_trans('NIP') }}

{{ $order->orderInvoice->identity }}

@endif
@endif
@if ((isset($order->orderInvoice->name) && !empty($order->orderInvoice->name)) || (isset($order->orderInvoice->surname) && !empty($order->orderInvoice->surname)))
{{ c_trans('Imię i nazwisko') }}

{{ $order->orderInvoice->name }} {{ $order->orderInvoice->surname }}

@endif
{{ c_trans('Adres') }}

{{ $order->orderInvoice->street }} {{ $order->orderInvoice->number }} {{ !empty($order->orderInvoice->apartment) ? '/'.$order->orderInvoice->apartment : ''}} , {{ $order->orderInvoice->postal }} {{ $order->orderInvoice->city }}

@endif @if ($order->additional_info)
{{ c_trans('Uwagi do zamówienia') }}:
{{ $order->additional_info }}
@endif
@endsection