@extends('admin.layout')
@section('title','Login activity')
@section('content')
<h3 align="center"> Historiques</h3>

<section class="content">
    <div class="container-fluid">
      <div class="row">
        <div class="col-12">
          <div class="card">
            <div class="card-header">
              <h3 class="card-title">Login activity</h3>
            </div>
            <div class="card-body">
                <table id="example1" class="table table-bordered table-striped">
                    <thead>
                    <tr>
                      <th>#</th>
                      <th>ID</th>
                      <th>IP</th>
                      <th>USER ID</th>
                      <th>UTILISATEUR</th>
                      <th>CODE AGENCE</th>
                      <th>ACTION</th>
                      <th>DATE</th>
                    </tr>
                    </thead>
                    <tbody>

                      @forelse ($traces as $u)
                      <tr>
                        <td><input type="checkbox"></td>
                        <td>{{$u->id}}</td>
                        <td>{{$u->ip}}</td>
                        <td>{{$u->user_id}}</td>
                        <td>{{$u->name}}</td>
                        <td>{{$u->code_agence}}</td>
                        <td>{{$u->action}}</td>
                        <td>{{$u->created_at}}</td>
                      </tr>
                      @empty

                      @endforelse


                    </tbody>
                    <tfoot>
                    <tr>
                        <th>#</th>
                        <th>ID</th>
                        <th>IP</th>
                        <th>USER ID</th>
                        <th>UTILISATEUR</th>
                        <th>CODE AGENCE</th>
                        <th>ACTION</th>
                        <th>DATE</th>
                    </tr>
                    </tfoot>
                  </table>
    </div>
</div>
        </div>
      </div>
    </div>
</section>

@stop
