@endif
{!! Form::open(['method' => 'PATCH', 'route' => ['save_student_info'], 'files' => true, 'id'=>"registration-form"]) !!}
{!! Form::hidden('course_id', Request::segment(3)) !!}
{!! Form::hidden('id', @$info->id) !!}
المعلومات الشخصية
{!! Form::text('national_number', @$info->national_number, ['class'=>'form-control', 'placeholder'=>'رقم السجل المدني', 'data-validation' => "required", 'data-validation-error-msg'=>"أدخل رقم السجل المدني"]) !!}
{!! Form::text('first_name_ar', @$info->first_name_ar, ['class'=>'form-control', 'placeholder'=>'الاسم الأول', 'data-validation' => "required", 'data-validation-error-msg'=>"أدخل الاسم الأول"]) !!}
{!! Form::text('father_name_ar', @$info->father_name_ar, ['class'=>'form-control', 'placeholder'=>'اسم الأب', 'data-validation' => "required", 'data-validation-error-msg'=>"أدخل اسم الأب"]) !!}
{!! Form::text('grandfa_name_ar', @$info->grandfa_name_ar, ['class'=>'form-control', 'placeholder'=>'اسم الجد', 'data-validation' => "required", 'data-validation-error-msg'=>"أدخل اسم الجد"]) !!}
{!! Form::text('last_name_ar', @$info->last_name_ar, ['class'=>'form-control', 'placeholder'=>'اسم العائلة', 'data-validation' => "required", 'data-validation-error-msg'=>"أدخل اسم العائلة"]) !!}
{!! Form::text('last_name_en', @$info->last_name_en, ['class'=>'form-control', 'placeholder'=>'Surname']) !!}
{!! Form::text('grandfa_name_en', @$info->grandfa_name_en, ['class'=>'form-control', 'placeholder'=>'Grandfather\'s Name']) !!}
{!! Form::text('father_name_en', @$info->father_name_en, ['class'=>'form-control', 'placeholder'=>'Father\'s Name']) !!}
{!! Form::text('first_name_en', @$info->first_name_en, ['class'=>'form-control', 'placeholder'=>'First Name']) !!}
{!! Form::radio('gender', '1', ((@$info->gender == 1)? true : ''), ['id' => 'gender_male']); !!}
{!! Form::radio('gender', '2', ((@$info->gender == 2)? true : ''), ['id' => 'gender_female']); !!}
{!! Form::text('nationality', @$info->nationality, ['class'=>'form-control', 'placeholder'=>'الجنسية']) !!}
{!! Form::text('birthday', @$info->birthday, ['class'=>'form-control', 'placeholder'=>'تاريخ الميلاد DD-MM-YYYY']) !!}
{!! Form::text('email', (empty($info->email)? Auth::user()->email : @$info->email), ['class'=>'form-control', 'placeholder'=>'البريد الإلكتروني']) !!}
{!! Form::text('phone', (empty($info->phone)? Auth::user()->phone : @$info->phone), ['class'=>'form-control', 'placeholder'=>'رقم الهاتف']) !!}
{!! Form::text('address', @$info->address, ['class'=>'form-control', 'placeholder'=>'العنوان']) !!}
المؤهلات العلمية
{!! Form::text('education', @$info->education, ['class'=>'form-control', 'placeholder'=>'المؤهل']) !!}
{!! Form::text('degree', @$info->degree, ['class'=>'form-control', 'placeholder'=>'التخصص']) !!}
{!! Form::text('uni_name', @$info->uni_name, ['class'=>'form-control', 'placeholder'=>'اسم الجهة الدراسية (الكلية / الجامعة)']) !!}
{!! Form::text('appreciation', @$info->appreciation, ['class'=>'form-control', 'placeholder'=>'التقدير']) !!}
العمل الحالي
{!! Form::text('job', @$info->job, ['class'=>'form-control', 'placeholder'=>'جهة العمل']) !!}
{!! Form::text('position', @$info->position, ['class'=>'form-control', 'placeholder'=>'المسمى الوظيفي']) !!}
{!! Form::text('section', @$info->section, ['class'=>'form-control', 'placeholder'=>'القسم / الإدارة']) !!}
{!! Form::text('experance', @$info->experance, ['class'=>'form-control', 'placeholder'=>'عدد سنوات الخبرة']) !!}
دورات سابقة
{!! Form::radio('get_course_befor', '0', @$info->get_course_befor, ['id' => 'get_course_no', 'checked']); !!}
{!! Form::radio('get_course_befor', '1', @$info->get_course_befor, ['id' => 'get_course_yes']); !!}
@php
$got_courses = json_decode(@$info->got_courses);
if(empty($got_courses))
$got_courses = array(array('','','',''));
$count = 0;
@endphp
@foreach($got_courses as $got_course)
{!! Form::text('got_courses['.$count.'][]', $got_course[0], ['class'=>'form-control', 'placeholder'=>'اسم البرنامج خلال السنتين الأخيرة']) !!}
{!! Form::text('got_courses['.$count.'][]', $got_course[1], ['class'=>'form-control', 'placeholder'=>'مدة التدريب']) !!}
{!! Form::text('got_courses['.$count.'][]', $got_course[2], ['class'=>'form-control', 'placeholder'=>'بدايته']) !!}
{!! Form::text('got_courses['.$count.'][]', $got_course[3], ['class'=>'form-control', 'placeholder'=>'مكان وجهة التدريب']) !!}
@php
$count++;
@endphp
@endforeach
{!! Form::radio('how_to_know', 1, ((@$info->how_to_know == 1)? true : ''), ['id' => 'how_to_know1']); !!}
{!! Form::radio('how_to_know', 2, ((@$info->how_to_know == 2)? true : ''), ['id' => 'how_to_know2']); !!}
{!! Form::radio('how_to_know', 3, ((@$info->how_to_know == 3)? true : ''), ['id' => 'how_to_know3']); !!}
{!! Form::radio('how_to_know', 4, ((@$info->how_to_know == 4)? true : ''), ['id' => 'how_to_know4']); !!}
{!! Form::radio('how_to_know', 5, ((@$info->how_to_know == 5)? true : ''), ['id' => 'how_to_know5']); !!}
@php
$how_to_know_other = (!is_numeric(@$info->how_to_know) && !is_null(@$info->how_to_know))? true : false;
@endphp
{!! Form::radio('how_to_know', 6,((@$info->how_to_know == 6 || $how_to_know_other)? true : ''), ['id' => 'how_to_know6']); !!}
{!! Form::text('how_to_know_text', (($how_to_know_other)? @$info->how_to_know : ''), ['class'=>'form-control', 'placeholder'=>'ما هو؟']) !!}