<?php

namespace App\Enums;

enum PaymentMethod: string
{
    case Cash = 'cash';
    case Visa = 'visa';
    case Bank = 'bank';
    case Wallet = 'wallet';
    case Other = 'other';

    public function label(): string
    {
        return __('status.method_'.$this->value);
    }

    public function affectsCashDrawer(): bool
    {
        return $this === self::Cash;
    }
}
