<?php

namespace App\Enums;

enum PaymentMethod: string
{
    case Cash = 'cash';
    case ZainCash = 'zaincash';
    case Card = 'card';
    case BankTransfer = 'bank_transfer';

    public function label(): string
    {
        return __(match ($this) {
            self::Cash => 'Cash',
            self::ZainCash => 'Zain Cash',
            self::Card => 'Card',
            self::BankTransfer => 'Bank transfer',
        });
    }

    public function icon(): string
    {
        return match ($this) {
            self::Cash => '💵',
            self::ZainCash => '📱',
            self::Card => '💳',
            self::BankTransfer => '🏦',
        };
    }
}
