/
home
/
sjslayjy
/
public_html
/
mosaram
/
resources
/
views
/
Upload File
HOME
<?php use App\Http\Controllers\addlocationController; ?> @extends('master') @section('content') </head> <body> <style type="text/css"> .label{ font-size: 10px; } #btn{ font-size:12px; } </style> <div class="container content-box pad25A" style="page-break-after: always;"> <div class="col-lg-12 grid-margin"> <div class="card"> <div class="card-body"> <div class="row"> <div class="col-lg-12"> <form action="{{url('addfilter')}}" method="post"> {{ csrf_field() }} <div class="row "> <div class="col-4"> <label class="lbl" style="font-size:14px; font-weight: 500;">User Name :</label> <select name="sql_query" class="autosubmit mb-3 form-control select2" style="font-size:13px;padding:5px 10px;" id="username"> <option value=''>---Select Users---</option> </select> </div> <div class="col-4"> <label class="lbl" style="font-size:14px;font-weight: 500;">Date :</label> <input class="form-control date-picker fromDates" id="myDate" name="mydate" type="date" value="<?php echo date("Y-m-d")?>"> </div> <!-- <div class="col-3">--> <!-- <label class="lbl" style="font-size:14px;font-weight: 500;">From Date :</label>--> <!--<input class="form-control date-picker fromDates" id="fromDate" name="fromdate" type="date" value="<?php echo date("Y-m-d")?>">--> <!--</div>--> <div class="col-3" style="padding-top:33px;"> <input type="submit" value="Submit" id="btn" style="background: #24c2d2;border:none;color:#fff;"> </div> </div> </form> </div> </div> </div> </div> </div> <!-- start model --> <!-- <div class="row">--> <!-- <div class="col-12">--> <!-- <table class="table table-bordered yajra-datatable" id="dynamic-table">--> <!-- <thead>--> <!-- <th scope="col">S. No.</th>--> <!-- <th>UserId</th>--> <!-- <th scope="col">User Name</th>--> <!-- <th scope="col">Date</th>--> <!-- </tr>--> <!-- </thead>--> <!-- <tbody>--> <!-- </tbody>--> <!-- </table>--> <!-- </div>--> <!--</div>--> <div class="col-lg-12 grid-margin"> <div class="card"> <div class="card-body"> <!--<h3 class="card-title">Gps</h3>--> <div class="table-responsive"> <table id="dynamic-table" class="table table-bordered myTable"> <thead> <tr> <th scope="col">S. No.</th> <th scope="col">User Name</th> <th scope="col">Status</th> <th scope="col">Battery Status</th> <th scope="col">DateTime</th> </tr> </thead> <tbody> <?php $i=1; //print_r($userlocation); foreach ($gpsStatus as $gs){ $date=date('Y-m-d'); ?> <tr> <td><?php echo $i;?></td> <td><p><?php echo $gs->name;?></p></td> <td> @if($gs->status=='On') <p class="" style="color:#fff;background-color:#00c292;padding:3px 10px;border-radius:0.25rem;display:inline-block;">Gps is on </p> @endif @if($gs->status=='Off') <p class="" style="color:#fff;background-color:#e46a76;padding:3px 10px;border-radius:0.25rem;display:inline-block;"> Gps is off </p> @endif </td> <td> {{$gs->batterylevel}} % </td> <td><p><?php echo date('d-M-Y , H:i:s',strtotime($gs->created_at))?></p></td> </tr> <?php $i++;}?> </tbody> </table> </div> </div> </div> </div> </div> @endsection