@extends('frontend.layouts.main')
@section('main-container')
@include('cdn')
<main id="main" class="main">
  <h5>Lead Action</h5>
  <div class="col-lg-12">
          <div class="row">

             <!-- Sales Card -->
            <div class="col-xxl-4 col-md-4">
              <div class="card info-card sales-card">
                <div class="card-body">
                  <h5 class="card-title">Fresh Pool <span></span></h5>

                  <div class="d-flex align-items-center">
                   
                    <div class="">
                      <h6>{{$totalfreshpool}}</h6>
                    </div>
                  </div>
                </div>

              </div>
            </div><!-- End Sales Card -->

            <!-- Sales Card -->
            <div class="col-xxl-4 col-md-4">
              <div class="card info-card sales-card">
                <div class="card-body">
                  <h5 class="card-title">Lead Pool <span></span></h5>

                  <div class="d-flex align-items-center">
                   
                    <div class="">
                      <h6>{{$totalleadpool}}</h6>
                    </div>
                  </div>
                </div>

              </div>
            </div><!-- End Sales Card -->

             <!-- Sales Card -->
            <div class="col-xxl-4 col-md-4">
              <div class="card info-card sales-card">
                <div class="card-body">
                  <h5 class="card-title">Contact Pool <span></span></h5>

                  <div class="d-flex align-items-center">
                   
                    <div class="">
                      <h6>{{$totalcontactpool}}</h6>
                    </div>
                  </div>
                </div>

              </div>
            </div><!-- End Sales Card -->
          </div>
    </div> 

    <div>
      <table class="table table-striped display nowrap" style="width:100%;">
        <thead>
            <td style="font-weight: bold;">Name</td>
            <td style="font-weight: bold;">Phone</td>
            <td style="font-weight: bold;">Leads</td>
            <td style="font-weight: bold;">Contact Lead</td>
            <td style="font-weight: bold;">Paid Client</td>
            
        </thead>
        <tbody>
          @foreach($cmp_user as $key => $value)
          <tr>
            <td>{{$value['name']}}</td>
            <td>{{$value['mobile']}}</td>
            <td>{{$value['totallead']}}</td>
            <td>{{$value['totcontactlead']}}</td>
            <td>{{$value['totpaidlead']}}</td>
          </tr>
          @endforeach()
        </tbody>
      </table>
    </div>   

</main>

@endsection