@extends('crudbooster::admin_template')
@section('content')
<?php
    //var_dump($uploaded);
?>
<div class="box">
    <div class="box-header">
        Pilih file
    </div>
        <table class="table table-striped">
          <thead>
            <tr>
              <th scope="col">File</th>
              <th scope="col">Keterangan</th>
              <th scope="col">Tanggal Upload</th>
              <th scope="col">Oleh</th>
              <th scope="col">Role</th>
            </tr>
          </thead>
          <tbody>
            @foreach($uploaded as $upd)
            <tr>
              <td>{{ $upd->file }}</td>
              <td>{{ $upd->keterangan }}</td>
              <td>{{ $upd->updated_at }}</td>
              <td>{{ $upd->nama_user }}</td>
              <td>{{ $upd->role }}</td>
              <td>
                  <a href="{{ CRUDBooster::mainpath('import-file/'.$upd->id) }}" class="btn btn-primary">IMPORT</a>
              </td>
            </tr>
            @endforeach
          </tbody>
        </table>
</div>

@endsection