@extends('layouts.app') @section('content')
@if (session('status'))เพศ: {{ $student->gender ?? '-' }}
วันเกิด: {{ optional($student->birth_date)->format('Y-m-d') ?? '-' }}
โทรศัพท์: {{ $student->phone ?? '-' }}
ที่อยู่: {{ $student->address ?? '-' }}
ห้องเรียน: @forelse ($student->classrooms as $classroom) {{ $classroom->name }} {{ $classroom->academicYear->label ?? '' }} @empty - @endforelse