from django.contrib import admin
from .models import StaffProfile



@admin.register(StaffProfile)
class StaffProfileAdmin(admin.ModelAdmin):
    list_display = (
        'id',
        'user',
        'staff_role',
        'designation',
        'whatsapp_number',
        'is_operations_active',
        'created_at',
    )

    list_filter = (
        'staff_role',
        'is_operations_active',
        'created_at',
    )

    search_fields = (
        'user__username',
        'user__first_name',
        'user__last_name',
        'user__email',
        'designation',
        'whatsapp_number',
        'phone_number',
        'nid_number',
    )

    readonly_fields = (
        'created_at',
        'updated_at',
    )
