{!! Form::text('settings[facebook_page_id]', old('settings[facebook_page_id]', setting('facebook_page_id')), ['class' => 'next-input', 'id' => 'facebook_page_id']) !!}
@endif
@if (!app()->environment('demo') && config('plugins.facebook.general.use_token'))
{!! trans('plugins/facebook::facebook.settings.get_fan_page_id_helper', ['link' => Html::link('https://findmyfbid.com', 'https://findmyfbid.com', ['target' => '_blank'])]) !!}
{!! Form::error('settings.facebook_page_id', $errors) !!}
{!! Form::text('settings[facebook_access_token]', old('settings.facebook_access_token', setting('facebook_access_token')), ['class' => 'form-control', 'id' => 'facebook_access_token', 'disabled' => true]) !!}
@if (setting('facebook_access_token') != null)
{{ trans('plugins/facebook::facebook.settings.remove_access_token') }}
@else
{{ trans('plugins/facebook::facebook.settings.get_access_token') }}
@endif
@if (setting('facebook_token_expire_date') != null)
@php
$expire_date = Carbon\Carbon::createFromTimestamp(setting('facebook_token_expire_date'));
@endphp
{{ trans('plugins/facebook::facebook.settings.expire_notice', ['date' => $expire_date->toDateTimeString()]) }}
@endif
{!! Form::error('settings.facebook_access_token', $errors) !!}
{!! Form::select('settings[facebook_page_id]', $listPages, old('settings.facebook_page_id.', setting('facebook_page_id')), ['class' => 'ui-select', 'id' => 'facebook_page_id']) !!}
{!! Form::error('settings.facebook_page_id', $errors) !!}
{!! Form::error('settings.facebook_auto_post_to_fan_page', $errors) !!}
@else
{!! Form::text('settings[facebook_page_id]', old('settings[facebook_page_id]', setting('facebook_page_id')), ['class' => 'next-input', 'id' => 'facebook_page_id']) !!}
@endif
@endif
{!! trans('plugins/facebook::facebook.settings.get_fan_page_id_helper', ['link' => Html::link('https://findmyfbid.com', 'https://findmyfbid.com', ['target' => '_blank'])]) !!}
{!! Form::error('settings.facebook_page_id', $errors) !!}
{!! Form::error('settings.facebook_use_comments', $errors) !!}
{!! Form::error('settings.facebook_show_chat_box', $errors) !!}
@if (setting('facebook_show_chat_box', 1) == 1)
{!! Form::helper(trans('plugins/facebook::facebook.settings.chat_box_helper', ['fan-page-id' => '
https://www.facebook.com/' . setting('facebook_page_id') . '/settings/?tab=messenger_platform
', 'domain' => '' . route('public.index') . '
'])) !!}
@endif
{!! Form::error('settings.facebook_chat_minimized', $errors) !!}