@php $item_count = 0; $item_count_txt = '('; $quantity = 0; $quantity_txt = '('; $sub_total = 0; $sub_total_txt = '('; $taxes = 0; $taxes_txt = '('; $shipping_cost = 0; $shipping_cost_txt = '('; $discount = 0; $discount_txt = '('; $packaging_cost = 0; $packaging_cost_txt = '('; $grand_total = 0; foreach ($carts as $key => $cart) { $item_count += $cart->item_count; $item_count_txt .= $cart->item_count . '+'; $quantity += $cart->quantity; $quantity_txt .= $cart->quantity . '+'; if ($cart->packaging) { $packaging_cost += $cart->packaging; $packaging_cost_txt .= get_formated_currency($cart->packaging, 2) . '+'; } else { $packaging_cost_txt .= get_formated_currency(0) . '+'; } $sub_total += $cart->total; $sub_total_txt .= get_formated_currency($cart->total, 2) . '+'; $taxes += $cart->taxes; $taxes_txt .= get_formated_currency($cart->taxes, 2) . '+'; $temp_shipping = $cart->get_shipping_cost(); $shipping_cost += $temp_shipping; $shipping_cost_txt .= get_formated_currency($temp_shipping, 2) . '+'; if ($cart->coupon_id && $cart->discount) { $discount += $cart->discount; $discount_txt .= get_formated_currency($cart->discount, 2) . '+'; } else { $discount_txt .= get_formated_currency(0) . '+'; } $grand_total += $cart->calculate_grand_total(); } @endphp
@if (Session::has('error'))
{{ trans('theme.error') }} {{ Session::get('error') }}
@endif {!! Form::open(['method' => 'POST', 'route' => [config('checkout.routes.place_order')], 'id' => 'checkoutForm', 'name' => 'checkoutForm', 'files' => true, 'data-toggle' => 'validator', 'novalidate']) !!}
{{ trans('theme.sold_by') }}
@foreach ($carts as $temp) @endforeach

{{ trans('theme.order_detail') }}: {{ trans('theme.cart_count') . '(' . $carts->count() . ')' }}

  • {{ trans('theme.item_count') }}
    {{ \Str::replaceLast('+', ')', $item_count_txt) }}
    {{ $item_count }}
  • {{ trans('theme.quantity') }}
    {{ \Str::replaceLast('+', ')', $quantity_txt) }}
    {{ $quantity }}
  • {{ trans('theme.subtotal') }}
    {{ \Str::replaceLast('+', ')', $sub_total_txt) }}
    {{ get_formated_currency($sub_total, 2) }}
  • {{ trans('theme.shipping') }}
    {{ \Str::replaceLast('+', ')', $shipping_cost_txt) }}
    {{ get_formated_currency($shipping_cost, 2) }}
  • @if(is_incevio_package_loaded('packaging'))
  • {{ trans('theme.packaging') }}
    {{ \Str::replaceLast('+', ')', $packaging_cost_txt) }}
    {{ get_formated_currency($packaging_cost, 2) }}
  • @endif
  • {{ trans('theme.discount') }}
    {{ \Str::replaceLast('+', ')', $discount_txt) }}
    -{{ get_formated_currency($discount, 2) }}
  • {{ trans('theme.taxes') }}
    {{ \Str::replaceLast('+', ')', $taxes_txt) }}
    {{ get_formated_currency($taxes, 2) }}
  • {{ trans('theme.total') }} {{ get_formated_currency($grand_total, 2) }}

{{ trans('theme.ship_to') }} @if ($cart->ship_to_state_id) {{ $cart->state->name }} @elseif($cart->ship_to_country_id) {{ $cart->country->name }} @endif

@if (isset($customer)) @php $pre_select = null; @endphp
@foreach ($customer->addresses as $address)
@if ($cart->ship_to_country_id == $address->country_id && $cart->ship_to_state_id == $address->state_id) @php $ship_to_this_address = null; if (!$pre_select && $cart->ship_to_country_id == $address->country_id && $cart->ship_to_state_id == $address->state_id) { $pre_select = 1; $ship_to_this_address = true; } @endphp
{!! $address->toHtml('
', false) !!}
@else @endif
@if ($loop->iteration % 2 == 0)
@endif @endforeach
@else @include('partials.checkout_shiping_address', ['one_checkout_form' => true]) @endif
@if (is_incevio_package_loaded('pharmacy')) @include('pharmacy::checkout_form') @endif
{!! Form::label('buyer_note', trans('theme.leave_message_to_seller')) !!} {!! Form::textarea('buyer_note', null, ['class' => 'form-control flat summernote-without-toolbar', 'placeholder' => trans('theme.placeholder.message_to_seller'), 'rows' => '2', 'maxlength' => '250']) !!}
@include('partials.payment_options')
{!! Form::close() !!}