@extends('layouts.master') @section('title','Affiliate Setting') @section('breadcum') @endsection @section('maincontent')
@if ($errors->any()) @endif
{{ __('Back') }}
{{__('Affiliate Settinge')}}
@csrf
{!! Form::label('code_limit',__('Refer code limit')) !!} {!! Form::text('code_limit', isset($af_settings) ? $af_settings->code_limit : 4 , ['class' => 'form-control']) !!} {{ __("Refer code character limit eg: if you put 4 then refer code will be AB51 and if you put 6 then it will be ABCD45") }} {{ $errors->first('code_limit') }}
{!! Form::label('refer_amount',__('Refer amount:')) !!} {!! Form::number('refer_amount', isset($af_settings) ? $af_settings->refer_amount : 0 , ['class' => 'form-control', 'min'=>"0", 'step'=>'0.01']) !!} {{ __("Per Refer amount in default currency") }} {{ $errors->first('refer_amount') }}
{!! Form::label('about_system', __('Description')) !!} -

{{__('Some description of your affiliate system that how it gonna work?')}}

{!! Form::textarea('about_system', isset($af_settings) ? $af_settings->about_system : "" , ['id' => '','autocomplete'=>'off', 'class' => 'form-control ckeditor', 'required']) !!} {{ $errors->first('about_system') }}
{{__('Enable affiliate ?')}}
{!! Form::checkbox('enable_affilate', 1, (isset($af_settings) && $af_settings->enable_affilate == 1 ? 1 : 0), ['class' => 'custom_toggle', "data-on-text"=>__('On'), "data-off-text"=>__('OFF'), "data-size"=>"small"]) !!}
{{ $errors->first('enable_affilate') }}
@endsection @section('script') @endsection