@extends('layouts.app') @section('title', 'Profilim') @section('page-title', 'Profilim') @section('content') {{-- Profile Header --}}
{{ strtoupper(mb_substr($student?->first_name ?? $user->first_name, 0, 1)) }}{{ strtoupper(mb_substr($student?->last_name ?? $user->last_name, 0, 1)) }}

{{ $student?->full_name ?? $user->full_name }}

{{ $student?->student_number ?? $user->student_number }} @if($student?->status_text) {{ $student->status_text }} @endif
{{-- Tab Navigation --}} @php $activeTab = request()->query('tab', 'general'); @endphp
Genel Bilgiler Kimlik Iletisim Saglik Ogrenim
{{-- TAB 1: Genel Bilgiler --}} @if($activeTab === 'general')
{{-- Kisisel Bilgiler --}}

Kisisel Bilgiler

@php $personalInfo = [ ['label' => 'Ad Soyad', 'value' => $student?->full_name ?? $user->full_name], ['label' => 'Ogrenci No', 'value' => $student?->student_number ?? $user->student_number], ['label' => 'Dogum Tarihi', 'value' => $student?->birth_date?->format('d.m.Y') ?? '-'], ['label' => 'Dogum Yeri', 'value' => $student?->birth_place ?? '-'], ['label' => 'Cinsiyet', 'value' => $student?->gender_text ?? '-'], ['label' => 'Din', 'value' => $student?->religion ?? '-'], ]; @endphp @foreach($personalInfo as $i => $info)
{{ $info['label'] }} {{ $info['value'] }}
@endforeach
{{-- Adres Bilgileri --}}

Adres Bilgileri

@php $addressInfo = [ ['label' => 'Ulke', 'value' => $student?->country ?? '-'], ['label' => 'Sehir', 'value' => $student?->city ?? '-'], ['label' => 'Adres', 'value' => $student?->address ?? '-'], ]; @endphp @foreach($addressInfo as $i => $info)
{{ $info['label'] }} {{ $info['value'] }}
@endforeach
@endif {{-- TAB 2: Kimlik --}} @if($activeTab === 'identity')
{{-- Kimlik Bilgileri --}}

Kimlik Bilgileri

@php $identityInfo = [ ['label' => 'Uyruk', 'value' => $student?->nationality_text ?? '-'], ]; if ($student?->tc_kimlik_no) { $identityInfo[] = ['label' => 'TC Kimlik No', 'value' => $student->tc_kimlik_no]; } if ($student?->kktc_kimlik_no) { $identityInfo[] = ['label' => 'KKTC Kimlik No', 'value' => $student->kktc_kimlik_no]; } if ($student?->passport_no) { $identityInfo[] = ['label' => 'Pasaport No', 'value' => $student->passport_no]; } @endphp @foreach($identityInfo as $i => $info)
{{ $info['label'] }} {{ $info['value'] }}
@endforeach @if(!$student?->tc_kimlik_no && !$student?->kktc_kimlik_no && !$student?->passport_no)
Kimlik No Bilgi girilmemis
@endif
{{-- Aile Bilgileri --}}

Aile Bilgileri

@php $familyInfo = [ ['label' => 'Baba Adi', 'value' => $student?->father_name ?? '-'], ['label' => 'Baba Soyadi', 'value' => $student?->father_surname ?? '-'], ['label' => 'Anne Adi', 'value' => $student?->mother_name ?? '-'], ['label' => 'Anne Soyadi', 'value' => $student?->mother_surname ?? '-'], ]; @endphp @foreach($familyInfo as $i => $info)
{{ $info['label'] }} {{ $info['value'] }}
@endforeach
@endif {{-- TAB 3: Iletisim --}} @if($activeTab === 'contact')
{{-- Iletisim Bilgileri --}}

Iletisim Bilgileri

@php $contactInfo = [ ['label' => 'Telefon', 'value' => $student?->phone_number ?? $user->phone_number ?? '-'], ['label' => 'WhatsApp', 'value' => $student?->whatsapp_number ?? '-'], ['label' => 'E-posta', 'value' => $student?->email ?? $user->email ?? '-'], ]; @endphp @foreach($contactInfo as $i => $info)
{{ $info['label'] }} {{ $info['value'] }}
@endforeach
{{-- Acil Durum Iletisim --}}

Acil Durum Iletisim

@php $emergencyInfo = [ ['label' => 'Veli/Yakin Adi', 'value' => $student?->emergency_contact_name ?? '-'], ['label' => 'Veli/Yakin Telefonu', 'value' => $student?->emergency_contact_phone ?? '-'], ['label' => 'Yakinlik Derecesi', 'value' => $student?->emergency_contact_relation ?? '-'], ]; @endphp @foreach($emergencyInfo as $i => $info)
{{ $info['label'] }} {{ $info['value'] }}
@endforeach
@endif {{-- TAB 4: Saglik --}} @if($activeTab === 'health')
{{-- Genel Saglik --}}

Genel Saglik

{{-- Sigara --}}
Sigara Kullanimi @if($student?->is_smoker) Evet @else Hayir @endif
{{-- Saglik Sorunu --}}
Saglik Sorunu @if($student?->has_health_issue) Var @else Yok @endif
@if($student?->has_health_issue && $student->health_issue_details)

{{ $student->health_issue_details }}

@endif
{{-- Engellilik Durumu --}}

Engellilik Durumu

Engellilik Durumu @if($student?->has_disability) Var @else Yok @endif
@if($student?->has_disability && $student->disability_details)

{{ $student->disability_details }}

@endif
@endif {{-- TAB 5: Ogrenim --}} @if($activeTab === 'education')
{{-- Universite Bilgileri --}}

Universite Bilgileri

@php $uniInfo = [ ['label' => 'Universite', 'value' => $student?->university_name ?? '-'], ['label' => 'Fakulte', 'value' => $student?->faculty ?? '-'], ['label' => 'Bolum', 'value' => $student?->department ?? '-'], ['label' => 'Sinif', 'value' => $student?->grade_text ?? '-'], ['label' => 'Okul Baslangic Yili', 'value' => $student?->school_start_year ?? '-'], ]; @endphp @foreach($uniInfo as $i => $info)
{{ $info['label'] }} {{ $info['value'] }}
@endforeach
{{-- Kayit Bilgileri --}}

Kayit Bilgileri

@php $regInfo = [ ['label' => 'Kayit Donemi', 'value' => $student?->registration_term_text ?? '-'], ['label' => 'Kayit Tarihi', 'value' => $student?->registration_date?->format('d.m.Y') ?? '-'], ['label' => 'Durum', 'value' => $student?->status_text ?? '-'], ]; if ($student?->leave_date) { $regInfo[] = ['label' => 'Ayrilma Tarihi', 'value' => $student->leave_date->format('d.m.Y')]; } if ($student?->notes) { $regInfo[] = ['label' => 'Notlar', 'value' => $student->notes]; } @endphp @foreach($regInfo as $i => $info)
{{ $info['label'] }} {{ $info['value'] }}
@endforeach
@endif @endsection