{{ __('offerandpromotion::lang.add') }} {{ __('offerandpromotion::lang.promotion') }}

{!! Form::open(['url' => url('/offerandpromotion/promotions'), 'method' => 'post', 'id' => 'promotion_form']) !!}
{{-- Promotion Type --}}
{!! Form::label('promotion_type', __('offerandpromotion::lang.promotion_type') . ':*') !!}
   
{{-- Product / Variation --}}
{!! Form::label('product_id', __('offerandpromotion::lang.product') . ':*') !!} {!! Form::select('product_id', $products, null, ['class' => 'form-control select2', 'required', 'style' => 'width:100%', 'id' => 'product_id']); !!}
{!! Form::label('variation_id', __('offerandpromotion::lang.variation') . ':') !!} {!! Form::select('variation_id', [], null, ['class' => 'form-control select2', 'style' => 'width:100%', 'id' => 'variation_id', 'placeholder' => __('offerandpromotion::lang.all_variations')]); !!} {{ __('offerandpromotion::lang.leave_empty_for_all_variations') }}
{{-- Name / Location --}}
{!! Form::label('name', __('offerandpromotion::lang.name') . ':') !!} {!! Form::text('name', null, ['class' => 'form-control', 'placeholder' => __('offerandpromotion::lang.optional')]); !!}
{!! Form::label('location_id', __('offerandpromotion::lang.location') . ':') !!} {!! Form::select('location_id', $locations, null, ['class' => 'form-control select2', 'style' => 'width:100%', 'placeholder' => __('offerandpromotion::lang.all_locations')]); !!} {{ __('offerandpromotion::lang.leave_empty_for_all_locations') }}
{{-- ---- DISCOUNT FIELDS ---- --}}
{!! Form::label('discount_percentage', __('offerandpromotion::lang.discount_percentage') . ':') !!}
{!! Form::text('discount_percentage', null, ['class' => 'form-control input_number', 'id' => 'discount_percentage', 'placeholder' => '25.00']); !!} %
{!! Form::label('is_active', __('offerandpromotion::lang.status') . ':') !!} {!! Form::select('is_active', ['1' => __('offerandpromotion::lang.active'), '0' => __('offerandpromotion::lang.inactive')], 1, ['class' => 'form-control']); !!}
{{-- ---- FREE PRODUCT FIELDS ---- --}}
🎁 {{ __('offerandpromotion::lang.free_product_promotion') }}
{!! Form::label('free_product_ids[]', __('offerandpromotion::lang.free_products') . ':') !!} {!! Form::select('free_product_ids[]', $products, null, [ 'class' => 'form-control select2', 'multiple' => 'multiple', 'id' => 'free_product_ids', 'style' => 'width:100%', 'placeholder' => __('offerandpromotion::lang.select_free_product'), ]); !!} {{ __('offerandpromotion::lang.free_products_help') }}
{!! Form::label('free_product_qty', __('offerandpromotion::lang.free_product_qty') . ':') !!} {!! Form::number('free_product_qty', 1, ['class' => 'form-control', 'min' => 1, 'placeholder' => '1']); !!} {{ __('offerandpromotion::lang.free_product_qty_help') }}
{!! Form::label('free_min_purchase_qty', __('offerandpromotion::lang.free_min_purchase_qty') . ':') !!} {!! Form::number('free_min_purchase_qty', 1, ['class' => 'form-control', 'min' => 1, 'placeholder' => '1']); !!} {{ __('offerandpromotion::lang.free_min_purchase_qty_help') }}
{!! Form::label('is_active_fp', __('offerandpromotion::lang.status') . ':') !!} {!! Form::select('is_active', ['1' => __('offerandpromotion::lang.active'), '0' => __('offerandpromotion::lang.inactive')], 1, ['class' => 'form-control', 'id' => 'is_active_fp']); !!}
{{-- Daily Limits --}}
{!! Form::label('daily_quantity_limit', __('offerandpromotion::lang.daily_quantity_limit') . ':') !!} {!! Form::text('daily_quantity_limit', null, ['class' => 'form-control input_number', 'placeholder' => __('offerandpromotion::lang.unlimited')]); !!} @lang('offerandpromotion::lang.daily_quantity_limit_help')
{!! Form::label('daily_invoice_limit', __('offerandpromotion::lang.daily_invoice_limit') . ':') !!} {!! Form::text('daily_invoice_limit', null, ['class' => 'form-control input_number', 'placeholder' => __('offerandpromotion::lang.unlimited')]); !!} @lang('offerandpromotion::lang.daily_invoice_limit_help')
{{-- Date Range --}}
{!! Form::label('start_date', __('offerandpromotion::lang.start_date') . ':*') !!}
{!! Form::text('start_date', null, ['class' => 'form-control datepicker', 'required', 'readonly']); !!}
{!! Form::label('end_date', __('offerandpromotion::lang.end_date') . ':*') !!}
{!! Form::text('end_date', null, ['class' => 'form-control datepicker', 'required', 'readonly']); !!}
{{-- Description --}}
{!! Form::label('description', __('offerandpromotion::lang.description') . ':') !!} {!! Form::textarea('description', null, ['class' => 'form-control', 'rows' => 3, 'placeholder' => __('offerandpromotion::lang.optional')]); !!}
{!! Form::close() !!}