@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')}} @stop @section('plugins') {{ HTML::script('assets/vendor/jasny-bootstrap/dist/js/jasny-bootstrap.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('subtitle', 'Subtítulo')}} {{ Form::text('subtitle', null, array('class' =>'form-control', 'maxlength' => 100)) }}
    {{ 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('highlight', 'Destaque') }}

    Documentos em Anexo

    @if($news->exists) @if(!$news->attachments->isEmpty()) @foreach($news->attachments as $attachment) @endforeach
    Documento Opções
    {{ $attachment->title }}
    @endif Adicionar Anexo @else

    Poderá adicionar anexos depois de guardar a notícia.

    @endif

    {{ Form::submit('Gravar', array('class' => 'btn btn-primary' ))}}
    {{ Form::close() }}
    @stop @section('scripts') @stop