<!doctype html>
<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang=""> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8" lang=""> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie9" lang=""> <![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js" lang="en">
<!--<![endif]-->

<head>
    
    <?php echo $__env->make('admin.stylesheet', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
</head>

<body>


   <?php echo $__env->make('admin.navigation', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>

    <!-- Right Panel -->
    <?php if(in_array('reports',$avilable)): ?>
    <div id="right-panel" class="right-panel">

       
                       <?php echo $__env->make('admin.header', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                       

        <div class="breadcrumbs">
            <div class="col-sm-4">
                <div class="page-header float-left">
                    <div class="page-title">
                        <h1><?php echo e(__('Reports')); ?></h1>
                    </div>
                </div>
            </div>
            <div class="col-sm-8">
                <div class="page-header float-right">
                    <div class="page-title">
                        <ol class="breadcrumb text-right">
                            <li class="active"></li>
                        </ol>
                    </div>
                </div>
            </div>
        </div>
        <?php echo $__env->make('admin.warning', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        <div class="content mt-3">

            

        <div class="col-sm-12 mb-4">
        <div class="card-group">
            <div class="card col-md-6 no-padding ">
                <div class="card-body">
                    <div class="h1 text-muted text-right mb-4">
                        <i class="fa fa-user"></i>
                    </div>

                    <div class="h4 mb-0">
                        <span class="count"><?php echo e($visitorcount); ?></span>
                    </div>

                    <small class="text-muted text-uppercase font-weight-bold"><?php echo e(__('Total Visit')); ?></small>
                    <div class="progress progress-xs mt-3 mb-0 bg-flat-color-6" style="width: 40%; height: 5px;"></div>
                </div>
            </div> <?php /*?>fa fa fa-file<?php */?>
            <div class="card col-md-6 no-padding ">
                <div class="card-body">
                    <div class="h1 text-muted text-right mb-4">
                        <i class="fa fa-users"></i>
                    </div>
                    <div class="h4 mb-0">
                        <span class="count"><?php echo e($totalvendor); ?></span>
                    </div>
                    <small class="text-muted text-uppercase font-weight-bold"><?php echo e(__('Total Vendors')); ?></small>
                    <div class="progress progress-xs mt-3 mb-0 bg-flat-color-7" style="width: 40%; height: 5px;"></div>
                </div>
            </div>
            <div class="card col-md-6 no-padding ">
                <div class="card-body">
                    <div class="h1 text-muted text-right mb-4">
                        <i class="fa fa-users"></i>
                    </div>

                    <div class="h4 mb-0">
                        <span class="count"><?php echo e($totalnewvendor); ?></span>
                    </div>

                    <small class="text-muted text-uppercase font-weight-bold"><?php echo e(__('Total New Vendors')); ?></small>
                    <div class="progress progress-xs mt-3 mb-0 bg-flat-color-7" style="width: 40%; height: 5px;"></div>
                </div>
            </div>
            <div class="card col-md-6 no-padding ">
                <div class="card-body">
                    <div class="h1 text-muted text-right mb-4">
                        <i class="fa fa-server"></i>
                    </div>
                    <div class="h4 mb-0">
                        <span class="count"><?php echo e($totalitems); ?></span>
                    </div>
                    <small class="text-muted text-uppercase font-weight-bold"><?php echo e(__('Total Items')); ?></small>
                    <div class="progress progress-xs mt-3 mb-0 bg-flat-color-3" style="width: 40%; height: 5px;"></div>
                </div>
            </div>
            <div class="card col-md-6 no-padding ">
                <div class="card-body">
                    <div class="h1 text-muted text-right mb-4">
                        <i class="fa fa-server"></i>
                    </div>

                    <div class="h4 mb-0">
                        <span class="count"><?php echo e($totalnewitems); ?></span>
                    </div>

                    <small class="text-muted text-uppercase font-weight-bold"><?php echo e(__('Total New Items')); ?></small>
                    <div class="progress progress-xs mt-3 mb-0 bg-flat-color-3" style="width: 40%; height: 5px;"></div>
                </div>
            </div>
            
            
            
            
            
                        
        </div>
        
        
        
        
        
        
    </div>
      <div class="col-sm-12 mb-4">
        <div class="card-group">
             <?php /*?>fa fa fa-file<?php */?>
            <div class="card col-md-6 no-padding ">
                <div class="card-body">
                    <div class="h1 text-muted text-right mb-4">
                        <i class="fa fa-shopping-cart"></i>
                    </div>
                    <div class="h4 mb-0">
                        <span class="count"><?php echo e($totalorder); ?></span>
                    </div>
                    <small class="text-muted text-uppercase font-weight-bold"><?php echo e(__('Total Orders')); ?></small>
                    <div class="progress progress-xs mt-3 mb-0 bg-flat-color-8" style="width: 40%; height: 5px;"></div>
                </div>
            </div>
            <div class="card col-md-6 no-padding ">
                <div class="card-body">
                    <div class="h1 text-muted text-right mb-4">
                        <i class="fa fa-shopping-cart"></i>
                    </div>
                    <div class="h4 mb-0">
                        <span class="count"><?php echo e($totalneworder); ?></span>
                    </div>
                    <small class="text-muted text-uppercase font-weight-bold"><?php echo e(__('Total New Orders')); ?></small>
                    <div class="progress progress-xs mt-3 mb-0 bg-flat-color-8" style="width: 40%; height: 5px;"></div>
                </div>
            </div>
            <div class="card col-md-6 no-padding ">
                <div class="card-body">
                    <div class="h1 text-muted text-right mb-4">
                        <i class="fa fa fa-check"></i>
                    </div>
                    <div class="h4 mb-0">
                        <span class="count"><?php echo e($successorder); ?></span>
                    </div>
                    <small class="text-muted text-uppercase font-weight-bold"><?php echo e(__('Total Successful Order')); ?></small>
                    <div class="progress progress-xs mt-3 mb-0 bg-flat-color-5" style="width: 40%; height: 5px;"></div>
                </div>
            </div>
            
            <div class="card col-md-6 no-padding ">
                <div class="card-body">
                    <div class="h1 text-muted text-right mb-4">
                        <i class="fa fa-close"></i>
                    </div>
                    <div class="h4 mb-0">
                        <span class="count"><?php echo e($failedorder); ?></span>
                    </div>
                    <small class="text-muted text-uppercase font-weight-bold"><?php echo e(__('Total Not Successful Order')); ?></small>
                    <div class="progress progress-xs mt-3 mb-0 bg-flat-color-4" style="width: 40%; height: 5px;"></div>
                </div>
            </div>
            
            <div class="card col-md-6 no-padding ">
                <div class="card-body">
                    <div class="h1 text-muted text-right mb-4">
                        <i class="fa fa-money"></i>
                    </div>
                    <div class="h4 mb-0"><span class="count"><?php echo e($totalamount); ?></span></div>
                    <small class="text-muted text-uppercase font-weight-bold"><?php echo e(__('Total Amount')); ?> (<?php echo e($allsettings->site_currency_symbol); ?>)</small>
                    <div class="progress progress-xs mt-3 mb-0 bg-flat-color-1" style="width: 40%; height: 5px;"></div>
                </div>
            </div>
            
            
            
            
                        
        </div>
        
        
        
        
        
        
    </div>
         <div class="col-sm-4 mb-4">
         <div class="card">
                            <div class="card-body">
                                <h4 class="mb-3"><?php echo e(__('Orders')); ?> </h4>
                                <canvas id="pieChart"></canvas>
                            </div>
                        </div>
                        
                    </div>   
          <div class="col-sm-8 mb-4">
                        <div class="row">
                     
                    <div class="col-md-12">
                       <h4 class="mb-3"><?php echo e(__('Search')); ?> </h4>
                        
                        
                      
                        <div class="card">
                           <?php if($demo_mode == 'on'): ?>
                           <?php echo $__env->make('admin.demo-mode', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                           <?php else: ?>
                           <form action="<?php echo e(route('admin.reports')); ?>" method="post" id="setting_form" enctype="multipart/form-data">
                           <?php echo e(csrf_field()); ?>

                           <?php endif; ?>
                           <?php /*?><div class="col-md-4">
                            
                            <div class="card-body">
                                
                                <div id="pay-invoice">
                                    <div class="card-body">
                                           
                                          <div class="form-group">
                                                <label for="site_title" class="control-label mb-1">{{ __('Choose') }}</label>
                                                <select name="types" class="form-control">
                                                <option value="0" >{{ __('All') }}</option>
                                                <option value="1">{{ __('Total Visit') }}</option>
                                                <option value="2">{{ __('Total New Vendor') }}</option>
                                                <option value="3">{{ __('Total New Items') }}</option>
                                                <option value="4">{{ __('Total Successful Order') }}</option>
                                                <option value="5">{{ __('Total Not Successful Order') }}</option>
                                                <option value="6">{{ __('Total Amount') }}</option>
                                                </select>
                                            </div>    
                                        
                                    </div>
                                </div>

                            </div>
                            </div><?php */?>
                            
                            
                            
                             <div class="col-md-6">
                             
                             
                             <div class="card-body">
                                <!-- Credit Card -->
                                <div id="pay-invoice">
                                    <div class="card-body">
                             
                             
                                                
                                            <div class="form-group">
                                                <label for="site_title" class="control-label mb-1"><?php echo e(__('From Date')); ?></label>
                                                <input id="from_date" name="from_date" type="text" value="<?php echo e($from_date); ?>" class="form-control noscroll_textarea">
                                            </div> 
                                            
                                           
                             
                             
                             </div>
                                </div>

                            </div>
                             
                             
                             
                             </div>
                             <div class="col-md-6">
                             
                             
                             <div class="card-body">
                                <!-- Credit Card -->
                                <div id="pay-invoice">
                                    <div class="card-body">
                             
                             
                                                
                                            <div class="form-group">
                                                <label for="site_title" class="control-label mb-1"><?php echo e(__('To Date')); ?></label>
                                                <input id="to_date" name="to_date" type="text" value="<?php echo e($to_date); ?>" class="form-control noscroll_textarea">
                                            </div> 
                                            
                                          
                             
                             
                             </div>
                                </div>

                            </div>
                             
                             
                             
                             </div>
                             <div class="col-md-12 no-padding">
                             <div class="card-footer">
                                 <button type="submit" name="submit" class="btn btn-primary btn-sm"><i class="fa fa-dot-circle-o"></i> <?php echo e(__('Search')); ?></button>
                                 <button type="reset" class="btn btn-danger btn-sm"><i class="fa fa-ban"></i> <?php echo e(__('Reset')); ?> </button>
                             </div>
                             
                             </div>
                             
                            
                            </form>
                            
                                                    
                                                    
                                                 
                            
                        </div> 

                     
                    
                    
                    </div>
                    

                </div><!-- /# card -->
                    </div>

        </div> <!-- .content -->
    </div><!-- /#right-panel -->
    <?php else: ?>
    <?php echo $__env->make('admin.denied', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <?php endif; ?>
    <!-- Right Panel -->

    <?php echo $__env->make('admin.javascript', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    
    <script type="text/javascript">
	( function ( $ ) {
    'use strict';

   
    

    var ctx = document.getElementById( "pieChart" );
    ctx.height = 330;
    var myChart = new Chart( ctx, {
        type: 'pie',
        data: {
            datasets: [ {
                data: [ <?php echo e($successorder); ?>, <?php echo e($failedorder); ?> ],
                backgroundColor: [
                                    "rgba(6, 163, 61, 1)",
                                    "rgba(226, 27, 26, 1)"
                                    
                                ],
                hoverBackgroundColor: [
                                    "rgba(6, 163, 61, 0.7)",
                                    "rgba(226, 27, 26, 0.7)"
                                    
                                ]

                            } ],
            labels: [
                            "<?php echo e(__('Successful')); ?>",
                            "<?php echo e(__('Not Successful')); ?>"
                        ]
        },
        options: {
            responsive: true
        }
    } );

    

} )( jQuery );

</script>
</body>
</html><?php /**PATH /home1/techtren/bi8t.link/resources/views/admin/reports.blade.php ENDPATH**/ ?>