@extends('template.vendorapp')

@section('meta')
@endsection

@section('title')
Dashboard
@endsection

@section('styles')
@endsection

@section('content')

<div class="container-fluid">
    <div class="d-sm-flex align-items-center justify-content-between mb-4">
        <h1 class="h3 mb-0 text-gray-800">Dashboard</h1>
    </div>


  <!--   <div class="row">
        <div class="col-xl-3 col-md-6 mb-4">
            <div class="card border-left-primary shadow h-100 py-2">
                <div class="card-body">
                    <div class="row no-gutters align-items-center">
                        <div class="col mr-2">
                            <div class="text-xs font-weight-bold text-primary text-uppercase mb-1">
                            EARNINGS (MONTHLY)</div>
                            <div class="h5 mb-0 font-weight-bold text-gray-800">Rs.40,000</div>
                        </div>
                        <div class="col-auto">
                            <i class="fas fa-calendar fa-2x text-gray-300"></i>
                        </div>
                    </div>
                </div>
            </div> 
        </div>
        <div class="col-xl-3 col-md-6 mb-4">
            <div class="card border-left-success shadow h-100 py-2">
                <div class="card-body">
                    <div class="row no-gutters align-items-center">
                        <div class="col mr-2">
                            <div class="text-xs font-weight-bold text-success text-uppercase mb-1">
                            EARNINGS (ANNUAL)</div>
                            <div class="h5 mb-0 font-weight-bold text-gray-800">Rs.215,000</div>
                        </div>
                        <div class="col-auto">
                            <i class="fas fa-dollar-sign fa-2x text-gray-300"></i>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-xl-3 col-md-6 mb-4">
            <div class="card border-left-info shadow h-100 py-2"> 
                 <div class="card-body"> 
                    <div class="row no-gutters align-items-center">
                        <div class="col mr-2">
                            <div class="text-xs font-weight-bold text-info text-uppercase mb-1">TASKS
                            </div>
                            <div class="row no-gutters align-items-center">
                                <div class="col-auto">
                                    <div class="h5 mb-0 mr-3 font-weight-bold text-gray-800">50%</div>
                                </div>
                                <div class="col">
                                    <div class="progress progress-sm mr-2">
                                        <div class="progress-bar bg-info" role="progressbar"
                                            style="width: 50%" aria-valuenow="50" aria-valuemin="0"
                                            aria-valuemax="100"></div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-auto">
                            <i class="fas fa-clipboard-list fa-2x text-gray-300"></i>
                        </div>
                    </div> 
                 </div>
            </div> 
        </div>
        <div class="col-xl-3 col-md-6 mb-4">
            <div class="card border-left-warning shadow h-100 py-2">
                <div class="card-body">
                    <div class="row no-gutters align-items-center">
                        <div class="col mr-2">
                            <div class="text-xs font-weight-bold text-warning text-uppercase mb-1">
                            PENDING REQUESTS</div>
                            <div class="h5 mb-0 font-weight-bold text-gray-800">1</div>
                        </div>
                        <div class="col-auto">
                            <i class="fas fa-comments fa-2x text-gray-300"></i>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div> -->
    <div class="row">
        <div class="col-xl-7 col-lg-6">
            <div class="card shadow mb-4">
                <div
                    class="card-header py-3 d-flex flex-row align-items-center justify-content-between">
                    <h6 class="m-0 font-weight-bold text-primary"> Monthly OBF Overall Overview</h6>
                    <div class="dropdown no-arrow">
                        <a class="dropdown-toggle" href="#" role="button" id="dropdownMenuLink"
                            data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                            <i class="fas fa-ellipsis-v fa-sm fa-fw text-gray-400"></i>
                        </a>
                        <div class="dropdown-menu dropdown-menu-right shadow animated--fade-in"
                            aria-labelledby="dropdownMenuLink">
                            <div class="dropdown-header">Dropdown Header:</div>
                            <a class="dropdown-item" href="#">Action</a>
                            <a class="dropdown-item" href="#">Another action</a>
                            <div class="dropdown-divider"></div>
                            <a class="dropdown-item" href="#">Something else here</a>
                        </div>
                    </div>
                </div>
                <div class="card-body">
                    <div class="chart-area">
                        <canvas id="myAreaChart"></canvas>
                    </div>
                </div>
            </div><br>
             <div class="card shadow mb-4">
                <div
                    class="card-header py-3 d-flex flex-row align-items-center justify-content-between">
                    <h6 class="m-0 font-weight-bold text-primary"> Monthly OBF Overall Overview</h6>
                    <div class="dropdown no-arrow">
                        <a class="dropdown-toggle" href="#" role="button" id="dropdownMenuLink"
                            data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                            <i class="fas fa-ellipsis-v fa-sm fa-fw text-gray-400"></i>
                        </a>
                        <div class="dropdown-menu dropdown-menu-right shadow animated--fade-in"
                            aria-labelledby="dropdownMenuLink">
                            <div class="dropdown-header">Dropdown Header:</div>
                            <a class="dropdown-item" href="#">Action</a>
                            <a class="dropdown-item" href="#">Another action</a>
                            <div class="dropdown-divider"></div>
                            <a class="dropdown-item" href="#">Something else here</a>
                        </div>
                    </div>
                </div>
                <div class="card-body">
                    <div class="chart-area">
                        <canvas id="myAreaChart1"></canvas>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-xl-5 col-lg-6">
            <div class="card shadow mb-4">
                <div              class="card-header py-3 d-flex flex-row align-items-center justify-content-between">
                    <div class="dropdown no-arrow">
                        <a class="dropdown-toggle" href="#" role="button" id="dropdownMenuLink"
                            data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                            <i class="fas fa-ellipsis-v fa-sm fa-fw text-gray-400"></i>
                        </a>
                        <div class="dropdown-menu dropdown-menu-right shadow animated--fade-in"
                            aria-labelledby="dropdownMenuLink">
                            <div class="dropdown-header">Dropdown Header:</div>
                            <a class="dropdown-item" href="#">Action</a>
                            <a class="dropdown-item" href="#">Another action</a>
                            <div class="dropdown-divider"></div>
                            <a class="dropdown-item" href="#">Something else here</a>
                        </div>
                    </div>
                </div>
                
                <!-- Card Body -->
              
                <div class="card-body">
                    <div class="chart-pie pt-6 pb-3">
                        <canvas id="myPieChart"></canvas>
                    </div>
                    <div class="mt-4 text-center small">
                        <span class="mr-2">
                            <i class="fas fa-circle text-primary"></i> Pending
                        </span>
                        <span class="mr-2">
                            <i class="fas fa-circle" style="color:#69de57;"></i> Accepted
                        </span>
                        <span class="mr-2">
                            <i class="fas fa-circle text-danger"></i> Rejected
                        </span>
                        
                    </div>

                    <div class="mt-4 text-center small">
                    <span class="mr-2">
                            <i class="fas fa-circle text-info"></i> Account Accepted
                        </span>
                       
                        <span class="mr-2">
                            <i class="fas fa-circle text-warning"></i> Account Rejected
                        </span>
                        <span class="mr-2">
                            <i class="fas fa-circle" style="color:#e19ae3;"></i> Pending For Collection
                        </span>
                        
                    </div>


                    <div class="mt-4 text-center small">
                        <span class="mr-2">
                            <i class="fas fa-circle text-dark"></i> Allocated
                        </span>
                        <span class="mr-2">
                            <i class="fas fa-circle" style="color:#6d67db;"></i> Finance Approve
                        </span>
                        <span class="mr-2">
                            <i class="fas fa-circle" style="color:#f8d77f;"></i> Finance Rejected
                        </span>
                        
                    </div>
                    <div class="mt-4 text-center small">
                        <span class="mr-2">
                        <i class="fas fa-circle" style="color:##aef8b4;"></i> Exchange Approved
                        </span>
                        <span class="mr-2">
                            <i class="fas fa-circle" style="color:#e1792c;"></i> Exchange Rejected
                        </span>
                        <span class="mr-2">
                            <i class="fas fa-circle" style="color:#c2793e;"></i> Accessories Done
                        </span>
                        
                    </div>
                
                    <div class="mt-4 text-center small">
                        <span class="mr-2">
                        <i class="fas fa-circle" style="color:#bcddb3;"></i> Payment Pending 
                        </span>
                        <span class="mr-2">
                            <i class="fas fa-circle" style="color:#ffc7b0;"></i> Payment Done
                        </span>
                        <span class="mr-2">
                            <i class="fas fa-circle" style="color:#0afa1e;"></i> Invoice Pending
                        </span>
                        
                    </div>
                    <div class="mt-4 text-center small">
                        <span class="mr-2">
                        <i class="fas fa-circle" style="color:#d2e8e0;"></i> Invoice Completed
                        </span>
                        <span class="mr-2">
                            <i class="fas fa-circle" style="color:#879c67;"></i> Gate-Pass Generated
                        </span>
                        <span class="mr-2">
                            <i class="fas fa-circle" style="color:#29675c;"></i> Gate-Pass Pending
                        </span>
                        
                    </div>
                    <div class="mt-4 text-center small">
                        <span class="mr-2">
                        <i class="fas fa-circle" style="color:#87413f;"></i> Delivery Completed
                        </span>
                        <span class="mr-2">
                            <i class="fas fa-circle" style="color:#dd9944;"></i> Delivery Pending
                        </span>                       
                        
                    </div>

                </div>
            </div>

            
        </div>
    </div>
    <div class="row">
        <div class="col-lg-6 mb-4">
            <div class="card shadow mb-4">
                <div class="card-header py-3">
                    <h6 class="m-0 font-weight-bold text-primary">Department Wise Obf Details</h6>
                </div>
                <div class="card-body">
                    <h4 class="small font-weight-bold"> With KEC  <span
                            class="float-right">20%</span></h4>
                    <div class="progress mb-4">
                        <div class="progress-bar bg-danger" role="progressbar" style="width: 20%"
                            aria-valuenow="20" aria-valuemin="0" aria-valuemax="100"></div>
                    </div>
                    <h4 class="small font-weight-bold"> With GM (General Manager)  <span
                            class="float-right">40%</span></h4>
                    <div class="progress mb-4">
                        <div class="progress-bar bg-warning" role="progressbar" style="width: 40%"
                            aria-valuenow="40" aria-valuemin="0" aria-valuemax="100"></div>
                    </div>
                    <h4 class="small font-weight-bold"> With T.L.(Team Leader) <span
                            class="float-right">60%</span></h4>
                    <div class="progress mb-4">
                        <div class="progress-bar" role="progressbar" style="width: 60%"
                            aria-valuenow="60" aria-valuemin="0" aria-valuemax="100"></div>
                    </div>
                    <h4 class="small font-weight-bold"> With Finance Department <span
                            class="float-right">80%</span></h4>
                    <div class="progress mb-4">
                        <div class="progress-bar bg-info" role="progressbar" style="width: 80%"
                            aria-valuenow="80" aria-valuemin="0" aria-valuemax="100"></div>
                    </div>
                    <h4 class="small font-weight-bold"> With RTO <span
                            class="float-right">60%</span></h4>
                    <div class="progress mb-4">
                        <div class="progress-bar" role="progressbar" style="width: 60%"
                            aria-valuenow="60" aria-valuemin="0" aria-valuemax="100"></div>
                    </div>
                    <h4 class="small font-weight-bold"> With Insurance <span
                            class="float-right">50%</span></h4>
                    <div class="progress mb-4">
                        <div class="progress-bar" role="progressbar" style="width: 60%"
                            aria-valuenow="50" aria-valuemin="0" aria-valuemax="100"></div>
                    </div>
                    </div>
                </div>
            </div>
<div class="col-lg-6 mb-4">
            <canvas id="myChart" style="width:100%;max-width:600px"></canvas>

</div>
            <!-- <div class="row">
                <div class="col-lg-6 mb-4">
                    <div class="card bg-primary text-white shadow">
                        <div class="card-body">
                            Primary
                            <div class="text-white-50 small">#4e73df</div>
                        </div>
                    </div>
                </div>
                <div class="col-lg-6 mb-4">
                    <div class="card bg-success text-white shadow">
                        <div class="card-body">
                            Success
                            <div class="text-white-50 small">#1cc88a</div>
                        </div>
                    </div>
                </div>
                <div class="col-lg-6 mb-4">
                    <div class="card bg-info text-white shadow">
                        <div class="card-body">
                            Info
                            <div class="text-white-50 small">#36b9cc</div>
                        </div>
                    </div>
                </div>
                <div class="col-lg-6 mb-4">
                    <div class="card bg-warning text-white shadow">
                        <div class="card-body">
                            Warning
                            <div class="text-white-50 small">#f6c23e</div>
                        </div>
                    </div>
                </div>
                <div class="col-lg-6 mb-4">
                    <div class="card bg-danger text-white shadow">
                        <div class="card-body">
                            Danger
                            <div class="text-white-50 small">#e74a3b</div>
                        </div>
                    </div>
                </div>
                <div class="col-lg-6 mb-4">
                    <div class="card bg-secondary text-white shadow">
                        <div class="card-body">
                            Secondary
                            <div class="text-white-50 small">#858796</div>
                        </div>
                    </div>
                </div>
                <div class="col-lg-6 mb-4">
                    <div class="card bg-light text-black shadow">
                        <div class="card-body">
                            Light
                            <div class="text-black-50 small">#f8f9fc</div>
                        </div>
                    </div>
                </div>
                <div class="col-lg-6 mb-4">
                    <div class="card bg-dark text-white shadow">
                        <div class="card-body">
                            Dark
                            <div class="text-white-50 small">#5a5c69</div>
                        </div>
                    </div>
                </div>
            </div> -->
        </div>
         <div class="row">
        <div class="col-lg-6 mb-4">
            <div class="card shadow mb-4">
                <div class="card-header py-3">
                    <h6 class="m-0 font-weight-bold text-primary">Car Wise</h6>
                </div>
                <div class="card-body">
                    <h4 class="small font-weight-bold"> Sonet <span
                            class="float-right">20%</span></h4>
                    <div class="progress mb-4">
                        <div class="progress-bar bg-danger" role="progressbar" style="width: 20%"
                            aria-valuenow="20" aria-valuemin="0" aria-valuemax="100"></div>
                    </div>
                    <h4 class="small font-weight-bold">Seltos <span
                            class="float-right">40%</span></h4>
                    <div class="progress mb-4">
                        <div class="progress-bar bg-warning" role="progressbar" style="width: 40%"
                            aria-valuenow="40" aria-valuemin="0" aria-valuemax="100"></div>
                    </div>
                    <!--<h4 class="small font-weight-bold">With T.L.(Team Leader) <span-->
                    <!--        class="float-right">60%</span></h4>-->
                    <!--<div class="progress mb-4">-->
                    <!--    <div class="progress-bar" role="progressbar" style="width: 60%"-->
                    <!--        aria-valuenow="60" aria-valuemin="0" aria-valuemax="100"></div>-->
                    <!--</div>-->
                    <!--<h4 class="small font-weight-bold">With Finance Department <span-->
                    <!--        class="float-right">80%</span></h4>-->
                    <!--<div class="progress mb-4">-->
                    <!--    <div class="progress-bar bg-info" role="progressbar" style="width: 80%"-->
                    <!--        aria-valuenow="80" aria-valuemin="0" aria-valuemax="100"></div>-->
                    <!--</div>-->
                    <!--<h4 class="small font-weight-bold">With RTO <span-->
                    <!--        class="float-right">60%</span></h4>-->
                    <!--<div class="progress mb-4">-->
                    <!--    <div class="progress-bar" role="progressbar" style="width: 60%"-->
                    <!--        aria-valuenow="60" aria-valuemin="0" aria-valuemax="100"></div>-->
                    <!--</div>-->
                    <!--<h4 class="small font-weight-bold">With Insurance <span-->
                    <!--        class="float-right">50%</span></h4>-->
                    <!--<div class="progress mb-4">-->
                    <!--    <div class="progress-bar" role="progressbar" style="width: 60%"-->
                    <!--        aria-valuenow="50" aria-valuemin="0" aria-valuemax="100"></div>-->
                    <!--</div>-->
                    </div>
                </div>
            </div>
    <!-- bar chart -->
   
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.5.0/Chart.min.js"></script>
  


<script>

var xValues = ["Rajkot", "Junagadh", "jamnagar", "Morbi"];
var yValues = [5, 4, 3, 2, 1];
var barColors = ["red", "green","blue","orange","brown"];

new Chart("myChart", {
  type: "bar",
  data: {
    labels: xValues,
    datasets: [{
      backgroundColor: barColors,
      data: yValues
    }]
  },
  options: {
    legend: {display: false},
    title: {
      display: true,
      text: "Bar chart"
    }
  }
});
</script>


         <!-- Bar Chart -->
          <!-- <div class="card shadow mb-4">
                                <div class="card-header py-3"> -->
                                     <!-- </div> -->
                                 <div class="card-body"> 
                                    <div class="chart-bar">
 <canvas id="myChart" style="width:100%;max-width:600px"></canvas>

                                    </div>
                                    <hr>
                                    <!-- Styling for the bar chart can be found in the
                                    <code>/js/demo/chart-bar-demo.js</code> file. -->
                                </div>
                            </div>  

        <!-- <div class="col-lg-6 mb-4">
            <div class="card shadow mb-4">
                <div class="card-header py-3">
                    <h6 class="m-0 font-weight-bold text-primary">Illustrations</h6>
                </div>
                <div class="card-body">
                    <div class="text-center">
                        <img class="img-fluid px-3 px-sm-4 mt-3 mb-4" style="width: 25rem;"
                            src="{{ asset('assets/img/undraw_posting_photo.svg') }}" alt="...">
                    </div>
                    <p>Add some quality, svg illustrations to your project courtesy of <a
                            target="_blank" rel="nofollow" href="https://undraw.co/">unDraw</a>, a
                        constantly updated collection of beautiful svg images that you can use
                        completely free and without attribution!</p>
                    <a target="_blank" rel="nofollow" href="https://undraw.co/">Browse Illustrations on
                        unDraw &rarr;</a>
                </div>
            </div>
            <div class="card shadow mb-4">
                <div class="card-header py-3">
                    <h6 class="m-0 font-weight-bold text-primary">Development Approach</h6>
                </div>
                <div class="card-body">
                    <p>SB Admin 2 makes extensive use of Bootstrap 4 utility classes in order to reduce
                        CSS bloat and poor page performance. Custom CSS classes are used to create
                        custom components and custom utility classes.</p>
                    <p class="mb-0">Before working with this theme, you should become familiar with the
                        Bootstrap framework, especially the utility classes.</p>
                </div>
            </div>
        </div> -->
    </div> 
</div>
@endsection

@section('scripts')

<script src="{{ asset('assets/vendor/chart.js/Chart.min.js') }}"></script>
<script src="{{ asset('assets/js/demo/chart-area-demo.js') }}"></script>
<script src="{{ asset('assets/js/demo/chart-pie-demo.js') }}"></script>
@endsection



