@php // if ($education == 0) { // $user_education_id = ''; // $user_user_id = ''; // $user_education_degree = ''; // $user_education_major = ''; // $user_education_institution = ''; // $user_education_year_enr = ''; // $user_education_year_grad = ''; // $user_education_gpa = ''; // } else { // $user_education_id = $education->user_education_id; // $user_user_id = $education->user_user_id; // $user_education_degree = $education->user_education_degree; // $user_education_major = $education->user_education_major; // $user_education_institution = $education->user_education_institution; // $user_education_year_enr = $education->user_education_year_enr; // $user_education_year_grad = $education->user_education_year_grad; // $user_education_gpa = $education->user_education_gpa; // } @endphp @extends('layouts.master') @section('title', 'Education Add/Edit') @section('style') @endsection @section('script') @endsection @section('content') @include('layouts.header') @include('layouts.header-sub') @yield('title') @csrf Select Degree* @foreach ($degrees as $d) user_education_degree ?? '') == $d->degree_id ? 'selected' : '' }}> {{ $d->degree_name_en }} @endforeach Major/Field of Study* GPA* Institution* -- Select Year -- @for ($year = date('Y') + 5; $year >= 1900; $year--) user_education_year_enr) == $year ? 'selected' : '' }}> {{ $year }} @endfor Year of Enrollment* -- Select Year -- @for ($year = date('Y') + 5; $year >= 1900; $year--) user_education_year_grad) == $year ? 'selected' : '' }}> {{ $year }} @endfor Year of Graduation* Select Country* @foreach ($country as $n) user_education_country_id ?? '') == $n->country_id ? 'selected' : '' }}> {{ $n->country_name }} @endforeach Back @include('layouts.footer') @endsection