@lang('messages.earningChartNote') ({{ company()->currency->currency_code }})
@if (in_array('invoices', user_modules()) && (in_array('total_paid_invoices', $activeWidgets) || in_array('total_unpaid_invoices', $activeWidgets)))
@lang('app.menu.invoices')
@if (in_array('total_paid_invoices', $activeWidgets))

{{ $totalPaidInvoice }} @lang('modules.dashboard.totalPaidInvoices')

@endif @if (in_array('total_unpaid_invoices', $activeWidgets))

{{ $totalUnPaidInvoice }}@lang('modules.dashboard.totalUnpaidInvoices')

@endif
@endif @if (in_array('invoices', user_modules()) && (in_array('total_expenses', $activeWidgets) || in_array('total_earnings', $activeWidgets)))
@endif @if (in_array('invoices', user_modules()) && in_array('total_pending_amount', $activeWidgets))
@endif
@if (in_array('invoices', user_modules()) && in_array('invoice_overview', $activeWidgets))
@if (array_sum($invoiceOverviewChartData['values']) > 0) @endif
@endif @if (in_array('estimates', user_modules()) && in_array('estimate_overview', $activeWidgets))
@if (array_sum($estimateOverviewChartData['values']) > 0) @endif
@endif @if (in_array('leads', user_modules()) && in_array('proposal_overview', $activeWidgets))
@if (array_sum($proposalOverviewChartData['values']) > 0) @endif
@endif @if (in_array('payments', user_modules()) && in_array('earnings_by_client', $activeWidgets))
@endif @if (in_array('payments', user_modules()) && in_array('projects', user_modules()) && in_array('earnings_by_projects', $activeWidgets))
@endif