@extends('templates.layouts.base') @section('js') @stop @section('content')

{{$page->lang()->title }}

{{Form::open(array('url'=>'shop/processcheckout'))}} @if (Session::has('verror'))
{{Fnx::translate('contact_ko')}}
@endif @if (Session::has('error_msg'))
{{Session::get("error_msg")}}
@endif @if (Session::has('msg'))
{{Session::get("msg")}}
@endif
@forelse($cart->lines as $cline) @empty @endforelse
{{Fnx::translate('shop_product_name')}} {{Fnx::translate('shop_price')}} {{Fnx::translate('shop_quantity')}} {{Fnx::translate('shop_total')}}
{{$cline->item->product->lang()->title}}
{{Fnx::translate('config_out')}} {{$config['config_out'] or ''}}cm {{Fnx::translate('config_line')}} {{$config['config_line'] or ''}}cm {{Fnx::translate('config_height')}} {{$config['config_height'] or ''}}cm
{{Fnx::printPrice($cline->getPrice())}} {{Form::selectrange('chqty[]',1,10,$cline->quantity,['class'=>'form-control js-changeqty','data-line'=>$cline->id])}} {{Fnx::printPrice($cline->quantity * $cline->getPrice())}}
{{Fnx::translate('shop_no_products')}}
@if (!$customer)

{{ $page->section(9) }} - {{ $page->section(10) }}

@if (session()->has('error_msg'))

{{session("error_msg")}}

@endif @if (session()->has('msg'))

{{session("msg")}}

@endif
{!! csrf_field() !!}
{{ Form::text('email', '', ['class'=>'form-control', 'placeholder' => Fnx::translate('shop_public_email')]) }}
{{ Form::password('password', ['class'=>'form-control', 'placeholder' => Fnx::translate('shop_public_password')]) }}
{{Form::submit( Fnx::translate('shop_public_identify'), ['class'=>'btn btn-prolona inverse', 'id' => 'login-button']) }}
@endif
@if (!$customer)

{{ $page->section(0) }} - {{ $page->section(1) }}

@else

{{ $page->section(12) }}

@endif

{{ $page->section(2) }}

@if (!$customer) @include('templates.parts.billing-info') @else
@endif

{{ $page->section(3) }}

@if (!$customer) @include('templates.parts.shipping-info') @else
@endif
@if ($customer) {!! Fnx::translate('shop_add_new_address') !!} @endif

{{ $page->section(11) }}

{{ Form::text('discount', request()->discount, ['class'=>'form-control', 'placeholder' => '', 'style' => 'width: 300px']) }}
{{Form::submit( Fnx::translate('shop_public_apply_discount'), ['class'=>'btn btn-prolona inverse', 'id' => 'js-apply-discount']) }}

{{ Fnx::translate('shop_comments') }}

{{ $page->section(4) }}

@include('templates.shop.parts.cartcheckout',['language_id'=>$lang->id])
@if ($cart->lines->count() > 0 || ($customer && $customer->addresses->count() == 0))

{{ $page->section(5) }}

@foreach($paymentmethods as $pos=>$pm)
@endforeach
@if (!$customer)
@endif
@endif {{Form::close()}}
@stop