<?php

namespace App\Helpers;

use App\Models\Setting;

class CurrencyHelper
{
    public static function format($amount)
    {
        $symbol = Setting::get('currency_symbol', 'Rs.');
        return $symbol . ' ' . number_format($amount, 2);
    }

    public static function symbol()
    {
        return Setting::get('currency_symbol', 'Rs.');
    }

    public static function code()
    {
        return Setting::get('currency_code', 'PKR');
    }
}
