@extends('Layout.base', ['title'=>'AFRICA | List Products'])
@section('content')

          <div class="col-12">
              <div class="card-body">
            <div class="card">

              <div class="card-header" style="text-align: right;">
      <a href="{{route('Users.create')}}"><button type="button" class="btn btn-primary">Add new user</button></a>
              </div>
              <!-- /.card-header -->
              <div class="card-body">
                <table id="example1" class="table table-bordered table-striped">
                  <thead>
                  <tr>
                    <th>Name</th>
                    <th>Email</th>
                    <th>Created at</th>
                    <th>Action</th>
                  </tr>
                  </thead>
                  <tbody>
                    @foreach($users as $user)
                  <tr>
                    <td>{{$user->name}}</td>
                    <td>{{$user->mail}}</td>
                    <td>{{$user->created_at}}</td>
                    <td>
                      <a href=""><img src="{{url('icons/png/eye-2x.png')}}"></a>
                      <a href=""><img src="{{url('icons/png/pencil-2x.png')}}"></a>
                      <a href=""><img src="{{url('icons/png/trash-2x.png')}}"></a>
                    </td>
                  </tr>
                  @endforeach
                  </tbody>
                </table>
              </div>
              <!-- /.card-body -->
            </div>
            <!-- /.card -->
          </div>
          <!-- /.col -->

          @stop