<?php

namespace App\Enums\Barangay;

enum BlotterStatus: string
{
    case FILED = 'FILED';
    case FOR_HEARING = 'FOR_HEARING';
    case SETTLED = 'SETTLED';
    case RESOLVED = 'RESOLVED';
    case DISMISSED = 'DISMISSED';
    case ENDORSED = 'ENDORSED';

    public function label(): string
    {
        return match($this) {
            self::FILED       => 'Filed',
            self::FOR_HEARING => 'For Hearing',
            self::SETTLED     => 'Settled',
            self::RESOLVED    => 'Resolved',
            self::DISMISSED   => 'Dismissed',
            self::ENDORSED    => 'Endorsed to Higher Authority',
        };
    }
}
