{% extends "base.html" %}
{% block title %}Banner Details{% endblock %}
{% block content %}
<div class="container mt-4">
    <h2>Banner Details</h2>
    <table class="table table-bordered">
        <tr><th>ID</th><td>{{ banner.id }}</td></tr>
        <tr><th>Title</th><td>{{ banner.title }}</td></tr>
        <tr><th>Description</th><td>{{ banner.description }}</td></tr>
        <tr><th>Status</th><td>{{ banner.status }}</td></tr>
        <tr><th>Image</th><td>{% if banner.image %}<img src="{{ banner.image.url }}" width="120">{% endif %}</td></tr>
        <tr><th>Created</th><td>{{ banner.created_at }}</td></tr>
        <tr><th>Updated</th><td>{{ banner.updated_at }}</td></tr>
    </table>
    <a href="{% url 'banner-management' %}" class="btn btn-secondary">Back</a>
    <a href="{% url 'banner-edit' banner.id %}" class="btn btn-warning">Edit</a>
</div>
{% endblock %}
