@extends('layouts.web.index') @section('content') @include('layouts.web.header')

{{ isset($category) ? $category->name : 'All Books' }}

Showing {{ isset($books) && $books->count() > 0 ? (($books->currentPage() - 1) * $books->perPage() + 1) : 0 }} - {{ isset($books) && $books->count() > 0 ? min($books->currentPage() * $books->perPage(), $books->total()) : 0 }} of {{ isset($books) && $books->count() > 0 ? $books->total() : 0 }} results

@if(request('search')) @endif @if(request('min_price')) @endif @if(request('max_price')) @endif
@if(isset($books) && $books->count() > 0)
@foreach($books as $book)
{{ $book->title }} @if($book->is_on_sale) {{ round((($book->price - $book->sale_price) / $book->price) * 100) }}% OFF @endif @if($book->is_featured) Featured @endif
{{ Str::limit($book->title, 50) }}

by {{ $book->author }}

(4.0)
@if($book->is_on_sale) ₹{{ number_format($book->sale_price, 2) }} ₹{{ number_format($book->price, 2) }} @else ₹{{ number_format($book->price, 2) }} @endif
@endforeach
@if($books->hasPages())
@endif @else

No books found

Try adjusting your filters or search terms.

Browse All Books
@endif
@include('layouts.web.footer') @endsection