@foreach (config('translatable.locales') as $locale)
{{ LaravelLocalization::getSupportedLocales()[$locale]['native'] }}
{!! Form::text($locale."[name]", isset($lucky_box) ? $lucky_box->translate($locale)->name : null, ['class' => 'form-control' , 'placeholder' => trans('dashboard.'.$locale.'.name')]) !!}
{!! Form::textarea($locale."[desc]", isset($lucky_box) ? optional($lucky_box->translate($locale))->desc : null, ['class' => 'form-control' , 'placeholder' => trans('dashboard.'.$locale.'.desc')]) !!}
@endforeach
{{ trans('dashboard.general.public_data') }}
{!! Form::radio('is_active',1, isset($lucky_box) && !$lucky_box->is_active ? 'checked' : null , ['class' => 'custom-control-input' , 'id' => 'is_active']) !!}
{!! Form::radio('is_active', 0, !isset($lucky_box) || (isset($lucky_box) && $lucky_box->is_active) ? 'checked' : null , ['class' => 'custom-control-input' , 'id' => 'is_not_active']) !!}
{!! Form::date("start_at", isset($lucky_box) && $lucky_box->start_at ? $lucky_box->start_at : null , ['class' => 'form-control expire_date' , 'placeholder' => trans('dashboard.lucky_box.start_at')]) !!}
{!! Form::date("end_at", isset($lucky_box) && $lucky_box->end_at ? $lucky_box->end_at : null , ['class' => 'form-control expire_date' , 'placeholder' => trans('dashboard.lucky_box.end_at')]) !!}
{!! Form::radio('user_type','client', isset($lucky_box) && $lucky_box->user_type =='client' ? 'checked' : null , ['class' => 'custom-control-input' , 'id' => 'user_client']) !!}
{!! Form::radio('user_type','driver', isset($lucky_box) && $lucky_box->user_type =='driver' ? 'checked' : null , ['class' => 'custom-control-input' , 'id' => 'user_driver']) !!}
{!! Form::radio('user_type','client_and_driver', isset($lucky_box) && $lucky_box->user_type =='client_and_driver' ? 'checked' : null , ['class' => 'custom-control-input' , 'id' => 'client_and_driver']) !!}
{!! Form::radio('gift_type','points', isset($lucky_box) && $lucky_box->gift_type =='points' ? 'checked' : null , ['class' => 'custom-control-input' , 'id' => 'points' ,'onchange' => 'setGiftType(this.value)']) !!}
{!! Form::radio('gift_type','balance', isset($lucky_box) && $lucky_box->gift_type =='balance' ? 'checked' : null , ['class' => 'custom-control-input' , 'id' => 'balance' , 'onchange' => 'setGiftType(this.value)']) !!}
@if (isset($lucky_box) && $lucky_box->gift_type == 'points')
{!! Form::text('points', null , ['class' => "touchspin"]) !!}
@elseif (isset($lucky_box) && $lucky_box->gift_type == 'balance')
{!! Form::text('balance', null , ['class' => "touchspin" ,'data-bts-step' => "0.1" ,'data-bts-decimals' => "2"]) !!}
@endif
@if (isset($lucky_box) && $lucky_box->image) @else @endif
@section('vendor_styles') @endsection @section('page_styles') @endsection @section('vendor_scripts') @endsection @section('page_scripts') @endsection