@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>
                        <div class="tdrcTop">
                            <div class="tdrcBrief">
                                <div class="tdrcBrief-name"><span>{{ $resume->name }}</span></div>
                                <ul class="tdrcBrief-label">
                                    @foreach($resume->information as $key=>$value)
                                        @if($value)
                                            <li>
                                                <span>{{ $resume->getInformationName($key) }}：</span>
                                                <p>{{ $value }}</p>
                                            </li>
                                        @endif
                                    @endforeach
                                </ul>
                            </div>
                            <div class="ce-img tdrcImg">
                                <span style="background-image: url({{ $resume->cover_path }});"></span>
                            </div>
                        </div>
                        <div class="tdrcCont">
                            {{--                            <div class="tdrcCont-label">--}}
                            {{--                                <div class="tdrcCont-title">简历</div>--}}
                            {{--                                <div class="tdrcCont-text">--}}
                            {{--                                    {!! $resume->content !!}--}}
                            {{--                                </div>--}}
                            {{--                            </div>--}}

                            @if($resume->part_job)
                                <div class="tdrcCont-label">
                                    <div class="tdrcCont-title">学术兼职</div>
                                    <div class="tdrcCont-text">
                                        {!! $resume->part_job !!}
                                    </div>
                                </div>
                            @endif

                            @if($resume->project)
                                <div class="tdrcCont-label">
                                    <div class="tdrcCont-title">主要科研项目</div>
                                    <div class="tdrcCont-text">
                                        {!! $resume->project !!}
                                    </div>
                                </div>
                            @endif

                            @if($resume->outcome)
                                <div class="tdrcCont-label">
                                    <div class="tdrcCont-title">成果获奖情况</div>
                                    <div class="tdrcCont-text">
                                        {!! $resume->outcome !!}
                                    </div>
                                </div>
                            @endif

                            @if($resume->thesis)
                                <div class="tdrcCont-label">
                                    <div class="tdrcCont-title">发表专著及论文选列</div>
                                    <div class="tdrcCont-text">
                                        {!! $resume->thesis !!}
                                    </div>
                                </div>
                            @endif

                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection
