@extends('layouts.app')

@section('title', '首页')

@section('content')
    <!-- 科学研究 -->
    <div class="survey" style="background-image: url(/assets/index/images/studyBack.png);">
        <div class="container">
            <div class="row">
                @include('category.left')
                <div class="col-xs-12 col-md-9 secondRight">
                    <!-- 科研动态 -->
                    <div class="surveyCont">
                        <div class="secondTop">
                            <div class="secondTop-name">
                                <img src="/assets/index/images/studyIcon_00.png"/>
                                {{ $category->title }}
                            </div>
                        </div>
                        @if ($articles->isNotEmpty())
                            @foreach($articles->sortBy('group_id')->groupBy('group_id') as $resumes)
                                <div class="tdrcList">
                                    <div class="tdrcList-title">
                                        {{ $resumes->first()->group->name }}
                                    </div>
                                    <ul class="row tdrcList-label">
                                        @foreach($resumes->sortBy('sort') as $resume)
                                            <li class="col-xs-6 col-md-3">
                                                <a target="_blank" href="{{ $resume->link }}">{{ $resume->name }}</a>
                                            </li>
                                        @endforeach
                                    </ul>
                                </div>
                            @endforeach
                        @else
                            <div class="no-searchCont">
                                <img src="/assets/index/images/org55.png"/>
                                <span>抱歉，暂无数据</span>
                            </div>
                        @endif
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection
