@extends('layouts.Layout')

@section('content')
  <div class="col-md-12">
            <div class="card">
                <div class="header">
                    <h4 class="title">{{$title}}</h4>
                    <p class="category"></p>
                </div>
                <div class="content table-responsive table-full-width">
                    <table class="table table-borderless">
                        <thead>
                            <th>No </th>
                            <th>File name</th>
                            <th>Keterangan</th>
                            <th></th>
                        </thead>
                  {{csrf_field()}}
                        <tbody>
                            <?php $no=1; ?>

                            @foreach($pengumuman as $upload)
                            <tr>
                              <td>{{$no++}}</td>
                              <td>{{$upload->original_filename}}</td>
                              <td>{{$upload->keterangan}}</td>
                             

                              <td><a href="uploads/{{$upload->original_filename}}" download="{{$upload->filename}}">
                                        <button type="button" class="btn btn-primary"><i class="glyphicon glyphicon-download">
                                          Download
                                        </i></button> 
                                      </a>
                             
                              </td>

                              </tr>
                            @endforeach
                        </tbody>
                    </table>
                </div>
             
            </div>
        </div>
 @endsection
