@extends('layouts.admin')    
@section('content')

            <div class="card-header">
                    <h4>List Login Students </h4> 
                  </div>
                  <div class="card-body"> 
                    <div class="table-responsive"> 
                     <div class="table-responsive">
                      <table class="table table-striped table-hover" id="tableExport" style="width:100%;">
                        <thead>
                          <tr>
                            <th>Student Name</th>
                            <th>Mobile Number</th>
                            <th>Address </th> 
                            <th> Date/Time </th>
                            
                          </tr>
                        </thead>
                        <tbody>
                            <?php  foreach($studentloginstatus as $usersdatasection) { 
                               $instituteotherdetails = DB::table('users')->where('id', $usersdatasection->studentid )->first();
                              //  print_r($instituteotherdetails);
                              ?>
                          <tr>
                            <td> {{  $instituteotherdetails->name }} {{  $instituteotherdetails->lastname }} </td>
                            <td><a href="tel:{{  $instituteotherdetails->mobileno }}">{{  $instituteotherdetails->mobileno }}</a></td>
                            <td>{{  $instituteotherdetails->address }}</td>  
                            <td>{{  $usersdatasection->loginedindate }}</td> 
                         
                          </tr>
                          <?php } ?>
                          
                        </tbody>
                      </table>
                    </div>
            </div>

@endsection