@vite(['resources/css/app.css', 'resources/js/app.js']) @php $moduleIcons = [ 'exchange' => 'repeat-2', 'remittance' => 'send', 'treasury' => 'landmark', 'projects' => 'building-2', 'rents' => 'key-round', 'finance' => 'calculator', 'debts' => 'receipt', 'filing' => 'folder-open', 'audit' => 'shield-check', 'hr' => 'users', ]; $moduleNotes = [ 'exchange' => 'خرید، فروش و مفاد اسعار', 'remittance' => 'حواله وارد و صادر شده', 'treasury' => 'نقده پول و اسناد خزانه', 'projects' => 'مصارف، فروشات و بودجه', 'rents' => 'قرارداد و تادیات کرایه', 'finance' => 'حساب، انوایس و ستدمنت', 'debts' => 'قرضداری و دریافت قرض', 'filing' => 'دوسیه و اسناد کمپنی', 'audit' => 'نتایج و اصلاحات آدیت', 'hr' => 'کارمندان و معاشات', ]; $availableModules = collect($modules) ->filter(fn ($module) => auth()->user()->canAccessModule($module, 'view')) ->values(); $boardModules = $availableModules ->reject(fn ($module) => in_array($module, ['exchange', 'audit'], true)) ->values(); $formatMoney = fn ($value, $digits = 0) => number_format((float) ($value ?? 0), $digits); $exchangeStats = $moduleStats->get('exchange'); $treasuryStats = $moduleStats->get('treasury'); $remittanceStats = $moduleStats->get('remittance'); $hrStats = $moduleStats->get('hr'); $filingStats = $moduleStats->get('filing'); $statCards = [ ['key' => 'today', 'label' => 'معاملات امروز', 'value' => $todayCount, 'suffix' => '', 'icon' => 'calendar-days'], ['key' => 'buy', 'label' => 'خرید اسعار', 'value' => $exchangeBuy, 'suffix' => 'USD', 'icon' => 'arrow-down-left'], ['key' => 'sell', 'label' => 'فروش اسعار', 'value' => $exchangeSell, 'suffix' => 'USD', 'icon' => 'arrow-up-right'], ['key' => 'profit', 'label' => 'مفاد امروز', 'value' => $todayProfit, 'suffix' => 'AFN', 'icon' => 'chart-no-axes-combined'], ['key' => 'commission', 'label' => 'کمیشن حواله', 'value' => $remittanceStats->commission ?? 0, 'suffix' => 'AFN', 'icon' => 'hand-coins'], ['key' => 'files', 'label' => 'اسناد ثبت شده', 'value' => $filingStats->records_count ?? 0, 'suffix' => '', 'icon' => 'folder-open'], ]; @endphp
Saleem Caravan Group MIS
@csrf

زمان سیستم

--:--:--

هجری شمسی --
هجری قمری --
میلادی --

Currency Exchange

صرافی

مفاد {{ $formatMoney($exchangeStats->profit ?? 0, 2) }}
تعداد ثبت {{ $formatMoney($exchangeStats->records_count ?? 0, 0) }}
وضعیت فعال

نرخ اسعار

Currency Rates

@foreach($currencies->take(6) as $currency)
{{ $currency->code }} {{ $formatMoney($currency->base_rate, 2) }} {{ $currency->name }}
@endforeach
@foreach($boardModules as $module) @php $label = $tabs[$module][$locale] ?? $tabs[$module]['fa']; $stats = $moduleStats->get($module); $columns = \App\Support\MisCatalog::tableColumns($module); @endphp @endforeach