@php if (empty($student)) { $student_id = ''; // $student_userid = ''; $student_code = ''; $student_name = ''; $student_firstname = ''; $student_lastname = ''; $student_curriculum = ''; $student_type = ''; $student_school = ''; $student_nationality = ''; $student_advisor = ''; $student_degree = ''; $student_email = ''; $student_academicstatus = ''; $student_end_date_student_status_siit = ''; $student_end_date_student_status = ''; $student_academicyear = ''; $student_start_year = ''; $student_end_year = ''; $student_semester_from = ''; $student_semester_to = ''; $student_scholarship_program = ''; $student_scholarship_status = ''; $student_agreement_no = ''; $student_agreement_date = ''; $student_guarantor_firstname = ''; $student_guarantor_lastname = ''; $student_guarantor_email = ''; $student_debt_status = ''; $student_outstanding_balance = ''; $student_outstanding_balance_payment = ''; $student_remark = ''; // $student_status = ''; } else { $student_id = $student->student_id; // $student_userid = $student->student_userid; $student_code = $student->student_code; $student_name = $student->student_name; $student_firstname = $student->student_firstname; $student_lastname = $student->student_lastname; $student_curriculum = $student->student_curriculum; $student_type = $student->student_type; $student_school = $student->student_school; $student_degree = $student->student_degree; $student_email = $student->student_email; $student_advisor = $student->student_advisor; $student_academicstatus = $student->student_academicstatus; $student_end_date_student_status_siit = $student->student_end_date_student_status_siit; $student_end_date_student_status = $student->student_end_date_student_status; $student_academicyear = $student->student_academicyear; $student_start_year = $student->student_start_year; $student_end_year = $student->student_end_year; $student_semester_from = $student->student_semester_from; $student_semester_to = $student->student_semester_to; $student_scholarship_program = $student->student_scholarship_program; $student_scholarship_status = $student->student_scholarship_status; $student_agreement_no = $student->student_agreement_no; $student_agreement_date = $student->student_agreement_date; $student_guarantor_firstname = $student->student_guarantor_firstname; $student_guarantor_lastname = $student->student_guarantor_lastname; $student_guarantor_email = $student->student_guarantor_email; $student_debt_status = $student->student_debt_status; $student_outstanding_balance = $student->student_outstanding_balance; $student_outstanding_balance_payment = $student->student_outstanding_balance_payment; $student_remark = $student->student_remark; $student_nationality = $student->student_nationality ?? null; // $student_status = $student->student_status; } @endphp @extends('layouts.master') @section('title', 'Student Add/Edit') @section('style') @endsection @section('script') @endsection @section('content') @include('layouts.header') {{--

Student Add/Edit

--}} @include('layouts.title')
Student Add/Edit
@csrf {{-- --}}
{{-- --}}
@php // แปลง student_type เป็นอาร์เรย์ $studentTypes = explode(',', $student->student_type ?? ''); // แปลง student_scholarship_program เป็นอาร์เรย์ หากเป็น null จะให้เป็นอาร์เรย์ว่าง $studentScholarshipPrograms = explode( ',', $student->student_scholarship_program ?? '', ); $typeNames = $type ->whereIn('type_id', $studentTypes) ->pluck('type_name_en') ->implode(', '); @endphp
{{--
--}}
{{-- --}}
THB


* These fields are required.
@include('layouts.footer') @endsection