@extends('layouts.main.main') @section('content')
@can('créer un client')
Nouveau client
@endcan
@if($customers->where('active',1)->count() > 0)
@foreach($customers->where('active',1) as $customer) @endforeach
Nom Projets  
@can('voir une fiche client') {{ $customer->name }} @else {{ $customer->name }} @endcan {{ $customer->projects_count }} @can('éditer une fiche client') @endcan
@else Aucun client actif n'est enregistré pour l'instant. @endif
@if($customers->where('active',0)->count() > 0)
@foreach($customers->where('active',0) as $customer) @endforeach
Nom Projets  
@can('voir une fiche client') {{ $customer->name }} @else {{ $customer->name }} @endcan {{ $customer->projects_count }} @can('éditer une fiche client') @endcan
@else Aucun client n'est archivé pour l'instant. @endif
@endsection