| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199 |
- @extends('theme::layout.public')
- @section('seo_title'){{ parse_seo_template('seo_index_title','default') }}@endsection
- @section('jumbotron')
- @if(Auth()->guest())
- <div class="jumbotron text-center hidden-xs">
- <h4>{{ Setting()->get('website_welcome','现在加入矿山问答系统,一起记录矿山的世界') }} {{--<a class="btn btn-primary ml-10" href="{{ route('auth.user.register') }}" role="button">立即注册</a>--}} <a class="btn btn-primary ml-10" href="{{ route('auth.user.login') }}" role="button">用户登录</a></h4>
- </div>
- @endif
- @endsection
- @section('content')
- <div class="row mt-10">
- <div class="col-xs-12 col-md-9 main">
- <div class="widget-box mb-10">
- <h4 class="widget-box-title">最新推荐</h4>
- <div class="job-list-item row">
- <div class="col-md-6">
- <div id="carousel-recommendation" class="carousel slide" data-ride="carousel">
- <!-- Indicators -->
- <ol class="carousel-indicators">
- <li data-target="#carousel-recommendation" data-slide-to="0" class="active"></li>
- <li data-target="#carousel-recommendation" data-slide-to="1"></li>
- <li data-target="#carousel-recommendation" data-slide-to="2"></li>
- </ol>
- <!-- Wrapper for slides -->
- <div class="carousel-inner" role="leftmodbox">
- @foreach($recommendItems as $key=> $recommendItem)
- @if($key<3)
- <div @if($key===0) class="item active" @else class="item" @endif>
- <a href="{{ $recommendItem->url }}" target="_blank"><img src="{{ route('website.image.show',['image_name'=>$recommendItem->logo]) }}" alt="{{ $recommendItem->subject }}"></a>
- <div class="carousel-caption">
- <h4>{{ $recommendItem->subject }}</h4>
- </div>
- </div>
- @endif
- @endforeach
- </div>
- </div>
- </div>
- <div class="col-md-6">
- <ul class="widget-links list-unstyled">
- @foreach($recommendItems as $key=> $recommendItem)
- @if($key>2)
- <li class="widget-links-item">
- <a href="{{ $recommendItem->url }}" target="_blank" >{{ $recommendItem->subject }}</a>
- </li>
- @endif
- @endforeach
- </ul>
- </div>
- </div>
- </div>
- <div class="widget-box border-top">
- <div class="job-list-item row">
- <div class="col-md-6">
- <h4 class="widget-box-title">最新问题 <a href="{{ route('website.ask',['category_slug'=>'all','filter'=>'newest']) }}" target="_blank" title="更多">»</a> </h4>
- <ul class="widget-links list-unstyled">
- @foreach($newestQuestions as $newQuestion)
- <li class="widget-links-item">
- <a title="{{ $newQuestion->title }}" target="_blank" href="{{ route('ask.question.detail',['id'=>$newQuestion->id]) }}">{{ str_limit($newQuestion->title,42) }}</a>
- <small class="text-muted">{{ $newQuestion->answers }} 回答</small>
- </li>
- @endforeach
- </ul>
- </div>
- <div class="col-md-6">
- <h4 class="widget-box-title">悬赏问题 <a href="{{ route('website.ask',['category_slug'=>'all','filter'=>'reward']) }}" target="_blank" title="更多">»</a></h4>
- <ul class="widget-links list-unstyled">
- @foreach($rewardQuestions as $rewardQuestion)
- <li class="widget-links-item">
- <span class="text-gold"><i class="fa fa-database"></i> {{ $rewardQuestion->price }}</span>
- <a target="_blank" title="{{ $rewardQuestion->title }}" href="{{ route('ask.question.detail',['id'=>$rewardQuestion->id]) }}">{{ str_limit($rewardQuestion->title,42) }}</a>
- </li>
- @endforeach
- </ul>
- </div>
- </div>
- </div>
- @if($hotExperts)
- <div class="widget-box clearfix border-top">
- <h4 class="widget-box-title">推荐专家 <a href="{{ route('website.experts') }}" title="更多">»</a></h4>
- <div class="row row-horizon">
- @foreach($hotExperts as $expert)
- <section class="col-sm-6 col-md-3">
- <div class="thumbnail">
- <a href="{{ route('auth.space.index',['user_id'=>$expert->user_id]) }}" target="_blank"><img class="avatar-128" src="{{ $expert->id_card_image }}" alt="{{ $expert->real_name }}" style="width:75px;height:75px;"></a>
- <div class="caption">
- <h4 class="text-center"><a href="{{ route('auth.space.index',['user_id'=>$expert->user_id]) }}" title="{{ $expert->real_name }}">{{ str_limit($expert->real_name,10,'') }}</a></h4>
- <p class="text-muted text-center" title="{{ $expert->title }}">{{ str_limit($expert->title,16,'') }} </p>
- <p class="text-center"><a class="btn btn-primary btn-sm" href="{{ route('ask.question.create') }}?to_user_id={{ $expert->user_id }}">向TA提问</a></p>
- </div>
- </div>
- </section>
- @endforeach
- </div>
- </div>
- @endif
- <div class="widget-box border-top">
- <div class="job-list-item row">
- <div class="col-md-6">
- <h4 class="widget-box-title">热门文章 <a href="{{ route('website.blog',['category_slug'=>'all','filter'=>'hottest']) }}" title="更多">»</a></h4>
- <ul class="widget-links list-unstyled">
- @foreach($hotArticles as $hotArticle)
- <li class="widget-links-item">
- <a title="{{ $hotArticle->title }}" target="_blank" href="{{ route('blog.article.detail',['id'=>$hotArticle->id]) }}">{{ str_limit($hotArticle->title,42) }}</a>
- <small class="text-muted">{{ $hotArticle->views }} 浏览</small>
- </li>
- @endforeach
- </ul>
- </div>
- <div class="col-md-6">
- <h4 class="widget-box-title">最新文章 <a href="{{ route('website.blog',['category_slug'=>'all','filter'=>'newest']) }}" title="更多">»</a></h4>
- <ul class="widget-links list-unstyled">
- @foreach($newestArticles as $newestArticle)
- <li class="widget-links-item">
- <a title="{{ $newestArticle->title }}" target="_blank" href="{{ route('blog.article.detail',['id'=>$newestArticle->id]) }}">{{ str_limit($newestArticle->title,42) }}</a>
- <small class="text-muted">{{ $newestArticle->views }} 浏览</small>
- </li>
- @endforeach
- </ul>
- </div>
- </div>
- </div>
- @if($hotUsers)
- <div class="widget-box clearfix border-top widget-user-box">
- <h4 class="widget-box-title">活跃用户 <a href="{{ route('website.user') }}" title="更多">»</a></h4>
- <ul class="user-list">
- @foreach($hotUsers as $hotUser)
- <li>
- <a href="{{ route('auth.space.index',['id'=>$hotUser->user_id]) }}" target="_blank" title="{{ $hotUser->user->name }}"><img class="avatar-50" src="{{ $hotUser->user->qrcode }}" alt="{{ $hotUser->user->name }}"></a>
- <span class="username"><a href="{{ route('auth.space.index',['id'=>$hotUser->user_id]) }}" title="{{$hotUser->user->name}}">{{ str_limit($hotUser->user->name,6,'')}}</a></span>
- </li>
- @endforeach
- </ul>
- </div>
- @endif
- </div>
- <div class="col-md-3 hidden-xs side">
- <div class="side-alert alert alert-link">
- <a href="{{ route('ask.question.create') }}" class="btn btn-warning btn-block">我要提问</a>
- <a href="{{ route('blog.article.create') }}" class="btn btn-primary btn-block">发布文章</a>
- </div>
- @if(Setting()->get('open_user_sign'))
- <div class="side-sign alert alert-link">
- <ul class="sign-box">
- @if(Auth()->check() && Auth()->user()->isSigned())
- <dt><button class="btn btn-primary btn-large" disabled>已签到</button></dt>
- @else
- <dt><a href="{{ route('auth.user.sign') }}" class="btn btn-primary btn-large">签 到</a></dt>
- @endif
- <dd>
- <p>{{ $signDate->toDateString() }}</p>
- <p>{{ trans_day_of_week($signDate->dayOfWeek) }}</p>
- </dd>
- </ul>
- </div>
- @endif
- @include('theme::layout.auth_menu')
- <div class="widget-box">
- <h4 class="widget-box-title">最新公告</h4>
- <ul class="widget-links list-unstyled">
- @foreach($newestNotices as $newestNotice)
- <li class="widget-links-item">
- <a title="{{ $newestNotice->subject }}" href="{{ $newestNotice->url }}" @if($newestNotice->style) {!! $newestNotice->style !!} @endif >{{ $newestNotice->subject }}</a>
- </li>
- @endforeach
- </ul>
- </div>
- <div class="widget-box">
- <h2 class="h4 widget-box-title">热议话题 <a href="{{ route('website.topic') }}" title="更多">»</a></h2>
- <ul class="taglist-inline multi">
- @foreach($hotTags as $hotTag)
- <li class="tagPopup"><a class="tag" data-toggle="popover" href="{{ route('ask.tag.index',['id'=>$hotTag->tag_id]) }}" target="_blank">{{ $hotTag->name }}</a></li>
- @endforeach
- </ul>
- </div>
- <div class="widget-box mt30">
- <h2 class="widget-box-title">
- 财富榜
- <a href="{{ route('auth.top.coins') }}" title="更多">»</a>
- </h2>
- <ol class="widget-top10">
- @foreach($topCoinUsers as $index => $topCoinUser)
- <li class="text-muted">
- <img class="avatar-32" src="{{ $topCoinUser['qrcode'] }}">
- <a href="{{ route('auth.space.index',['user_id'=>$topCoinUser['id']]) }}" class="ellipsis" target="_blank">{{ $topCoinUser['name'] }}</a>
- <span class="text-muted pull-right">{{ $topCoinUser['coins'] }} 金币</span>
- </li>
- @endforeach
- </ol>
- </div>
- </div>
- </div>
- @endsection
|