@extends('layouts.layout')

@section('content')


<div class="form-group row add">
  <div class="container">
     
      <div class="form-group">
        <h2 style="color: black">Laporan Masalah</h2>
        
      </div>
    </div>



    <br><br><br>
     
    <table class="table" style="color: black">
    <tr class="success">
    <th>No.</th>
    <th>Original FileName</th>
    <th>Actions</th>
    </tr>

    

    <?php $no=1; ?>

    @foreach($uploads as $upload)

    <tr style="background-color: #E1E1E1">
    <td>{{$no++}}</td>
    <td>{{$upload->original_filename}}</td>
   

    <td>
    
  

  
  
     
          
            
             <a href="uploads/{{$upload->original_filename}}" download="{{$upload->original_filename}}">
              <button type="button" class="btn btn-primary"><i class="fa fa-cloud-download" style="width:80px">
                Download
              </i></button> 
            </a>
            
          
          
    
    

   
    </form>
    </td>

    </tr>

    @endforeach

    </table>
   {!! $uploads->links() !!}
    </div>



  @endsection