@extends('index')

@section('subtitle')
    Kelola Lokasi
@endsection

@section('content')
    <h4> Daftar Lokasi User </h4>
    
    <table class="table">
      <thead class="thead-dark">
        <tr>
            <th scope="col">Nama User</th>
            <th scope="col">Latitude</th>
            <th scope="col">Longitude</th>
        </tr>
      </thead>
      <tbody>
         @foreach($lokasis as $lok=>$lokasi)
            <tr>
                <td>{{$users[$lok]->nama_asli}}</td>
                <td>{{$lokasi->latitude}}</td>
                <td>{{$lokasi->longitude}}</td>
            </tr>
        @endforeach
      </tbody>
    </table>
@endsection