<?php

use App\Models\Setting;

if (!function_exists('currency')) {
    function currency($amount) {
        $symbol = Setting::get('currency_symbol', 'Rs.');
        return $symbol . ' ' . number_format($amount, 2);
    }
}

if (!function_exists('currency_symbol')) {
    function currency_symbol() {
        return Setting::get('currency_symbol', 'Rs.');
    }
}

if (!function_exists('currency_code')) {
    function currency_code() {
        return Setting::get('currency_code', 'PKR');
    }
}
