@php $currencies = \App\Models\Settings\Currency::all(); @endphp
{{-- Card Header --}}

Danışan Bilgileri

{{-- Card Content --}}
{{-- Left Column --}}
{{-- Full Name --}}

Ad Soyad

{{ $patient->first_name . ' ' . $patient->last_name }}

{{-- TC Kimlik No --}} @if ($patient->tc_kimlik_no)

TC Kimlik No

{{ $patient->tc_kimlik_no }}

@endif {{-- Phone Number --}} @if ($patient->phone_number) @endif
{{-- Middle Column --}}
{{-- Email --}} @if ($patient->email) @endif {{-- Date of Birth and Age --}} @if ($patient->date_of_birth)
@php $birthDate = \Carbon\Carbon::parse($patient->date_of_birth); $age = $birthDate->age; @endphp

Doğum Tarihi / Yaş

{{ $birthDate->format('d.m.Y') }} ({{ $age }} yaş)

@endif {{-- Gender --}} @if ($patient->gender)
@php $genderText = match ($patient->gender) { 'male' => 'Erkek', 'female' => 'Kadın', 'other' => 'Diğer', default => $patient->gender }; @endphp

Cinsiyet

{{ $genderText }}

@endif
{{-- Right Column - Dövizler --}}
@if($currencies->count())

Döviz Kurları

@foreach($currencies as $currency)
{{ $currency->code }} ({{ $currency->symbol }}) @if($currency->is_auto_rate) {{ number_format($currency->auto_rate, 6) }} @else {{ number_format($currency->exchange_rate, 6) }} @endif
@endforeach
@endif
{{-- Additional Info --}} @php $additionalInfo = []; if ($patient->blood_type) { $additionalInfo[] = 'Kan Grubu: ' . $patient->blood_type; } if ($patient->insurance_provider) { $additionalInfo[] = 'Sigorta: ' . $patient->insurance_provider; } if ($patient->has_chronic_conditions) { $additionalInfo[] = '⚠️ Kronik rahatsızlığı var'; } @endphp @if (!empty($additionalInfo))
@foreach ($additionalInfo as $info) {!! $info !!} @endforeach
@endif