from django.contrib import admin
from .models import Client, Case

@admin.register(Client)
class ClientAdmin(admin.ModelAdmin):
    list_display = ('name', 'email', 'phone', 'created_at')
    search_fields = ('name', 'email')

@admin.register(Case)
class CaseAdmin(admin.ModelAdmin):
    list_display = ('case_number', 'case_title', 'client', 'status', 'created_at')
    list_filter = ('status', 'client')
    search_fields = ('case_number', 'case_title')