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

{{--{{ Form::open( array('url' => '/admin/book/search/','method' => 'get', 'id' => 'searchSubmitBtn','class' => 'form-horizontal'))}}--}} {{--
--}} {{--
--}} {{--
--}} {{--{{ Form::label('name', 'Nosaukums', array('class' => 'col-xs-2 control-label') ) }}--}} {{--
--}} {{--{{ Form::text('name', (isset($inputData['name']))? $inputData['name'] : null, array ('class' => 'form-control'))}}--}} {{--
--}} {{--
--}} {{--
--}} {{--{{ Form::label('author', 'Autors', array--}} {{--('class' => 'col-xs-2 control-label'))--}} {{--}}--}} {{--
--}} {{--{{ Form::text('author', (isset($inputData['author']))? $inputData['author'] : null, array--}} {{--(--}} {{--'class' => 'form-control'--}} {{--))--}} {{--}}--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{--{{ Form::number('year', (isset($inputData['year']))? $inputData['year'] : null, array(--}} {{--'class' => 'form-control',--}} {{--'min' => '0',--}} {{--'max' => date("Y"),--}} {{--'placeholder' => 'Izdošanas gads'--}} {{--))--}} {{--}}--}} {{--
--}} {{--
--}} {{--{{ Form::number('grade', (isset($inputData['grade']))? $inputData['grade'] : null, array(--}} {{--'class' => 'form-control',--}} {{--'min' => '0',--}} {{--'max' => '6',--}} {{--'placeholder' => 'Klase'--}} {{--))--}} {{--}}--}} {{--
--}} {{--
--}} {{--
--}} {{--{{ Form::label('tags', 'Atslēgvārdi', array('class' => 'col-xs-2 control-label') ) }}--}} {{--
--}} {{--{{ Form::text('tags', (isset($inputData['tags']))? $inputData['tags'] : null, array(--}} {{--'class' => 'form-control',--}} {{--))--}} {{--}}--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{--{{ Form::label('publisher', 'Izdevējs', array--}} {{--(--}} {{--'class' => 'col-xs-3 control-label'--}} {{--))--}} {{--}}--}} {{--
--}} {{--{{ Form::select('publisher', array(null => 'Izvēlieties izdevēju') + $publishers->lists('name', 'id'), (isset($inputData['publisher']))? $inputData['publisher'] : null, array('class' => 'form-control')) }}--}} {{--
--}} {{--
--}} {{--
--}} {{--{{ Form::label('genre', 'Kategorija', array--}} {{--(--}} {{--'class' => 'col-xs-3 control-label'--}} {{--))--}} {{--}}--}} {{--
--}} {{--{{ Form::select('genre', array(null => 'Izvēlieties kategoriju') + $genres->lists('name', 'id'), (isset($inputData['genre']))? $inputData['genre'] : null, array('class' => 'form-control')) }}--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{--{{ Form::submit('Meklēt',['class' => 'btn btn-info btn-lg btn-block']) }}--}} {{--
--}}
{{ HTML::link('/admin/book/create', 'Pievienot Grāmatu', ['class' => 'btn btn-info btn-lg btn-block']) }}
{{--
--}} {{--{{ Form::close() }}--}}
{{ $books->appends(Request::except('page'))->links() }}

{{--@if($data['book_count'] == 1) {{ Lang::get('messages.bookCount', array('count' => $data['book_count'])) }}--}} {{--@else {{ Lang::get('messages.booksCount', array('count' => $data['book_count'])) }}--}} {{--@endif--}}
@if($books != NULL) @foreach($books as $book)
Nosaukums Autors Kategorija Izdošanas gads Klase Izdevējs Kopijas