JFIFxxC      C  " }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr@php $qr_path = \App\Models\Utility::get_file('coupon_module/center_qr'); $users = \Auth::user(); use App\Models\Utility; $stringid = $couponData->id; @endphp @extends('layouts.admin') @push('css-page') @endpush @section('page-title') {{ __('Edit Coupon') }} @endsection @section('title') {{ __('Coupon') }} @endsection @section('breadcrumb') @endsection @section('action-btn')
@endsection @section('content')
{{-- Theme Setting --}}
{{ Form::open(['route' => ['coupon-qr.edit-theme', $couponData->id], 'method' => 'POST', 'enctype' => 'multipart/form-data']) }}
{{ __('Select Theme:') }}
{{ Form::hidden('themefile', null, ['id' => 'themefile']) }}
@foreach (Modules\Coupon\Entities\CouponQr::themeCoupon() as $key => $v)
{{ __('Modern Theme') }}
@foreach ($v as $css => $val) @endforeach
@endforeach
{{ Form::close() }}
{{ __('Preview') }}
{{-- Detail Setting --}}
{{ Form::open(['route' => ['coupon.update', $couponData->id], 'method' => 'PUT', 'enctype' => 'multipart/form-data','class' => 'needs-validation', 'novalidate']) }}
{{ __('Basic Information:') }}
{{ Form::label('Coupon Name', __('Coupon Name:'), ['class' => 'form-label']) }} {!! Form::text('coupon_name', $couponData->coupon_name, [ 'class' => 'form-control', 'placeholder' => __('Enter Name'), 'data-name' => 'coupon_name', 'id' => $stringid . '_coupon_name', 'required'=>'required', ]) !!} @error('coupon_name') {{ $message }} @enderror
{{ Form::label('headline', __('headline:'), ['class' => 'form-label']) }} {{ Form::text('headline', isset($couponData->headline) ? $couponData->headline : null, ['class' => 'form-control validation_headline ', 'placeholder' => __('Enter Headline'), 'id' => $stringid . '_coupon_headline','required'=>'required']) }} @error('headline') {{ $message }} @enderror
{{ Form::label('Description', __('Description:'), ['class' => 'form-label']) }} {{ Form::textarea('description', $couponData->description, ['class' => 'form-control description-text', 'rows' => '3', 'cols' => '30', 'id' => $stringid . '_coupon_desc', 'placeholder' => __('Enter Description'),'required'=>'required']) }} @error('description') {{ $message }} @enderror
{{ Form::label('Button Label', __('Call To Action:'), ['class' => 'form-label']) }}
{{ Form::label('Button Label', __('Button Label:'), ['class' => 'form-label']) }} {{ Form::text('cta_btn_label', isset($couponData->cta_btn_label) ? $couponData->cta_btn_label : null, ['class' => 'form-control validation_headline ', 'placeholder' => __('Enter Button Label'), 'id' => $stringid . '_btn_label','required'=>'required']) }} @error('cta_btn_label') {{ $message }} @enderror
{{ Form::label('Button Link', __('Button Link:'), ['class' => 'form-label']) }} {{ Form::text('cta_btn_link', isset($couponData->cta_btn_link) ? $couponData->cta_btn_link : null, ['class' => 'form-control validation_headline ', 'placeholder' => __('Enter Button Link'), 'id' => $stringid . '_btn_link','required'=>'required']) }} @error('cta_btn_link') {{ $message }} @enderror
{{ __('Personalized link:') }}
{{ Form::text('slug', $couponData->slug, ['class' => 'input-group-text text-start', 'placeholder' => __('Enter Slug')]) }}

{{ Form::label('Coupon Code', __('Coupon Code:'), ['class' => 'form-label']) }} {{ Form::text('coupon_code', isset($couponData->coupon_code) ? $couponData->coupon_code : null, [ 'class' => 'form-control validation-coupon-code', 'placeholder' => __('Enter Coupon Code'), 'id' => $stringid . '_coupon_code', 'maxlength' => '15', 'required'=>'required', ]) }} @error('coupon_code') {{ $message }} @enderror {{ __('Coupon code cannot exceed 15 characters.') }}
{{ Form::label('Discount', __('Discount:'), ['class' => 'form-label']) }} {{ Form::text('discount', isset($couponData->sale_badge) ? $couponData->sale_badge : null, ['class' => 'form-control validation_headline ', 'placeholder' => __('Enter Discount Like "30% Off"'), 'id' => $stringid . '_coupon_discount','required'=>'required']) }} @error('discount') {{ $message }} @enderror
{{ Form::label('Valid Date', __('Valid Date'), ['class' => 'form-label']) }} @error('valid_date') {{ $message }} @enderror
{{ Form::label('Terms and Condition', __('Terms and Condition:'), ['class' => 'form-label']) }} {{ Form::textarea('terms_condition', $couponData->terms_condition, ['class' => 'form-control description-text', 'rows' => '5', 'cols' => '30', 'id' => $stringid . '_terms_condition','required'=>'required']) }} @error('about') {{ $message }} @enderror {{ __("Note: Use ',' separator for multiple condition") }}
{{ Form::close() }}
{{ __('Preview') }}
@include('coupon::couponTemplate.' . $couponData->theme . '.index')
{{-- Start Custom QR-Code --}}
{{ Form::open(['route' => ['coupon-qr.qrcode_setting', $couponData->id], 'method' => 'POST', 'enctype' => 'multipart/form-data','class' => 'needs-validation', 'novalidate']) }}
{{ __('Qr Code Settings:') }}
{{ Form::label('Foreground Color', __('Foreground Color'), ['class' => 'form-label']) }}
{{ Form::label('Background Color', __('Background Color'), ['class' => 'form-label']) }}
{{ Form::label('Corner Radius', __('Corner Radius'), ['class' => 'form-label']) }}
{{ Form::label('Text', __('Text'), ['class' => 'form-label']) }}
{{ Form::label('Text Color', __('Text Color'), ['class' => 'form-label']) }}
{{ Form::label('image', __('Image'), ['class' => 'form-label']) }}
{{ Form::label('Size', __('Size'), ['class' => 'form-label']) }}
{{ Form::close() }}
{{-- End Custom QR-Code --}}
@endsection @push('custom-scripts') @endpush