{% extends 'base.html' %} {% load static %} {% block content %}
{% if book.image %} {{ book.title }} {% else %}

No image available

{% endif %}

{{ book.title }}

By: {{ book.author }}

Category: {{ book.category }}

{{ book.description }}

Price: Ksh. {{ book.price }}

{% if book.quantity > 0 %}

✔ In Stock ({{ book.quantity }} available)

{% csrf_token %}
{% else %}

✖ Out of Stock

{% endif %} {% if user.is_authenticated %}
{% endif %}