@extends('layouts.app') @section('styles') @endsection @section('content')
@if(session('message'))
{{session('message')}}
@endif
Enviar notificaciones por Topics
{{ Form::open( ['id' => 'send_push_notifications', 'class' => 'form', 'route' => 'sendPush'] ) }}
{{ Form::label( 'title', 'Titulo')}} {{ Form::text( 'title', null, ['id' => 'new_title', 'class' => 'form-control', 'required'] ) }} @if ( $errors->get( 'title' ) ) @foreach ( $errors->get( 'title' ) as $error )
{{ $error }}
@endforeach @endif
{{ Form::label( 'body', 'Texto')}} {{ Form::textarea( 'body', null, ['id' => 'new_body', 'class' => 'form-control', 'required'] ) }} @if ( $errors->get( 'body' ) ) @foreach ( $errors->get( 'body' ) as $error )
{{ $error }}
@endforeach @endif
{{ Form::label( 'topics[]', 'Topics')}} {{ Form::select( 'topics[]', $viewData['topics'], null, [ 'class' => 'form-control select2', 'multiple' ] ) }} @if ( $errors->get( 'topics[]' ) ) @foreach ( $errors->get( 'topics[]' ) as $error )
{{ $error }}
@endforeach @endif
{{ Form::close() }}
@endsection @section('scripts') @endsection