



 <!-- End of Topbar -->

                <!-- Begin Page Content -->
                <div class="container-fluid">

                    <?php if(Session::has('error_message')): ?>
                    <div class="alert alert-danger"><?php echo e(Session::get('error_message')); ?></div>
                     <?php endif; ?>

                      <?php if(Session::has('success_message')): ?>
                    <div class="alert alert-success"><?php echo e(Session::get('success_message')); ?></div>
                     <?php endif; ?>

                    
                    <div class="row"> 

                        <!-- Earnings (Monthly) Card Example -->
                       
                        <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">
                                                Today</div>
                                            <div class="h5 mb-0 font-weight-bold text-gray-800">
                                                <?php echo e($day); ?>

                                            </div>
                                        </div>
                                        <div class="col-auto">
                                            <i class="fas fa-calendar fa-2x text-gray-300"></i>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                      

                        <!-- Earnings (Monthly) Card Example -->
                        
                         <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">
                                                This Week</div>
                                            <div class="h5 mb-0 font-weight-bold text-gray-800">
                                                <?php echo e($week); ?>

                                            </div>
                                        </div>
                                        <div class="col-auto">
                                            <i class="fas fa-calendar fa-2x text-gray-300"></i>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                       

                        <!-- Earnings (Monthly) Card Example -->
                       
                        <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">
                                                This Month</div>
                                            <div class="h5 mb-0 font-weight-bold text-gray-800">
                                                <?php echo e($month); ?>

                                            </div>
                                        </div>
                                        <div class="col-auto">
                                            <i class="fas fa-calendar fa-2x text-gray-300"></i>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                       
                        <!-- Pending Requests Card Example -->
                        
                         <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">
                                                This Year</div>
                                            <div class="h5 mb-0 font-weight-bold text-gray-800">
                                                <?php echo e($year); ?>

                                            </div>
                                        </div>
                                        <div class="col-auto">
                                            <i class="fas fa-calendar fa-2x text-gray-300"></i>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>

                    <br>
                    <br>

                    <div  >
                            
                            <div  style="width: 100%;">
                                <h2 class="text-lg font-medium truncate mr-5">
                                    Account Login History
                                </h2>
                                <div>Listing last 10 login attempts for this account</div>

                                <div class="table-responsive">
                                    <table class="table mt-5" style="background: white;">
                                        <thead>
                                        <tr class="bg-gray-200 text-gray-700">
                                            <th class="whitespace-nowrap">Email</th>
                                            <th class="whitespace-nowrap">Date</th>
                                            <th class="whitespace-nowrap">Ip Address</th>
                                            <th class="whitespace-nowrap">Result</th>
                                        </tr>
                                        </thead>
                                        <tbody>
                                        <?php $__currentLoopData = $histories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $history): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <tr>
                                            <td class="border-b"><?php echo e(optional($history->user)->email); ?></td>
                                            <td class="border-b"><?php echo e(Carbon\Carbon::parse($history->date)->format('Y F d   h:i A')); ?></td>
                                            <td class="border-b"><?php echo e($history->ip_address); ?></td>
                                            <td class="border-b"><?php echo e($history->result); ?></td>
                                        </tr>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                                        </tbody>
                                    </table>
                                    
                                    <br>
		<br>
		<div class="container">
			<div class="row justify-content-center">
			<?php echo e($histories->links()); ?>

		</div>
		</div>

		<br>
		<br>
		<br>
		
                                </div>
                            </div>
                        </div>
                 

                   
                    

                </div><?php /**PATH /home/leaparyanict/aict.leap.aryanict.com/resources/views/Admin/layouts/main_admin.blade.php ENDPATH**/ ?>