@extends(Auth::check() && Auth::user()->role->layout == 1 ? 'layouts.admin' : 'layouts.employee')

@section('head')
<link href="{{ asset('/plugins/iCheck/square/green.css') }}" rel="stylesheet">
@endsection

@section('content')
<div class="content-wrapper">
	<section class="content-header">
		<h1>
			{{trans('general.noticias')}} 
		</h1>
	</section>

	<section class="content">
		<div class="row">
			<div class="col-md-8 col-md-offset-2">
				<div class="box box-success">
					<div class="box-header">	
						<h3 class="box-title">		{{trans('general.nuevo')}}  		{{trans('general.noticia')}} </h3>
					</div>
					<div class="box-body">
						{!! Form::open(['url' => 'notices', 'files' => 'true']) !!}
						@include('notices.form', ['new' => true])
						{!! Form::close() !!}
					</div>
				</div>
			</div>
		</div>
	</section>
</div>
@endsection

@section('foot')
	<script src="{{ asset('/plugins/iCheck/icheck.js') }}"></script>
	<script type="text/javascript">
		$(document).ready(function(){
		  $('input').iCheck({
			checkboxClass: 'icheckbox_square-green'
		  });
		});
    </script>
@endsection