<?php $__env->startSection('title'); ?> <?php echo trans('website.labels.order-confirmation'); ?> - <?php echo Config::get('website.title'); ?> <?php $__env->stopSection(); ?> <?php $__env->startSection('container'); ?> <div class="row"> <div class="col-xs-12 order"> <h1><?php echo trans('website.labels.order-confirmation'); ?></h1> <ul class="steps clearfix"> <li class="col-xs-3 first"> <a href="<?php echo route('cart.show'); ?>">1. <?php echo trans('website.labels.shopping-cart'); ?></a> <i class="glyphicon glyphicon-triangle-right"></i> </li> <li class="col-xs-3"> <a href="<?php echo route('payment-shipment'); ?>">2. <?php echo trans('website.labels.payment-and-shipment'); ?></a> <i class="glyphicon glyphicon-triangle-right"></i> </li> <li class="col-xs-3"> <a href="<?php echo route('billing-information'); ?>">3. <?php echo trans('website.labels.billing-information'); ?></a> <i class="glyphicon glyphicon-triangle-right"></i> </li> <li class="col-xs-3 last active"> <a>4. <?php echo trans('website.labels.order-confirmation'); ?></a> </li> </ul> <?php if($errors->order->count()): ?> <?php foreach($errors->order->all() as $error): ?> <?php echo Alert::warning($error)->close(); ?> <?php endforeach; ?> <?php endif; ?> <?php if($payment->type == 'ecard'): ?> <?php echo Alert::warning(trans('website.messages.ecard-requires-tls-enabled', ['here' => link_to_route('how-to-enable-tls', trans('website.labels.how-to-enable-tls'))]))->close(); ?> <?php endif; ?> <div class="well address"> <div class="row"> <div class="col-xs-3"> <h4 class="text-uppercase"><?php echo trans('website.labels.personal-information'); ?></h4> <address> <?php echo Session::get('order.first_name'); ?> <?php echo Session::get('order.last_name'); ?><br> <a href="mailto:<?php echo Session::get('order.email'); ?>"><?php echo Session::get('order.email'); ?></a><br> <?php echo Session::get('order.phone_number'); ?> </address> </div> <div class="col-xs-3"> <h4 class="text-uppercase"><?php echo trans('website.labels.billing-address'); ?></h4> <div class="pull-left"> <?php echo Session::get('order.first_name'); ?> <?php echo Session::get('order.last_name'); ?><br> <?php if(Session::get('order.billing_company') != ''): ?> <?php echo Session::get('order.billing_company'); ?><br> <?php endif; ?> <?php echo Session::get('order.billing_street'); ?><br> <?php echo Session::get('order.billing_postcode'); ?>, <?php echo Session::get('order.billing_city'); ?><br> <?php echo $country_options[Session::get('order.billing_country')]; ?> </div> </div> <?php if((Session::get('order.billing_ico') != '' && !isGeneratedIco(Session::get('order.billing_ico'))) || Session::get('order.billing_dic') != '' || Session::get('order.billing_icdph') != ''): ?> <div class="col-xs-3"> <h4 class="text-uppercase"><?php echo trans('website.labels.billing-information'); ?></h4> <div class="pull-left"> <?php if(Session::get('order.billing_ico') != '' && !isGeneratedIco(Session::get('order.billing_ico'))): ?> <?php echo trans('website.labels.ico'); ?>: <?php echo Session::get('order.billing_ico'); ?><br> <?php endif; ?> <?php if(Session::get('order.billing_dic') != ''): ?> <?php echo trans('website.labels.dic'); ?>: <?php echo Session::get('order.billing_dic'); ?><br> <?php endif; ?> <?php if(Session::get('order.billing_icdph') != ''): ?> <?php echo trans('website.labels.icdph'); ?>: <?php echo Session::get('order.billing_icdph'); ?> <?php endif; ?> </div> </div> <?php endif; ?> <div class="col-xs-3"> <h4 class="text-uppercase"><?php echo trans('website.labels.shipping-address'); ?></h4> <div class="pull-left"> <?php if($shipment->type=='post-address' || $shipment->type=='post-office' || $shipment->type=='post-box' || $shipment->type=='courier-dhl' || $shipment->type=='post-czech' || $shipment->type=='post-europe'): ?> <?php if($shipment->type!='post-office' && $shipment->type!='post-box'): ?> <?php echo Session::get('order.shipment_first_name') ? Session::get('order.shipment_first_name') : Session::get('order.first_name'); ?> <?php echo Session::get('order.shipment_last_name') ? Session::get('order.shipment_last_name') : Session::get('order.last_name'); ?> <br> <?php endif; ?> <?php if(Session::get('order.shipment_company') != ''): ?> <?php echo Session::get('order.shipment_company'); ?><br> <?php endif; ?> <?php echo Session::get('order.shipment_street'); ?><br> <?php echo Session::get('order.shipment_postcode'); ?>, <?php echo Session::get('order.shipment_city'); ?><br> <?php echo $country_options[Session::get('order.shipment_country')]; ?> <?php else: ?> <?php echo $shipment->title($language->id); ?> <?php endif; ?> </div> </div> </div> </div> <hr size="6" class="line"> <table class="table items"> <thead> <tr> <th class="col-xs-2 text-center"><?php echo trans('website.labels.helios'); ?></th> <th class="col-xs-4"><?php echo trans('website.labels.product'); ?></th> <th class="text-center"><?php echo trans('website.labels.quantity'); ?></th> <th class="text-center"><?php echo trans('website.labels.tax-rate'); ?></th> <th class="text-right"><?php echo trans('website.labels.item-price'); ?></th> <th class="text-right"><?php echo trans('website.labels.price'); ?></th> </tr> </thead> <tbody> <?php $__empty_1 = true; foreach($cart as $row): $__empty_1 = false; ?> <tr> <td class="col-xs-2 text-center"><?php echo $row->book->helios; ?></td> <td class="col-xs-4"> <a href="<?php echo route('book', [$row->book->route]); ?>" title="<?php echo $row->book->title; ?>"> <?php echo HTML::image($row->book->image->url('small'), $row->book->title, ['class' => 'img-thumbnail']); ?> </a> <a href="<?php echo route('book', [$row->book->route]); ?>"> <h3><?php echo str_limit($row->book->title, 60); ?></h3> </a> <br> <h4><?php echo str_limit($row->book->author, 55); ?></h4> </td> <td class="text-center"><?php echo $row->qty; ?></td> <td class="text-center"><?php echo $row->options->vat; ?>%</td> <td class="text-right"><?php echo number_format($row->price, 2, ',', ' '); ?> &euro;</td> <td class="text-right"><strong><?php echo number_format($row->subtotal, 2, ',', ' '); ?> &euro;</strong></td> </tr> <?php endforeach; if ($__empty_1): ?> <tr> <td colspan="6" class="empty"> <div class="well well-lg text-center"> <?php echo trans('website.messages.empty-cart'); ?> </div> </td> </tr> <?php endif; ?> </tbody> </table> <div class="row"> <div class="pull-left back"> <i class="glyphicon glyphicon-chevron-left"></i> <?php echo HTML::linkRoute('billing-information', trans('website.labels.back')); ?> </div> <div class="pull-right"> <div class="well total"> <?php echo Form::horizontal(['id' => 'order_confirmation', 'route' => 'order-confirmation', 'secure' => true]); ?> <div class="row clearfix"> <div class="col-xs-8 pull-left"> <?php echo trans('website.labels.total-goods'); ?> </div> <div class="col-xs-4 pull-right text-right"> <strong><?php echo number_format(Session::get('order.price_goods'), 2, ',', ' '); ?> &euro;</strong> </div> </div> <div class="row clearfix"> <div class="col-xs-8 pull-left"> <?php echo trans('website.labels.total-shipment'); ?> </div> <div class="col-xs-4 pull-right text-right"> <strong><?php echo number_format(Session::get('order.price_shipment'), 2, ',', ' '); ?> &euro;</strong> </div> </div> <div class="row top-margin clearfix"> <div class="col-xs-8 pull-left"> <?php echo trans('website.labels.total-price-with-vat'); ?> </div> <div class="col-xs-4 pull-right text-right"> <strong class="price big"><?php echo number_format(Session::get('order.price_goods') + Session::get('order.price_shipment'), 2, ',', ' '); ?> &euro;</strong> </div> </div> <div class="row top-margin"> <div class="col-xs-1"> <?php echo Form::checkbox('agree_terms_and_conditions', 1, false); ?> </div> <div class="col-xs-11"> <span class="agree"><?php echo trans('website.fields.agree-to-terms-and-conditions', ['terms' => $terms ? HTML::link($terms, trans('website.labels.terms-and-conditions')) : trans('website.labels.terms-and-conditions'), 'privacy' => $privacy ? HTML::link($privacy, trans('website.labels.processing-of-personal-data')) : trans('website.labels.processing-of-personal-data')]); ?></span> </div> </div> <?php echo Button::accept(trans('website.buttons.binding-order'))->appendIcon(Icon::triangle_right())->block()->submit()->withAttributes(['class' => 'top-margin']); ?> <div class="text-center"> <span class="required"><?php echo trans('website.messages.order-requires-payment'); ?></span> </div> <?php echo Form::close(); ?> </div> </div> </div> </div> </div> <?php $__env->stopSection(); ?> <?php $__env->startSection('modals'); ?> @parent <div id="mustAgree" class="modal fade" role="dialog" aria-labelledby="" aria-hidden="true"> <div class="modal-dialog modal-md"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button> <h4 class="modal-title"><?php echo trans('website.labels.terms-and-conditions-not-agreed'); ?></h4> </div> <div class="modal-body"> <?php echo trans('website.messages.please-agree-to-terms-and-conditions'); ?> </div> <div class="modal-footer"> <?php echo Button::normal(trans('admin.buttons.close'))->withAttributes(['data-dismiss' => 'modal']); ?> </div> </div> </div> </div> <?php $__env->stopSection(); ?> <?php $__env->startSection('scripts'); ?> @parent $('form#order_confirmation').on('submit', function(event) { var agree = $(this).find('input[name=agree_terms_and_conditions]:checked').val(); if (!agree) { $('#mustAgree').modal('show'); return false; } }); <?php $__env->stopSection(); ?>