@section('script') @endsection
@csrf @php $form = config('admin.settings.riddle')@endphp
Main Game: Daily Riddle
@component('admin.components.card', ['header'=> 'Gameplay Logic','help'=>'main_game_riddle' ] )
@component('admin.components.card', ['header'=> 'Correct Answer', 'class'=>'bg-success shadow-none'] ) @php $id = 'win_title'; $hasError = $errors->has($id) @endphp @component('admin.components.form_field_100', ['label'=>$form[$id]['label'], 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ]) @component('admin.components.form_error_msg', ['hasError'=>$hasError]){{ $errors->first($id) }}@endcomponent @endcomponent @php $id = 'win_subtitle'; $hasError = $errors->has($id) @endphp @component('admin.components.form_field_100', ['label'=>$form[$id]['label'], 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ]) @component('admin.components.form_error_msg', ['hasError'=>$hasError]){{ $errors->first($id) }}@endcomponent @endcomponent @php $id = 'win_points_max'; $hasError = $errors->has($id) @endphp @component('admin.components.form_field_50', ['label'=>$form[$id]['label'], 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ]) @component('admin.components.form_error_msg', ['hasError'=>$hasError]){{ $errors->first($id) }}@endcomponent @endcomponent @php $id = 'win_points_min'; $hasError = $errors->has($id) @endphp @component('admin.components.form_field_50', ['label'=>$form[$id]['label'], 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ]) @component('admin.components.form_error_msg', ['hasError'=>$hasError]){{ $errors->first($id) }}@endcomponent @endcomponent @php $id = 'win_points'; $hasError = $errors->has($id) @endphp @component('admin.components.form_field', ['class'=>'col-12 d-none','label'=>$form[$id]['label'], 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ]) @component('admin.components.form_error_msg', ['hasError'=>$hasError]){{ $errors->first($id) }}@endcomponent @endcomponent @php $id = 'win_points_randomize'; $hasError = $errors->has($id) @endphp @component('admin.components.form_field_100', ['label'=>'', 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ])
@component('admin.components.form_error_msg', ['hasError'=>$hasError]){{ $errors->first($id) }}@endcomponent @endcomponent @endcomponent
@component('admin.components.card', ['header'=> 'Incorrect Answer', 'class'=>'bg-danger shadow-none'] ) @php $id = 'lose_points'; $hasError = $errors->has($id) @endphp @component('admin.components.form_field_100', ['label'=>$form[$id]['label'], 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ]) @component('admin.components.form_error_msg', ['hasError'=>$hasError]){{ $errors->first($id) }}@endcomponent @endcomponent @endcomponent
@php $id = 'qns_per_day'; $hasError = $errors->has($id) @endphp @component('admin.components.form_field_100', ['label'=>$form[$id]['label'], 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ]) @component('admin.components.form_error_msg', ['hasError'=>$hasError]){{ $errors->first($id) }}@endcomponent @endcomponent @php $id = 'randomize_qns'; $hasError = $errors->has($id) @endphp @component('admin.components.form_field_100', ['label'=>'', 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ])
@component('admin.components.form_error_msg', ['hasError'=>$hasError]){{ $errors->first($id) }}@endcomponent @endcomponent
@endcomponent @component('admin.components.card', ['header'=> 'Question Bank', 'table'=>true] ) @slot('header') Question Bank New Qns @endslot
@endcomponent
@component('components.utility.template_popup', ['id' => 'modal_qns', 'custom_dialog_class' => 'modal-md']) @slot('slot_header') @endslot @slot('slot')
@php $id = 'new_qns'; $hasError = $errors->has($id) @endphp @component('admin.components.form_field', ['class'=>'text-left col-md-12','label'=>$form[$id]['label'], 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ]) @component('admin.components.form_error_msg', ['hasError'=>$hasError]){{ $errors->first($id) }}@endcomponent @endcomponent
@php $id = 'options'; $hasError = $errors->has($id) @endphp @component('admin.components.form_field', ['class'=>' text-left','label'=>$form[$id]['label'], 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ]) @php $id = 'new_opt'; $hasError = $errors->has($id) @endphp @component('admin.components.form_field', ['class'=>'input-qns-wrapper text-left','label'=>$form[$id]['label'], 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ]) @php $i = 0 @endphp @for($i = 0; $i < 2; $i++)
{{-- @component('admin.components.form_error_msg', ['hasError'=>$hasError]){{ $errors->first($id) }}@endcomponent--}} @endfor @endcomponent @endcomponent New Option
@endslot @slot('slot_footer') {{--
--}} {{-- @csrf--}} {{-- {!! @method_field('delete') !!}--}}
{{-- --}}
@endslot @endcomponent @component('components.utility.template_popup', ['id' => 'modal_qns_delete', 'custom_dialog_class' => 'modal-sm']) @slot('slot_header') @endslot @slot('slot')
Are you sure to delete this question?
@endslot @slot('slot_footer') {{--
--}} {{-- @csrf--}} {{-- {!! @method_field('delete') !!}--}}
{{--
--}} @endslot @endcomponent