{{ __('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_ids', __('offerandpromotion::lang.product') . ':') !!} {{ __('offerandpromotion::lang.leave_empty_for_all_products') ?? 'Leave empty to apply to all products. Search by Name, SKU, or Barcode.' }}
{!! 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_type', __('sale.discount_type') . ':') !!} {!! Form::select('discount_type', [ 'percentage' => __('lang_v1.percentage') . ' (%)', 'fixed' => __('lang_v1.fixed') . ' (' . session('currency.symbol') . ')' ], 'percentage', ['class' => 'form-control', 'id' => 'discount_type']); !!}
{!! Form::label('discount_amount', __('sale.discount_amount') . ':') !!}
{!! Form::text('discount_amount', null, ['class' => 'form-control input_number', 'id' => 'discount_amount', 'placeholder' => '0.00']); !!} %
{!! Form::label('is_active', __('offerandpromotion::lang.status') . ':') !!} {!! Form::select('is_active', ['1' => __('offerandpromotion::lang.active'), '0' => __('offerandpromotion::lang.inactive')], 1, ['class' => 'form-control']); !!}
{{-- ---- PRODUCT PRICE & DISCOUNT PREVIEW CARD ---- --}}
Product Price & Discount Preview
Product Last Purchase Price Selling Price Discount (Product Wise) Discounted Price Profit / Margin
{{-- ---- FREE PRODUCT FIELDS ---- --}}
🎁 {{ __('offerandpromotion::lang.free_product_promotion') }}
{!! Form::label('free_product_ids[]', __('offerandpromotion::lang.free_products') . ':') !!} {{ __('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', 'placeholder' => __('offerandpromotion::lang.optional')]); !!}
{!! Form::label('end_date', __('offerandpromotion::lang.end_date') . ':') !!}
{!! Form::text('end_date', null, ['class' => 'form-control datepicker', 'placeholder' => __('offerandpromotion::lang.optional')]); !!}
{{-- Description --}}
{!! Form::label('description', __('offerandpromotion::lang.description') . ':') !!} {!! Form::textarea('description', null, ['class' => 'form-control', 'rows' => 3, 'placeholder' => __('offerandpromotion::lang.optional')]); !!}
{!! Form::close() !!}