{{ $account['import_account']->name ?? 'New Account' }}
Please select an account type.
Please select an account role.
Please select a liability role.
@php // Balance-based direction logic $inferredDirection = 'credit'; // Default fallback if (isset($account['import_account']->balance)) { $balance = floatval($account['import_account']->balance); // Negative balance = we owe them (credit) // Positive balance = they owe us (debit) $inferredDirection = ($balance < 0) ? 'credit' : 'debit'; } @endphp
Please select a liability direction.
@php $rawBalance = $account['import_account']->balance ?? null; $convertedFloat = (float)($rawBalance ?? '0.00'); $displayFormat = number_format($convertedFloat, 2); @endphp
{{ $displayFormat }}
@php // Check for previously committed currency selection, fall back to SimpleFIN currency, then EUR $accountId = $account['import_account']->id; $newAccounts = $configuration->getNewAccounts(); $committedCurrency = $newAccounts[$accountId]['currency'] ?? null; $displayCurrency = $committedCurrency ?? $account['import_account']->currencyCode ?? 'EUR'; @endphp {{ $displayCurrency }}
Ready for import