@extends('layouts.master')
@section('title','Dashboard')
@section('content')
    <div class="content-wrapper">
      <!-- Content Header (Page header) -->
      <div class="content-header">
        <div class="container-fluid">
          <div class="row mb-2">
            <div class="col-sm-6">
              <ol class="breadcrumb">
                <li class="breadcrumb-item"><a href="#">Home</a></li>
                <li class="breadcrumb-item active">Dashboard</li>
              </ol>
            </div>
          </div>
        </div>
      </div>
      <!-- Main content -->
      <section class="content">
        <div class="container-fluid">
          <div class="dashboard">

            <div class="main-dashboard">
              <div class="row">
                <div class="col-lg-3 col-6">
                  <!-- small box -->
                  <div class="small-box bg-white d-flex align-items-center">
                    <div class="icon">
                      <i class="las la-user-plus"></i>
                    </div>
                    <div class="inner">
                      <p>Total Sale</p>
                      @if (auth()->user()->role == 'admin')
                      <h3>{{$registration_count}}</h3>
                      @else
                      <h3>-</h3>
                      @endif
                    </div>
                  </div>
                </div>
                <!-- ./col -->
                <div class="col-lg-3 col-6">
                  <!-- small box -->
                  <div class="small-box bg-white d-flex align-items-center">
                    <div class="icon">
                      <i class="las la-users"></i>
                    </div>
                    <div class="inner">
                      <p>Total Clients</p>
                      @if (auth()->user()->role == 'admin')
                      <h3>{{$client_count}}</h3>
                      @else
                      <h3>-</h3>
                      @endif
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div><!-- /.container-fluid -->
     
      </section>
    </div>
      <!-- /.content -->
@endsection
