<?php $__env->startSection('title'); ?> <?php if($category == 'book-offer'): ?> <?php echo trans('website.labels.books'); ?> - <?php echo Config::get('website.title'); ?> <?php endif; ?> <?php if($category == 'book-category'): ?> <?php echo $book_category->title($language->id); ?> - <?php echo Config::get('website.title'); ?> <?php endif; ?> <?php if($category == 'book-language'): ?> <?php echo $book_language->title($language->id); ?> <?php echo trans('website.labels.language'); ?> - <?php echo Config::get('website.title'); ?> <?php endif; ?> <?php if($category == 'book-edition'): ?> <?php echo $book_edition->title($language->id); ?> - <?php echo trans('website.labels.editions'); ?> - <?php echo Config::get('website.title'); ?> <?php endif; ?> <?php $__env->stopSection(); ?> <?php $__env->startSection('container'); ?> <div class="row"> <div class="col-xs-3"> <?php echo $__env->make('website.eshop.menu', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?> </div> <div class="col-xs-9"> <div class="row"> <div class="col-xs-12"> <?php echo $__env->make('website.eshop.banners', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?> </div> </div> <div class="row"> <div class="col-xs-12"> <?php echo Breadcrumb::withLinks($breadcrumbs); ?> <?php echo Form::open(['method' => 'GET', 'class' => 'dropdown sort']); ?> <a class="dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-expanded="false"> <?php echo trans('website.labels.books-sort-' . $sort); ?></span> </a> <ul class="dropdown-menu" role="menu"> <?php foreach($sort_options as $key => $value): ?> <li><a href="?sort=<?php echo $key; ?>"><?php echo $value; ?></a></li> <?php endforeach; ?> </ul> <?php echo Form::close(); ?> </div> </div> <?php $__empty_1 = true; foreach(array_chunk($books->getItems(), 2) as $row): $__empty_1 = false; ?> <div class="row"> <?php foreach($row as $book): ?> <div class="col-xs-6"> <?php echo $__env->make('website.eshop.partials.book-preview', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?> </div> <?php endforeach; ?> </div> <?php endforeach; if ($__empty_1): ?> <div class="row"> <div class="col-xs-12"> <div class="well well-lg text-center"> <h4><?php echo trans('website.messages.empty-' . $category); ?></h4> </div> </div> </div> <?php endif; ?> <div class="row"> <div class="col-xs-12 text-center"> <?php echo $books->links(); ?> </div> </div> </div> </div> <?php $__env->stopSection(); ?> <?php $__env->startSection('scripts'); ?> @parent $('form.sort select').on('change', function(event) { $('form.sort').submit(); }); $('a.out-of-stock[data-toggle="popover"]').popover({ content: '<?php echo trans('website.messages.product-not-available'); ?>' }); <?php $__env->stopSection(); ?>