@extends('layouts.app')


@section('content')
    <!-- 分院概况 -->
    <div class="survey" style="background-image: url(/assets/index/images/flowBack.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/surveyIcon_00.png"/>
                                {{ getOneCategory(15,'title') }}
                            </div>
                        </div>
                        <div class="surveyBrief">
                            <div class="surveyBrief-top">
                                <div class="surveyBrief-img">
                                    <img src="{{ getOneArticleBYCate(15,'cover_path') }}"/>
                                </div>
                                <div class="surveyBrief-cont">
                                    <div class="ce-nowrap surveyBrief-title">
                                        {{ getOneArticleBYCate(15,'title') }}
                                    </div>
                                    <div class="surveyBrief-tips">
                                        {{ getOneArticleBYCate(15,'description') }}
                                    </div>
                                    <a class="surveyBrief-more" href="{{ getOneArticleBYCate(15,'link') }}"
                                       target="_blank">查看更多></a>
                                </div>
                            </div>
                        </div>
                    </div>

                    <!-- 领导班子 -->
                    <div class="surveyCont">
                        <div class="secondTop">
                            <div class="secondTop-name">
                                <img src="/assets/index/images/surveyIcon_01.png"/>
                                {{ getOneCategory(14,'title') }}
                            </div>
                            <a href="{{ getOneCategory(14,'link') }}" target="_blank" class="secondTop-more">
                                查看更多&gt;&gt;
                            </a>
                        </div>
                        <ul class="surveyLeader">
                            @if (getArticlesBYCate(14,3)->isNotEmpty())
                                @foreach (getArticlesBYCate(14,3) as $article)
                                    <li>
                                    <!-- <a href="{{ $article->link }}"> -->
                                        <div class="ce-img surveyLeader-img">
                                            <span style="background-image: url({{ $article->cover_path }});"></span>
                                        </div>
                                        <div class="surveyLeader-cont">
                                            <div class="surveyLeader-name">
                                                <span>{{ $article->title }}</span>{{ $article->description }}
                                            </div>
                                            <div class="surveyLeader-post">
                                                {{ $article->tenure }}
                                            </div>
                                            <div class="surveyLeader-span">
                                                <span>职务：{{ $article->duty }}</span>
                                                <span>职称：{{ $article->rank }}</span>
                                            </div>
                                        </div>
                                        <!-- </a> -->
                                    </li>
                                @endforeach
                            @endif
                        </ul>
                    </div>

                    <!-- 内设机构 -->
                    <div class="surveyCont">
                        <div class="secondTop">
                            <div class="secondTop-name">
                                <img src="/assets/index/images/surveyIcon_02.png"/>
                                {{ getOneCategory(13,'title') }}
                            </div>
                        <!-- <a href="{{ getOneCategory(13,'link') }}" class="secondTop-more">
                                查看更多&gt;&gt;
                            </a> -->
                        </div>
                        <div class="organCont">
							<img src="/assets/index/images/najgImg.png"/>
                            @if (getCateChild(13)->isNotEmpty())
                                @foreach (getCateChild(13) as $cate)
                                    <!-- <div class="organLabel">
										<div class="organLabel-name">
                                            {{ $cate->title }}
                                        </div>
                                        <ul class="organLabel-list">
                                            @if($cate->childrens)
                                                @foreach ($cate->childrens as $child)
                                                    <li>
                                                        @if(in_array($cate->parent->id,config('setting.no_href')))
                                                            <a><span>{{ $child->title }}</span></a>
                                                        @else
                                                            <a href="{{ $child->link }}" target="_blank">
                                                                <span>{{ $child->title }}</span>
                                                            </a>
                                                        @endif
                                                    </li>
                                                @endforeach
                                            @endif
                                        </ul>
                                    </div> -->
                                @endforeach
                            @endif
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection
