@extends('layouts/contentNavbarLayout') @section('title', 'Discount-Offer') @section('content')

Home / Discount-Offer Create

Discount-Offer
@isset($discountoffer) {!! Form::model($discountoffer, ['route' => ['discount-offers.update', Crypt::encrypt($discountoffer->id)], 'method' => 'put', 'class' => 'p-4 progress-form', 'id' => 'progress-form', 'files' => true]) !!} @else {!! Form::open(['url' => '/discount-offers', 'class' => 'p-4 progress-form', 'id' => 'progress-form', 'lang' => 'en', 'files' => true]) !!} @endisset
Offer Details
{!! Form::label('name', 'Offer Name', ['class' => 'form-label', 'for' => 'name']) !!} {!! Form::text('name', @$discountoffer->name, ['class' => 'form-control', 'id' => 'name', 'placeholder' => 'Offer Name']) !!}
{!! Form::label('offer_id', 'Offer ID', ['class' => 'form-label', 'for' => 'offer_id']) !!} {!! Form::text('offer_id', $offer_id, ['class' => 'form-control', 'id' => 'offer_id', 'placeholder' => 'Offer ID', 'readonly']) !!}
{!! Form::label('description', 'Description', ['class' => 'form-label', 'for' => 'plan_description']) !!} {!! Form::textarea('description', @$discountoffer->description, ['class' => 'form-control', 'id' => 'plan_description']) !!}
Discount Parameters
{!! Form::label('discount_type', 'Discount Type', ['class' => 'form-label']) !!} {!! Form::select('discount_type', ['' => 'Select type', 'percentage' => 'Percentage', 'fixed_amount' => 'Fixed Amount'], @$discountoffer->discount_type, ['class' => 'form-select form-select-lg', 'id' => 'discount_type', 'required']) !!}
{!! Form::label('discount_value', 'Discount Value', ['class' => 'form-label']) !!} {!! Form::number('discount_value', @$discountoffer->discount_value, ['class' => 'form-control', 'id' => 'discount_value', 'placeholder' => '10.99', 'step' => '.01']) !!}
{!! Form::label('plans', 'Applicable Plans', ['class' => 'form-label']) !!} {!! Form::select('plans[]', $plans, @$selected_plans, ['class' => 'form-select form-select-lg', 'multiple' => true, 'id' => 'applicable_plans']) !!}
Validity Period
{!! Form::label('start_date', 'Start Date', ['class' => 'form-label']) !!} {!! Form::date('start_date', @$discountoffer->start_date, ['class' => 'form-control']) !!}
{!! Form::label('end_date', 'End Date', ['class' => 'form-label']) !!} {!! Form::date('end_date', @$discountoffer->end_date, ['class' => 'form-control']) !!}
Activation
{!! Form::label('status', 'Status', ['class' => 'form-check-label', 'for' => 'status']) !!} {!! Form::checkbox('status', 1, @$discountoffer->status, ['class' => 'form-check-input', 'id' => 'status']) !!}
{!! Form::button('Submit', ['type' => 'submit', 'class' => 'btn btn-primary']) !!}
{!! Form::close() !!}
@endsection