@extends('admin.layouts.container')

@section('content')
    <div class="side-title">
        <h3>{{ $head }}</h3>

    </div>


    <div class="border-item">


        <form class="form-row" enctype="multipart/form-data" >

            <div class="form-group col-lg-6">
                <label>{{  __('web.name') }}  </label>
                <input type="text" class="form-control " disabled value='{{  $demand->name  }}'/>
            </div>
            <div class="form-group col-lg-6">
                <label>{{  __('web.email') }}  </label>
                <input type="text" class="form-control " disabled value='{{  $demand->email  }}'/>
            </div>
            <div class="form-group col-lg-6">
                <label>{{  __('web.phone') }}  </label>
                <input type="text" class="form-control " disabled value='{{  $demand->phone  }}'/>
            </div>
            <div class="form-group col-lg-6">
                <label>{{  __('web.gender') }}  </label>
                <input type="text" class="form-control " disabled value='{{ __('web.'.$demand->gender)  }}'/>
            </div>
            <div class="form-group col-lg-6">
                <label>{{  __('web.age') }}  </label>
                <input type="text" class="form-control " disabled value='{{  $demand->age }}'/>
            </div>
            <div class="form-group col-lg-6">
                <label>{{  __('web.date_of_birth') }}  </label>
                <input type="text" class="form-control " disabled value='{{  $demand->date_of_birth }}'/>
            </div>
            <div class="form-group col-lg-6">
                <label>{{  __('web.national_id') }}  </label>
                <input type="text" class="form-control " disabled value='{{  $demand->national_id }}'/>
            </div>
            <div class="form-group col-lg-6">
                <label>{{  __('web.nationality') }}  </label>
                <input type="text" class="form-control " disabled value='{{  $demand->nationality }}'/>
            </div>
            <div class="form-group col-lg-6">
                <label>{{  __('web.marital') }}  </label>
                <input type="text" class="form-control " disabled value='{{  __('web.'.$demand->marital) }}'/>
            </div>
            <div class="form-group col-lg-6">
                <label>{{  __('web.district') }}  </label>
                <input type="text" class="form-control " disabled value='{{  $demand->district }}'/>
            </div>
            <div class="form-group col-lg-6">
                <label>{{  __('web.study_level') }}  </label>
                <input type="text" class="form-control " disabled value='{{  $demand->study_level }}'/>
            </div>
            <div class="form-group col-lg-6">
                <label>{{  __('web.words_work_experience') }}  </label>
                <input type="text" class="form-control " disabled value='{{  $demand->words_work_experience }}'/>
            </div>
            <div class="form-group col-lg-6">
                <label>{{  __('web.goal_year') }}  </label>
                <input type="text" class="form-control " disabled value='{{  $demand->goal_year }}'/>
            </div>
            <div class="form-group col-lg-6">
                <label>{{  __('web.work_experience') }}  </label>
                <input type="text" class="form-control " disabled value='{{  $demand->work_experience }}'/>
            </div>
            <div class="form-group col-lg-6">
                <label>{{  __('web.subject_training_session') }}  </label>
                <input type="text" class="form-control " disabled value='{{  $demand->subject_training_session }}'/>
            </div>
            <div class="form-group col-lg-6">
                <label>{{  __('web.training_session') }}  </label>
                <input type="text" class="form-control " disabled value='{{  $demand->training_session }}'/>
            </div>
            <div class="form-group col-lg-6">
                <label>{{  __('web.pros_cons') }}  </label>
                <input type="text" class="form-control " disabled value='{{  $demand->pros_cons }}'/>
            </div>
            <div class="form-group col-lg-6">
                <label>{{  __('web.social_problem') }}  </label>
                <input type="text" class="form-control " disabled value='{{  $demand->social_problem }}'/>
            </div>
            <div class="form-group col-lg-6">
                <label>{{  __('web.volunteered') }}  </label>
                <input type="text" class="form-control " disabled value='{{  $demand->volunteered }}'/>
            </div>
            <div class="form-group col-lg-6">
                <label>{{  __('web.attend_programs_training') }}  </label>
                <input type="text" class="form-control " disabled value='{{  $demand->attend_programs_training }}'/>
            </div>
            <div class="form-group col-lg-6">
                <label>{{  __('web.courses_nesma') }}  </label>
                <input type="text" class="form-control " disabled value='{{  $demand->courses_nesma }}'/>
            </div>
            <div class="form-group col-lg-6">
                <label>{{  __('web.know_nesma_training') }}  </label>
                <input type="text" class="form-control " disabled value='{{  $demand->know_nesma_training }}'/>
            </div>
            <div class="form-group col-lg-6">
                <label>{{  __('web.course_id') }}  </label>
                <input type="text" class="form-control " disabled value='{{  $demand->course->descriptions()->name }}'/>
            </div>
            <div class="form-group col-lg-6">
                <label>{{  __('web.user') }}  </label>
                <input type="text" class="form-control " disabled value='{{  $demand->user->name }}'/>
            </div>

            <div class="form-group mt-5 col-12 row">
                <div class="form-group col-lg-12">
                    <label>{{  __('demands.process') }}  </label>
                </div>
                @foreach($processes as $row)
                    <div class="form-group col-lg-6">
                        <input type="text" class="form-control " disabled value='{{  $row->process->descriptions()->name }}'/>
                    </div>
                @endforeach
            </div>
            <div class="text-center mt-5 col-12">
                <a href="{{asset($demand->cv)}}" target="_blank" class="butn"><span>{{ __('web.cv') }}</span></a>
            </div>


        </form>



    </div>

@endsection
@section('inner_js')
    <!-- Editor JS files -->
    {{--    <script src="{{ asset('/assets/admin/js/lib/tinymce.min.js') }}"></script>--}}
    <script src="//cdn.tinymce.com/4/tinymce.min.js"></script>
    <script>
        let route_prefix = "{{ url(config('lfm.prefix')) }}",
            url = "{{url('/')}}/",
            currentLanguage = "{{getCurrentLocale()}}",
            imagePath = "{{asset('')}}";
    </script>
    <script src="{{ asset('assets/admin/js/editor.js') }}"></script>
    <script src="{{ asset('assets/admin/js/lfm.js') }}"></script>
    <script src="{{ asset('assets/admin/js/articles.js') }}"></script>
@endsection
