2. Added classed col-xs-6 col-sm-4 col-md-4 col-lg-3 in grid-item.blade.php

5. Added <div class="row"> in index.blade.php
This commit is contained in:
Nilesh Deepak 2017-07-13 12:24:47 +05:30
parent e919cab3d1
commit b0ba1a43a9
2 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,4 @@
<div class="col-xs-12 col-sm-6 col-md-4 col-lg-3" data-entity-type="book" data-entity-id="{{$book->id}}">
<div class="col-xs-6 col-sm-4 col-md-4 col-lg-3" data-entity-type="book" data-entity-id="{{$book->id}}">
<div class="gallery-item">
<h4>
<a class="text-book entity-list-item-link" href="{{$book->getUrl()}}"><i class="zmdi zmdi-book"></i><span class="entity-list-item-name">{{$book->name}}</span>

View File

@ -24,12 +24,14 @@
<h1>{{ trans('entities.books') }}</h1>
@if(count($books) > 0)
@if($books_display=='grid')
<div class="row">
@foreach($books as $book)
@include('books/grid-item', ['book' => $book])
@endforeach
<div class="col-xs-12">
{!! $books->render() !!}
</div>
</div>
@else
@foreach($books as $book)
@include('books/list-item', ['book' => $book])