{{ translate('Edit promotion') }}
{!! Form::open(['method' => 'patch', 'action' => ['Admin\PromotionController@update', $Promotion->id], 'files' => true]) !!}
{!! Form::text('title', $Promotion->getTranslation('title', defaultLanguage()), ['class' => 'form-control', 'placeholder' => translate('Title')]) !!}
@error('title')
{{ $message }}
@enderror
{!! Form::textarea('description', $Promotion->getTranslation('description', defaultLanguage()), ['class' => 'form-control', 'placeholder' => translate('Description')]) !!}
@error('description')
{{ $message }}
@enderror
{!! Form::select('offer_group_id', $OfferGroups, $Promotion->offer_group_id, ['data-placeholder' => translate('Offer group'), 'class' => 'form-control select2']) !!}
@error('offer_group_id')
{{ $message }}
@enderror
{!! Form::select('placed_to_home', $placed_to_home_arr, $Promotion->placed_to_home, ['id' => 'placed_to_home', 'data-placeholder' => translate('Placed to home'), 'class' => 'form-control select2']) !!}
@error('placed_to_home')
{{ $message }}
@enderror
{!! Form::select('type', $promotion_type, $Promotion->type, ['id' => 'promotion_type', 'data-placeholder' => translate('Type'), 'class' => 'form-control select2']) !!}
@error('type')
{{ $message }}
@enderror
{!! Form::number('arrangment', $Promotion->arrangment, ['class' => 'form-control', 'placeholder' => translate('Arrangment')]) !!}
@error('arrangment')
{{ $message }}
@enderror
{!! Form::checkbox('active', null, $Promotion->active, ['id' => 'Checkbox_1']) !!}