<?php
$cur               = '$'; 
$system_brand_logo = 'assets/images/brand/logo_1758475458.png';
$system_favicon    = 'assets/images/brand/favicon_1758475458.ico';
$system_bank_name  = 'Default Bank';
$system_email      = 'support@defaultbank.com';

// Query system settings
$system_settings_query  = "SELECT currency, brand_logo, favicon, bank_name, email FROM system_settings LIMIT 1";
$system_settings_result = $con->query($system_settings_query);

if ($system_settings_result && $system_settings_result->num_rows > 0) {
    $settings_row = $system_settings_result->fetch_assoc();

    // Override defaults only if values exist
    $cur               = !empty($settings_row['currency'])    ? $settings_row['currency']    : $cur;
    $system_brand_logo = !empty($settings_row['brand_logo'])  ? $settings_row['brand_logo']  : $system_brand_logo;
    $system_favicon    = !empty($settings_row['favicon'])     ? $settings_row['favicon']     : $system_favicon;
    $system_bank_name  = !empty($settings_row['bank_name'])   ? $settings_row['bank_name']   : $system_bank_name;
    $system_email      = !empty($settings_row['email'])       ? $settings_row['email']       : $system_email;
}

?>