@extends('admin.layout') @section('content')

{{ translate('Promotions') }}

{{ translate('Add promotion') }}
{!! Form::open(['method' => 'post', 'action' => 'Admin\PromotionController@store', 'files' => true, 'id' => 'add_promotions_form']) !!}
@error('web_photo')
{{ $message }}
@enderror
@if (Session::get('tenant_subscribtion_data')['mobile_app']['belongs_to_subscribtion'] == true && Session::get('tenant_controle_modules')['mobile_app'] == 1)
@error('mobile_photo')
{{ $message }}
@enderror
@endif
{!! Form::text('title', null, ['class' => 'form-control', 'placeholder' => translate('Title')]) !!}
@error('title')
{{ $message }}
@enderror
{!! Form::textarea('description', null, ['class' => 'form-control', 'placeholder' => translate('Description')]) !!}
@error('description')
{{ $message }}
@enderror
{!! Form::select('offer_group_id', $OfferGroups, null, ['data-placeholder' => translate('Offer group'), 'class' => 'form-control select2']) !!}
@error('offer_group_id')
{{ $message }}
@enderror
{!! Form::select('placed_to_home', $placed_to_home_arr, null, ['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, null, ['id' => 'promotion_type', 'data-placeholder' => translate('Type'), 'class' => 'form-control select2', 'placeholder' => translate('Choose Type')]) !!}
@error('type')
{{ $message }}
@enderror
{!! Form::number('arrangment', null, ['class' => 'form-control', 'placeholder' => translate('Arrangment')]) !!}
@error('arrangment')
{{ $message }}
@enderror
{!! Form::checkbox('active', null, 1, ['id' => 'Checkbox_1']) !!}
{!! Form::Close() !!}
@endsection @section('script') @if (Session::get('tenant_subscribtion_data')['promotions']['belongs_to_subscribtion'] == true && Session::get('tenant_controle_modules')['promotions'] == 1) @else @endif @endsection