Clients inactifs

{{-- SEARCH --}}
@if($clients->count() > 0) @foreach($clients as $row) @php $last = \Carbon\Carbon::parse($row->last_order_date); $days = $last->diffInDays(now()); @endphp @php $phone = preg_replace('/[^0-9]/', '', $row->contact); if (substr($phone, 0, 3) != '223') { $phone = '223' . $phone; } $message = urlencode("Bonjour {$row->fullname}, nous constatons que vous êtes inactif depuis un moment. Nous avons une offre pour vous !"); @endphp @endforeach @else @endif
Nom Contact Dernière commande Inactivité Actions
{{ $row->fullname }} {{ $row->contact }} {{ $last->format('d/m/Y') }} {{ $days }} jours Relancer
Aucun client inactif
{{ $clients->links() }}