@extends('layouts.app') @php function getAccountIcon($accountType) { $icons = [ 'bank' => '', 'cash' => '', 'investment' => '', 'credit_card' => '', 'loan' => '', 'mortgage' => '', ]; return $icons[$accountType] ?? $icons['bank']; } function getCurrencySymbol($code) { $symbols = ['USD' => '$', 'EUR' => '€', 'GBP' => '£', 'OMR' => 'ر.ع.', 'AED' => 'د.إ', 'SAR' => 'ر.س', 'PKR' => '₨', 'INR' => '₹']; return $symbols[$code] ?? $code; } function fmtCurrency($amount, $currency) { return getCurrencySymbol($currency) . number_format((float)$amount, 2); } @endphp @section('title', 'Accounts — Financial OS') @push('styles') @endpush @section('content') @php $user = Auth::user(); $canEdit = $canEdit ?? true; $baseCurrency = $user->base_currency ?? 'USD'; $currencySymbol = getCurrencySymbol($baseCurrency); @endphp {{-- TOASTS --}} @if(session('success'))
No accounts yet. Add your first account above.