@php $modules = getModules() ; $crmIsInstalled = ($modules->contains(\Core\v1\Module\Enums\SuitModulesEnum::GENERAL_INVOICE->value) || $modules->contains(\Core\v1\Module\Enums\SuitModulesEnum::CRM_INVOICE->value)) ; $contactIsInstalled = $modules->contains(\Core\v1\Module\Enums\SuitModulesEnum::CONTACT->value); @endphp
{{ trans('pdf.report') }} {{ $startDate->format('d-m-Y') }} au {{ $endDate->format('d-m-Y') }}
@if ($crmIsInstalled)
{{ trans('pdf.currency') }} : {{ $currency }}
@endif
@if ($crmIsInstalled) @endif @if ($contactIsInstalled) @endif @if ($crmIsInstalled) @endif @if ($contactIsInstalled)@endif
{{ trans('pdf.turnover') }} {{ trans('pdf.invoice') }}{{ trans('pdf.user') }}{{ trans('pdf.contact') }}
{{ number_format($invoiceTurnover['invoiceTurnover'],2,'.',' ') }}
{{ trans('pdf.paid') }}: {{ $invoiceTurnover['invoicesPaidCount'] }}
{{ trans('pdf.unpaid') }}: {{ $invoiceTurnover['invoicesNotPaidCount'] }}
{{ trans('pdf.total') }}: {{ $invoiceTurnover['invoicesCount'] }}
{{ trans('pdf.actif') }}: {{ $users['activeUsersCount'] }}
{{ trans('pdf.inactif') }}: {{ $users['disableUsersCount'] }}
{{ trans('pdf.total') }}: {{ $users['activeUsersCount'] + $users['disableUsersCount'] }}
{{ trans('pdf.supplier') }}: {{ $contacts['contactsSupplier'] }}
{{ trans('pdf.client') }}: {{ $contacts['contactsClient'] }}
{{ trans('pdf.total') }}: {{ $contacts['contactsCount'] }}
@if ($crmIsInstalled)

{{ trans('pdf.customer_list') }}: ({{ $bestCustomers->count() }})

@if ($bestCustomers->count()) @foreach ($bestCustomers as $customer) @endforeach
{{ trans('pdf.name') }} {{ trans('pdf.turnover') }} {{ trans('pdf.total_payment') }}
{{ $customer['full_name'] }} {{ number_format($customer['total_sales'],2,'.',' ') }} {{ $customer['invoice_payment_total'] }}
@endif
@endif