@section('title') Notícias @stop @section('content-header') Notícias {{ $action }} @stop @section('breadcrumb')
  • Notícias
  • {{ $action }}
  • @stop @section('styles') {{ HTML::style('assets/vendor/jasny-bootstrap/dist/css/jasny-bootstrap.min.css')}} {{ HTML::style('assets/vendor/jquery.filer/css/jquery.filer.css') }} @stop @section('plugins') {{ HTML::script('assets/vendor/jasny-bootstrap/dist/js/jasny-bootstrap.min.js')}} {{ HTML::script('assets/vendor/jquery.filer/js/jquery.filer.min.js') }} @stop @section('content')
    {{ Form::model($news, $formOptions) }}
    {{ Form::label('title', 'Título')}} {{ Form::text('title', null, array('class' =>'form-control', 'required' => true)) }}
    {{ Form::label('content', 'Conteúdo da Notícia')}} {{ Form::textarea('content', null, array('class' =>'form-control ckeditor', 'required' => true)) }}
    {{ Form::select('type_news', trans('type.news'), null, array('class' => 'form-control form-contact input-sm filter-datatable dropQuotation')) }}
    {{ Form::label('title', 'Título')}} {{ Form::text('title', null, array('class' =>'form-control', 'required' => true)) }}
    {{ Form::label('content', 'Conteúdo da Notícia')}} {{ Form::textarea('content', null, array('class' =>'form-control ckeditor', 'required' => true)) }}
    {{ Form::label('date', 'Data da Notícia') }}
    @if($news->date) {{ Form::text('date', date('Y-m-d', strtotime($news->date)), array('class' =>'form-control datepicker', 'required' => true)) }} @else {{ Form::text('date', date('Y-m-d'), array('class' =>'form-control datepicker', 'required' => true)) }} @endif
    {{ Form::label('image', 'Imagem')}}
    @if($news->fileurl)
    @else
    @endif
    @if($news->fileurl) @endif
    Selecionar Alterar Anular
    {{ Form::hidden('delete_photo', 0) }} @if($news->fileurl) {{ Form::hidden('original_fileurl', asset($news->fileurl)) }} @endif
    {{ Form::label('documents', 'Anexar os seguintes documentos')}} {{ Form::select('documents[]', $documents, @$selectedDocuments, array('class' =>'form-control select2', 'multiple'=>'true')) }}
    {{ Form::label('files', 'Imagens em anexo') }} (Máximo 20 imagens) {{ Form::hidden('deleted_images', '[]') }}
    {{ Form::label('highlight', 'Destaque') }}
    {{ Form::submit('Gravar', array('class' => 'btn btn-primary' ))}}
    {{ Form::close() }}
    @stop @section('scripts') @stop