<div class="row" style=" padding: 10px 0;margin: 10px;font-size: 16px">
    <div class="col-md-3 col-sm-6 pull-left">
        共找到<span style="color: red">{{ $list->total() }}</span>个结果
    </div>


    <div class="col-md-7 col-sm-10 pull-right">
        @if(role('Company/Info/import'))
            <form class="form-horizontal" role="form" method="post"
                  enctype="multipart/form-data"
                  action="{{ U('Company/Info/import')}}">
                {{csrf_field()}}
                <button class="btn btn-sm btn-primary pull-right company-import"
                        style="margin-right: 5px;display: none" type="submit">
                    Excel导入
                </button>
                <input id="company-import" name="company_info" type="file" class="pull-right"
                       data-show-preview="false" data-language="zh">
            </form>
        @endif

    </div>

    <div class="col-md-2 col-sm-2 pull-right">
        @if(role('Company/Collection/create'))
            <span class="btn btn-sm btn-warning pull-right" onclick="save_collection()">保存为我的公海</span>
        @endif
    </div>

</div>

@if(isset($list))
    @foreach($list as $key => $item)
            <div class="row  company-info">
                <div class="col-lg-2 col-md-3 col-sm-4">
                    <img src="/base/img/companyAvatar.82b6c75.png" alt="">
                </div>
                <div class="col-lg-10 col-md-9 col-sm-8">
                    <a href="{{ U('Company/Info/view',['id'=>$item->id])}}">
                        <h3>{{ $item->company_name }}</h3>
                    </a>

                    <p>
                        <label for="">公司类型：</label>
                        <span>{{ $item->ent_type }}</span>

                        <label for="">成立日期：</label>
                        <span>{{ $item->start_date }}</span>

                        <label for="">注册资本:</label>
                        <span>{{ $item->reg_capital }}</span>
                    </p>

                    <p>
                        <label for="">所属行业：</label>
                        <span>{{ $item->industry }}</span>

                        <label for="">官网：</label>
                        <span>{{ $item->website }}</span>
                    </p>
                    <p>
                        <label for="">注册地址：</label>
                        <span>{{ $item->reg_addr }}</span>
                    </p>
                </div>
        </div>


    @endforeach
@endif

<div class="row">
    <div class="col-sm-6">
        <div class="dataTables_info" id="DataTables_Table_0_info"
             role="alert" aria-live="polite" aria-relevant="all">每页{{ $list->count() }}
            条，共{{ $list->lastPage() }}页，总{{ $list->total() }}条。
        </div>
    </div>
    <div class="col-sm-6">
        <div class="dataTables_paginate paging_simple_numbers" id="DataTables_Table_0_paginate">
            {!! $list->setPath('')->appends(Request::all())->render() !!}
        </div>
    </div>
</div>