@if(!isset($feed))

{{ trans('v4half.add_new_feed') }}

@else

{{ trans('admin.edit') }} : {{ $feed->title }}

@endif
{!! Form::open(array('action' => isset($feed->id) ? 'Admin\FeedController@update' : 'Admin\FeedController@store', 'method' =>isset($feed->id) ? 'PUT' : 'POST')) !!} {{ csrf_field() }}
{!! Form::text('url', isset($feed->url) ? $feed->url : old('url'), ['id' => 'add_feed_url', 'class' => 'form-control input-field mb-2']) !!}
{!! Form::select('interval', [ 'hourly'=> trans('v4half.hourly'), 'daily'=> trans('v4half.daily'), 'weekly'=> trans('v4half.weekly'), 'monthly'=> trans('v4half.monthly') ], isset($feed->interval) ? $feed->interval : old('interval') , ['class' => 'form-control input-field mb-2']) !!}
{!! Form::select('content_fetcher', [ 'custom'=> trans('v4half.custom_fetcher'), 'feed'=> trans('v4half.use_content_from_feed'), ], isset($feed->content_fetcher) ? $feed->content_fetcher : old('content_fetcher') , ['class' => 'form-control input-field mb-2']) !!}
{!! Form::text('post_user_id', null, ['class' => '','id' => 'add_feed_post_users', 'placeholder' => trans('v4half.feed_search_post_user')]) !!}
{!! Form::number('post_fetch_count', isset($feed->post_fetch_count) ? $feed->post_fetch_count : 10, [ 'class' => 'form-control input-field mb-2','id' => 'add_feed_post_count']) !!}
@if(get_multilanguage_enabled())
{!! Form::select('language', get_buzzy_language_list_options(), ! empty($feed->language) ? $feed->language : get_buzzy_locale() , [ 'id' => 'add_menu_item_language', 'class' => 'form-control input-field mb-2']) !!}
@endif
{!! Form::select('active', [true => trans('admin.yes'), false=>trans('admin.no') ], isset($feed->active) ? (bool)$feed->active : true, [ 'class' => 'form-control input-field mb-2']) !!}
@if(isset($feed->id)) {{ trans('admin.Cancel') }} @endif
{!! Form::close() !!}