@extends("_admin.adminapp") @section("content")

{{__('Reactions')}} @if(get_multilanguage_enabled())  >  {!! get_language_list(get_buzzy_locale()) !!} @endif

{{ isset($reaction->id) ? __('Edit Reaction:').$reaction->name : __('Add Reaction Icon') }}

{!! Form::open(array('action' => array('Admin\ReactionController@addnew'), 'method' => 'POST', 'enctype' => 'multipart/form-data')) !!}
{!! Form::label('ord', __('Order')) !!} {!! Form::text('ord', isset($reaction->ord) ? $reaction->ord : null, ['id' => 'ord', 'class' => 'form-control input-lg']) !!}
{!! Form::label('name', __('Name')) !!} {!! Form::text('name', isset($reaction->name) ? $reaction->name : null, ['id' => 'name', 'class' => 'form-control input-lg']) !!}
{!! Form::label('reaction_type', trans('admin.Slug').' (Unique ID)') !!} {!! Form::text('reaction_type', isset($reaction->reaction_type) ? $reaction->reaction_type : null, ['id' => 'slug', 'class' => 'form-control input-lg']) !!}
{!! Form::label('icon', __('Icon')) !!} {!! Form::file('icon', ['id' => 'icon', 'class' => 'form-control input-lg']) !!}
@if(get_multilanguage_enabled())
{!! Form::select('language', get_buzzy_language_list_options(), ! empty($category->language) ? $category->language : request()->query('lang', app()->getLocale()) , [ "id"=>"changeLanguage", 'id' => 'add_menu_item_language', 'class' => 'form-control input-field mb-2']) !!}
@endif
{!! Form::label('display',trans('admin.Display')) !!} {!! Form::select('display', ['on' => trans('admin.on'),'off' => trans('admin.off')], isset($reaction->display) ? $reaction->display : null , ['class' => 'form-control']) !!}
{!! Form::close() !!}
@foreach($reactions as $react)
{{ $react->name }}
{{ $react->ord }}. {{ $react->name }}
@endforeach
@endsection