{{ __('offerandpromotion::lang.import_promotions') }}

{!! Form::open(['url' => route('promotions.post-import'), 'method' => 'post', 'files' => true, 'id' => 'import_promotion_form']) !!}
{{-- Instructions Alert --}}
Instructions & Automatic Discount Calculation
  • Download the template pre-populated with your current product SKUs and selling prices.
  • Enter the desired Discount Price (or Discount Value) for each product SKU in the Excel spreadsheet.
  • Automatic Calculation: The system will automatically calculate the Discount Amount (Selling Price - Discount Price) and Discount Percentage for each row.
  • Row dates and locations take precedence over default form values below.
{{-- Step 1: Download Template --}}

Step 1: Download Excel Template

{{ __('offerandpromotion::lang.download_template_help') }}

{{ __('offerandpromotion::lang.download_template') }}
{{-- Step 2: Upload File & Default Settings --}}
Step 2: Upload File & Default Settings
{!! Form::label('promotions_excel', __('offerandpromotion::lang.excel_file') . ':*') !!} {!! Form::file('promotions_excel', ['accept' => '.xlsx, .xls, .csv', 'required' => true, 'class' => 'form-control']); !!} Supported formats: .xlsx, .xls, .csv
{!! Form::label('name', __('offerandpromotion::lang.default_promo_name') . ':') !!} {!! Form::text('name', null, ['class' => 'form-control', 'placeholder' => 'e.g., Summer Discount 2026']); !!} Applied if row promotion name is empty.
{!! 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') }}
{!! Form::label('is_active', __('offerandpromotion::lang.status') . ':') !!} {!! Form::select('is_active', ['1' => __('offerandpromotion::lang.active'), '0' => __('offerandpromotion::lang.inactive')], 1, ['class' => 'form-control']); !!}
{!! Form::label('start_date', __('offerandpromotion::lang.start_date') . ':') !!}
{!! Form::text('start_date', null, ['class' => 'form-control start-date-picker', 'placeholder' => 'YYYY-MM-DD']); !!}
{!! Form::label('end_date', __('offerandpromotion::lang.end_date') . ':') !!}
{!! Form::text('end_date', null, ['class' => 'form-control end-date-picker', 'placeholder' => 'YYYY-MM-DD']); !!}
{!! Form::close() !!}