from django.contrib import admin

from .models import Order


@admin.register(Order)
class OrderAdmin(admin.ModelAdmin):
    list_display = ("order_id", "full_name", "phone", "quantity", "total_amount", "payment_method", "payment_status", "order_status", "created_at")
    search_fields = ("order_id", "full_name", "phone")
    list_filter = ("payment_status", "order_status", "payment_method", "created_at")
    list_editable = ("payment_status", "order_status")
    readonly_fields = ("order_id", "total_amount", "created_at")
