@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
{{--
--}}
{{--
--}}
* These fields are required.