<div class="page-body">
  <div class="row">
    @forelse ($dats as $item)
      <div class="col-md-6 col-xl-3">
        <div class="card widget-card-1">
          <div class="card-block-small">
            <i class="fas fa-chart-pie bg-c-blue card1-icon"></i>
            <span class="text-c-blue f-w-600">Effectif</span>
            <h5>{{preg_replace('/\B(?=(\d{3})+(?!\d))/', ' ', ($item['effectif'] <= 9 ? '0'.$item['effectif']:$item['effectif']))}}</h5>
            <div>
              <span class="f-left m-t-10 text-muted">
                <i class="text-c-blue f-16 fa fa-home m-r-10"></i> {{ ucwords(changeVal($item['libelle'])) }}
              </span>
            </div>
          </div>
        </div>
      </div>
    @empty
      <div class="col-12 text-center">
        <div class="card" style="width: 50%; margin: 1px auto">
          <div class="card-body">
            <h4>Faites les parametrages pour commencer</h4>
          </div>
        </div>
      </div>
    @endforelse
  </div>
</div>