@extends('theme::template')

@section('banner')
  <div class="nbanner" {{ inject('visual')->url('ad', 4) }} data-position-top="80px">
    <img src="{{ inject('ad')->single(4, 5, 'img') }}" alt="{{ inject('ad')->single(4, 5, 'title') }}">
  </div>
@stop

@section('anchor')
<div id="anchor">
	<div class="container-fluid">
		<span class="anchor">
			<a href="{{ url('/') }}">{{ inject('setting')->langs('system', 'home') }}</a> > {{ inject('setting')->langs('system', 'jobs') }}
		</span>
	</div>
</div>
@stop

@section('left')
<div class="hidden-xs hidden-sm">
	<h3 class="left-title">{{ inject('setting')->langs('system', 'jobs') }}</h3>
	<div class="edge">
		<div class="edge-inside"></div>
	</div>
	<ul class="cate-list" {{ inject('visual')->url('job-cate') }}>
		@foreach (inject('category')->cate('job') as $value)
			<div class="category">
				<a class="list-title" href="{{ $value->present()->url('job') }}" title="{{ $value->cname }}">{{ $value->cname }}</a>
				<span class="{{ !$value->children->isEmpty() ? 'arrow-click' : ''}}"></span>
					@if(!$value->children->isEmpty())
					<ul class="map-category-list">
						@foreach ($value->children as $val)
							<li>
								<a href="{{ $val->present()->url('job') }}">{{ $val->cname }}</a>
							</li>
						@endforeach
					</ul>
				@endif
			</div>
		@endforeach
	</ul>
</div>


<div class="page-wrap-left xymob-menu-click">
    <div class="xymob-left-close-btn"><i class="icon-font icon-close"></i></div>
    <div class="xypg-left">
        <div class="xypg-left-box xypg-left-menu">
            <div class="xypg-left-title">
                <h3>{{ inject('setting')->langs('system', 'jobs') }}</h3>
            </div>
            <div class="xypg-left-con">
                <ul class="xypg-left-nav" {{ inject('visual')->url('job-cate') }}>
					@foreach (inject('category')->cate('job') as $value)
                    <li>
                        <a href="{{ $value->present()->url('job') }}" title="{{ $value->cname }}">{{ $value->cname }}</a>
                        <div class="first-nav-btn"></div>
						@if(!$value->children->isEmpty())
						<ul class="xypg-left-subnav">
							@foreach ($value->children as $val)
							<li><a href="{{ $val->present()->url('job') }}">{{ $val->cname }}</a></li>
							@endforeach
						</ul>
						@endif
                    </li>
					@endforeach
                </ul>
            </div>
        </div>
        
    </div>
</div>

<div class="page-mob-tool">
    <ul>
        <li class="xymob-page-navbtn"><span></span></li>
        <li class="xymob-page-backtop"><i class="icon-font icon-top"></i></li>
    </ul>
</div>


@include('theme::common.left_side')
@stop

@section('right')
<div class="job-list-content">
	@include('theme::common.job_list')
</div>
@stop