{{($book->stock<=Config::get('website.eshop.stock')) ? trans('website.labels.out-of-stock') : trans('website.labels.in-stock')}}
{{trans('website.labels.price-with-vat')}}:
@if ($book->only_for_one_euro)
{{number_format($book->price, 2, ',', ' ')}} €
{{number_format(1, 2, ',', ' ')}} €
@elseif ($book->bookDiscounts->count())
{{number_format($book->price, 2, ',', ' ')}} €
{{number_format($book->bookDiscounts->first()->discount, 2, ',', ' ')}} €
@elseif ($discount)
{{number_format($book->price, 2, ',', ' ')}} €
{{number_format($book->price * ((100 - $discount->discount) / 100), 2, ',', ' ')}} €
@else
{{number_format($book->price, 2, ',', ' ')}} €
@endif
@if ($book->stock > Config::get('website.eshop.stock'))
{{Form::open(['route' => ['cart.add.book', $book->id], 'method' => 'POST', 'secure' => true])}}
{{Button::cart(trans('website.labels.add-to-cart'))->small()->prependIcon(Icon::shopping_cart())->submit()}}
{{Form::close()}}
@else
Do košíka
@endif