@extends('layouts.layout')

@section('content')


<div class="form-group row add">
 
  <div class="container">
      @if(Session::has('success'))
        <div class="alert-box success">
          <h2>{!! Session::get('success') !!}</h2>
        </div>
      @endif
      <div class="form-group">
        
        {!! Form::open(array('url'=>'verifikasiKeuanganManager/uploadFiles','method'=>'POST', 'files'=>true)) !!}
        {!! Form::file('images[]', array('multiple'=>true)) !!}
          <p>{!!$errors->first('images')!!}</p>
          @if(Session::has('error'))
            <p>{!! Session::get('error') !!}</p>
          @endif
        {!! Form::submit('Submit', array('class'=>'btn btn-lg btn-primary col-md-4')) !!}
        {!! Form::close() !!}
      </div>
    </div>



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

    

    <?php $no=1; ?>

    @foreach($verifikasis_k_manager as $verifikasiKeuanganManager)

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

    <td>
    <form class="" action="{{route('verifikasiKeuanganManager.destroy', $verifikasiKeuanganManager->id)}}" method="post">
    <input class="w3-btn" type="hidden" name="_method" value="delete">
    <input class="w3-btn" type="hidden" name="_token" value="{{ csrf_token() }}">
    
     
          
            
            <a href="verifikasis_k_manager/{{$verifikasiKeuanganManager->original_filename}}" download="{{$verifikasiKeuanganManager->original_filename}}">
              <button type="button" class="btn btn-primary"><i class="fa fa-cloud-download" style="width:80px">
                Download
              </i></button> 
            </a>
            
          
          
    
    

    <input type="submit" class="btn btn-danger" onclick="return confirm('Are you sure to delete this data');" name="name" value="delete">
    </form>
    </td>

    </tr>

    @endforeach

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



  @endsection