@extends('app') @section('content')

Grāmata

Nosaukums:
{{$book->name}}
Autori:
{{ implode(', ', $book->authors->lists('name')) }}
Kategorija:
@if($book->genre) {{$book->genre->name}} @endif
Klase:
{{$book->grade}}
Izdevniecība:
@if($book->publisher) {{$book->publisher->name}} @endif
Izdošanas gads:
{{$book->year}}
Atslēgvārdi:
{{$book->tags}}
Apraksts:
{{$book->description}}
Pieejamie eksemplāri:
{{$book->copies}}
Vērtējums:

{{ $book->plus }} / {{ $book->minus }}

@if(Auth::check())
Balsot:
@if(!Auth::user()->ratings()->where('book_id', $book->id)->first()) {{ Form::open(array('id' => 'vote-form')) }} {{ Form::button('', array('type' => 'submit','class'=> 'btn btn-success', 'value' => '1')) }} {{ Form::button('', array('type' => 'submit','class'=> 'btn btn-danger', 'value' => '0')) }} {{ Form::close() }} @else

Jūs jau esat nobalsojis!

@endif
@endif
@if(!empty($book->image)) image") }}"> @endif
@stop