@extends('backend.layouts.app') @section('title', __('labels.backend.rates.division.edit') . ' | ' . app_name()) @push('after-styles') @endpush @section('content') {!! Form::model($division, ['method' => 'PUT', 'route' => ['admin.groups.rate.division.update', "division"=> $division->id],'files' =>true]) !!}

@lang('labels.backend.rates.division.edit')

{{-- rate title --}}
{{ html()->label(__('labels.backend.impact.fields.impact_title_ar'))->class('col-md-2 form-control-label')->for('impact_title') }}
{!! Form::text('title_ar', old('title_ar'), ['class' => 'form-control', 'placeholder' => trans('labels.backend.tests.fields.title_ar')]) !!}
{{-- --}}
{{ html()->label(__('labels.backend.impact.fields.impact_title'))->class('col-md-2 form-control-label')->for('rate_title_ar') }}
{!! Form::text('title', old('title'), ['class' => 'form-control', 'placeholder' => trans('labels.backend.tests.fields.title')]) !!}
{{-- --}}
@if (is_object($questions) && sizeof($questions) > 0) @foreach ($questions as $key => $question)
@switch($question->question_type) @case('rate') @case('paragraph') @break @case('file_upload') @break @case('date') @break @case('time') @break @case('multiple_choice') @case('drop_down')
{{ trans('labels.backend.questions.fields.options') }}
{{-- {{ dd($question->options) }} --}} @foreach ($question->options as $option_key => $option)
@if($option_key>1) @endif
correct == 1) checked @endif name="q[{{$key}}][correct][{{$option_key}}]" type="checkbox" value=1>
@endforeach
@break @case('radio') @break @default: @endswitch
@endforeach @endif
{!! Form::hidden('published', 0) !!} {!! Form::checkbox('published', 1, old('published'), []) !!} {!! Form::label('published', trans('labels.backend.tests.fields.published'), ['class' => 'control-label font-weight-bold']) !!}
{{-- --}}
{{ form_cancel(route('admin.group.rates'), __('buttons.general.cancel')) }}
{{ html()->form()->close() }} @endsection @push('after-scripts') @endpush