| Client {!! $this->sortiIcon('nom') ?? '' !!} | Téléphone {!! $this->sortiIcon('telephone') ?? '' !!} | Ville {!! $this->sortiIcon('ville') ?? '' !!} | Date d'argu {!! $this->sortiIcon('date_argu') ?? '' !!} | Vendu {!! $this->sortiIcon('resultat') ?? '' !!} | 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') ?? '' !!} | Date Relance {!! $this->sortiIcon('date_relance') ?? '' !!} | Relancé | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
{{ $client->client->nom }} {{ $client->client->prenom }}
|
@if($client->client->telephone1)
{{ $client->client->telephone1 }}
@endif
@if($client->client->telephone1 && $client->client->telephone2)
@endif @if($client->client->telephone2) {{ $client->client->telephone2 }} @endif |
{{ $client->client->ville }}
|
{{ $client->date_argu ? \Carbon\Carbon::parse($client->date_argu)->format('d/m/Y') : '' }}
|
{{ $client->resultat ?? '' }}
|
{{ $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->client->user) ? $client->client->user->display_name : 'N/A' }}
|
{{ $client->groupe_nom ?? '' }}
|
{{ $client->date_relance ? \Carbon\Carbon::parse($client->date_relance)->format('d/m/Y') : '' }}
|
@if($client->rdv_relance)
@else
@endif
|
|