Dashboard @php $dashboardBaseColor = '#' . ltrim(trim((string) $colour), '#'); $r = hexdec(substr($dashboardBaseColor, 1, 2)); $g = hexdec(substr($dashboardBaseColor, 3, 2)); $b = hexdec(substr($dashboardBaseColor, 5, 2)); $lightenRatio = 0.35; $lr = (int) round($r + (255 - $r) * $lightenRatio); $lg = (int) round($g + (255 - $g) * $lightenRatio); $lb = (int) round($b + (255 - $b) * $lightenRatio); $darkenRatio = 0.25; $dr = (int) round($r * (1 - $darkenRatio)); $dg = (int) round($g * (1 - $darkenRatio)); $db = (int) round($b * (1 - $darkenRatio)); $veryDarkRatio = 0.45; $vdr = (int) round($r * (1 - $veryDarkRatio)); $vdg = (int) round($g * (1 - $veryDarkRatio)); $vdb = (int) round($b * (1 - $veryDarkRatio)); $softLightRatio = 0.86; $slr = (int) round($r + (255 - $r) * $softLightRatio); $slg = (int) round($g + (255 - $g) * $softLightRatio); $slb = (int) round($b + (255 - $b) * $softLightRatio); $verySoftRatio = 0.93; $vsr = (int) round($r + (255 - $r) * $verySoftRatio); $vsg = (int) round($g + (255 - $g) * $verySoftRatio); $vsb = (int) round($b + (255 - $b) * $verySoftRatio); $dashboardLightColor = sprintf('#%02X%02X%02X', $lr, $lg, $lb); $dashboardDarkColor = sprintf('#%02X%02X%02X', $dr, $dg, $db); $dashboardVeryDarkColor = sprintf('#%02X%02X%02X', $vdr, $vdg, $vdb); $dashboardSoftColor = sprintf('#%02X%02X%02X', $slr, $slg, $slb); $dashboardVerySoftColor = sprintf('#%02X%02X%02X', $vsr, $vsg, $vsb); @endphp
Dashboard
@php $paraModule = json_decode(\App\Models\Configuration::query()->where('label', 'Configuration modules')->first()->value)->para; @endphp
Tableau de bord client

Pilotage commercial et financier

Suivez l’état des commandes, le solde financier, le chiffre d’affaires, la trésorerie et les échéances à venir depuis une interface plus claire et responsive.

@if ($paraModule) @php $clientAccess = auth()->user()->client->all_products; @endphp @if ($clientAccess)
@endif @endif
@if($user->hasPermissionTo(2100001))
À traiter
{{$waiting}} Commandes en attente
@endif @if($user->hasPermissionTo(2100002))
En suivi
{{$inProgress}} Commandes en cours
@endif @if($user->hasPermissionTo(2100003))
Confirmées
{{$validated}} Commandes validées
@endif @if($user->hasPermissionTo(2100004))
Annulées
{{$rejected}} Commandes annulées
@endif
@if($user->hasPermissionTo(2100005))

Situation financière

Suivi du solde et des éléments non rapprochés.

Total solde @if(!empty($totalBalance)) {{ number_format($totalBalance, 3, '.', ' ') }} @else 0.000 @endif dt
Factures Non Rapp @if(!empty($totalInvoices)) {{ number_format($totalInvoices, 3, '.', ' ') }} @else 0.000 @endif dt
Règlements Non Rapp @if(!empty($totalCheckouts)) {{ number_format($totalCheckouts, 3, '.', ' ') }} @else 0.000 @endif dt
RS Non Rapp @if(!empty($totalRetenues)) {{ number_format($totalRetenues, 3, '.', ' ') }} @else 0.000 @endif dt
Impayés Non Rapp @if(!empty($totalUnpaids)) {{ number_format($totalUnpaids, 3, '.', ' ') }} @else 0.000 @endif dt
Règ. Imp Non Rapp @if(!empty($totalUnpaidCheckouts)) {{ number_format($totalUnpaidCheckouts, 3, '.', ' ') }} @else 0.000 @endif dt
@endif @if($user->hasPermissionTo(2100005))

Chiffre d'affaires

Tot factures TTC - Tot avoirs/factures.

CA net @if(!empty($ca)) {{ number_format($ca, 3, '.', ' ') }} @else 0.000 @endif dt
BL non facturées @if(!empty($totaldeliveryNotBillable)) {{ number_format($totaldeliveryNotBillable, 3, '.', ' ') }} @else 0.000 @endif dt
Avoir/BL non facturées @if(!empty($totalReturnsNotBillable)) {{ number_format($totalReturnsNotBillable, 3, '.', ' ') }} @else 0.000 @endif dt
Factures avoirs @if(!empty($avoirs)) {{ number_format($avoirs, 3, '.', ' ') }} @else 0.000 @endif dt
Factures TTC @if(!empty($bills)) {{ number_format($bills, 3, '.', ' ') }} @else 0.000 @endif dt
@endif
@if($user->hasPermissionTo(2100005))

Trésorerie

Suivi des montants non versés.

Total non versés @if(!empty($notVersed)) {{ number_format($notVersed, 3, '.', ' ') }} @else 0.000 @endif dt
Traites non versées @if(!empty($traite)) {{ number_format($traite, 3, '.', ' ') }} @else 0.000 @endif dt
Chèques non versés @if(!empty($cheque)) {{ number_format($cheque, 3, '.', ' ') }} @else 0.000 @endif dt
@endif @if($user->hasPermissionTo(2100005))

Échéances des 7 prochains jours

Montants à verser dans la semaine.

Total à verser @if(!empty($toVerse)) {{ number_format($toVerse, 3, '.', ' ') }} @else 0.000 @endif dt
@forelse ($traiteDueDate as $traiteDueDates) @if(!empty($traiteDueDates["montant"]))
@if(trim($traiteDueDates["modepaie"]) === 'CHEQUE') Chèque @else Traite @endif @if(!empty($traiteDueDates["montant"])) {{ number_format($traiteDueDates["montant"], 3, '.', ' ') }} @else 0.000 @endif dt
@if(!empty($traiteDueDates["ncheque"]))
N° {{ $traiteDueDates["ncheque"] }}
@endif
Le {{ \Carbon\Carbon::parse($traiteDueDates["echeance"])->toDateString() }}
@endif @empty
Aucune échéance à afficher.
@endforelse
@endif