{{ $nbrDevisEnAttente }} Devis en attente de validation
Montant total : {{ number_format($totalEnCours, thousands_separator: ' ', decimal_separator: ',', decimals: 2) }}€

{{ $nbrCommandeOfYear }} Devis acceptés
en {{ date('Y') }}

  Devis

{{ $statEnCours / 10 }}/10

{{ $statEnCours }}%

{{ $statCommande / 10 }}/10

{{ $statCommande }}%

@forelse ($devis as $row) @empty {{-- Laisser vide car l'absence de donnée est géré par DataTable --}} @endforelse
Date Site Numéro Titre Montant Fichier Statut
{{ ($row->date_update) ? $row->date_update->format('d/m/Y') : '-' }} @php // Vérifier si des "t_devis_locations" existent $locations = $row->t_devis_locations; $firstLocation = $locations->first(); $moreLocations = $locations->slice(1); @endphp @if($firstLocation)
{{ $firstLocation->t_location->libelle ?? '-' }}
{{ $firstLocation->t_location->adresse ?? '-' }}
{{ $firstLocation->t_location->cp ?? '-' }} - {{ $firstLocation->t_location->ville ?? '-' }}
@if($firstLocation->t_location->latitude != 0 && $firstLocation->t_location->longitude != 0) @else Coordonnée non trouvée @endif
@endif @if($moreLocations->isNotEmpty())
@foreach($moreLocations as $location)
{{ $location->t_location->libelle ?? '-' }}
{{ $location->t_location->adresse ?? '-' }}
{{ $location->t_location->cp ?? '-' }} - {{ $location->t_location->ville ?? '-' }}
@if($location->t_location->latitude != 0 && $location->t_location->longitude != 0) @else Coordonnée non trouvée @endif
@endforeach
@endif
{{ $row->id_libelle }} {{ $row->libelle }} @if ($row->total_ht > 0) {{ number_format($row->total_ht, thousands_separator: ' ', decimal_separator: ',', decimals: 2) }}€ @else - @endif @if($row->fichier() !== '#') @else Fichier non disponible @endif @php $statut = $row->statut(); @endphp $statut === 'commandé', 'traite' => $statut === 'en cours'])> {{ $statut }}
Aucun enregistrement trouvé
Date Site Numéro Titre Montant Fichier Statut
Géolocalisation