{% extends 'base.html' %} {% load static %} {% block title %}Ticket Detail{% endblock %} {% block content %} {% include 'navbar.html' %}

Your Journey

{% if ticket.status == 'paid' %}

Payment Successful!

Your ticket has been confirmed. Please show this ticket when boarding.

{% endif %}
Ticket Information

Ticket Number: {{ ticket.ticket_number }}

Status: {{ ticket.status|title }}

Seat Number: {{ ticket.seat_number }}

Price: Rp {{ ticket.price }}

Journey Details

Route: {{ ticket.route.origin }} to {{ ticket.route.destination }}

Date: {{ ticket.departure_date }}

Time: {{ ticket.departure_time }}

Distance: {{ ticket.route.distance }} km

{% if payment %}
Payment Information

Payment Number: {{ payment.payment_number }}

Amount: Rp {{ payment.amount }}

Payment Method: {{ payment.payment_method }}

Payment Date: {{ payment.payment_date }}

Status: {{ payment.status }}

{% endif %}
{% if ticket.status == 'pending' %} {% endif %}
{% endblock %}