@extends('layouts.app')

@section('content')
    <div id="nav2">
        @component('store.menu')@endcomponent
        @component('store.blindReceive.menu')@endcomponent
    </div>
    <div class="container">
        <div class="row mt-2">
            <div class="col-12">
                <p><span class="h4">Excel文件列表</span><span class="text-muted">（仅保留三个月以内的文件）</span></p>
                <table class="table table-striped" >
                    <tr>
                        <th>序号</th>
                        <th>名称</th>
                        <th>时间</th>
                        <th>条目数</th>
                        <th>文件下载</th>
                    </tr>
                    @foreach($excels as $i=>$excel)
                        <tr>
                            <td>{{$i+1}}</td>
                            <td>{{$excel['name']}}</td>
                            <td>{{$excel['created_at']}}</td>
                            <td>{{$excel['goods_amount']}}</td>
                            <td><a href="{{asset('storage/'.$excel['file'])}}"><span class="fa fa-download"></span><span class="fa fa-download"></span><span class="fa fa-download"></span></a></td>
                        </tr>
                    @endforeach
                </table>
            </div>
        </div>
    </div>
@endsection
