| Client {!! $this->sortiIcon('nom') ?? '' !!} | Téléphone {!! $this->sortiIcon('telephone') ?? '' !!} | Ville {!! $this->sortiIcon('ville') ?? '' !!} | Date d'argu {!! $this->sortiIcon('date_argu') ?? '' !!} | Montant Devis {!! $this->sortiIcon('montant_devis') ?? '' !!} | Montant Tarif {!! $this->sortiIcon('montant_tarif') ?? '' !!} | Projet {!! $this->sortiIcon('projet') ?? '' !!} | Commercial {!! $this->sortiIcon('commercial') ?? '' !!} | Groupe {!! $this->sortiIcon('groupe_nom') ?? '' !!} | Relance Financement{!! $this->sortiIcon('date_relance') ?? '' !!} | |
|---|---|---|---|---|---|---|---|---|---|---|
|
{{ $client->nom }} {{ $client->prenom }}
|
@if($client->telephone1)
{{ $client->telephone1 }}
@endif
@if($client->telephone1 && $client->telephone2)
@endif @if($client->telephone2) {{ $client->telephone2 }} @endif |
{{ $client->ville }}
|
{{ $client->date_argu ? \Carbon\Carbon::parse($client->date_argu)->format('d/m/Y') : '' }}
|
{{ $client->montant_devis ? number_format($client->montant_devis, 0, ',', ' ') . ' €' : '0 €' }}
|
{{ $client->montant_tarif ? number_format($client->montant_tarif, 0, ',', ' ') . ' €' : '0 €' }}
|
@php
$labels = \App\Services\ProjectService::listProductsFlat();
$produits = [];
if (is_array($client->produits)) {
$produits = $client->produits;
} elseif (is_string($client->produits)) {
// Gère les séparateurs ';' ou ','
$produits = preg_split('/[;,]+/', $client->produits, -1, PREG_SPLIT_NO_EMPTY);
}
@endphp
@foreach($produits as $slug)
@if(isset($labels[$slug]))
{{ $labels[$slug] }}
@else
{{ $slug }}
@endif
@endforeach
|
{{ ($client->user_prenom && $client->user_nom) ? ($client->user_prenom . ' ' . $client->user_nom) : 'N/A' }}
|
{{ $client->groupe_nom ?? '' }}
|
{{ $client->date_relance ? \Carbon\Carbon::parse($client->date_relance_financement)->format('d/m/Y') : '' }}
|
|