@extends('theme::account.layout') @section('account_content') @include('theme::partials.account-deletion-confirm') @if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif @php $activeTab = (isset($needsVerification) && $needsVerification) ? 'guvenlik' : request('tab', 'kullanici'); $nameParts = preg_split('/\s+/', trim((string) ($user->name ?? '')), 2); $firstName = old('name', $nameParts[0] ?? ''); $surname = old('surname', $nameParts[1] ?? ''); $membershipType = old('membership_type', $user->membership_type ?: 'individual'); $requiredCorporateFields = collect(explode(',', (string) request('corporate_required'))) ->filter(fn ($field) => in_array($field, ['company_name', 'tax_office', 'tax_number'], true)) ->unique()->values(); $tcRequired = request('tc_required') === '1' || request('tc_required') === 'true' || (\App\Models\Setting::where('key', 'individual_tc_required')->value('value') === '1' && empty($user->tc_no) && !in_array($membershipType, ['corporate', 'b2b'], true)); $isCorporateAccount = in_array($membershipType, ['corporate', 'b2b'], true) || filled($user->company_name) || filled($user->tax_office) || filled($user->tax_number); @endphp
@if(isset($needsVerification) && $needsVerification) {{ __('account.security_operations') ?? 'Güvenlik İşlemleri' }} @else {{ __('account.user_info') ?? 'Kullanıcı Bilgilerim' }} {{ __('account.security_operations') ?? 'Güvenlik İşlemleri' }} {{ __('account.saved_cards') ?? 'Kayıtlı Kartlarım' }} {{ __('account.my_addresses') ?? 'Adreslerim' }} {{ __('account.iban_info') ?? 'IBAN Bilgilerim' }} {{ __('account.communication_preferences') ?? 'İletişim Tercihlerim' }} @endif
@if($requiredCorporateFields->isNotEmpty())
Siparişe devam etmek için kurumsal bilgilerinizi tamamlayın.

Kırmızı işaretli alanların doldurulması zorunludur.

@endif @if($tcRequired && empty($user->tc_no))
Fatura bilgileriniz eksik!

Sipariş verebilmek ve adınıza resmi fatura düzenlenebilmesi için lütfen 11 haneli T.C. Kimlik Numaranızı giriniz.

@endif
@csrf
{{ __('account.membership_type') ?? 'Üyelik Türü' }}
contains('company_name')) class="w-full border rounded px-4 py-2.5 text-sm outline-none pl-10 {{ $requiredCorporateFields->contains('company_name') ? 'border-red-500 bg-red-50 focus:border-red-600 focus:ring-red-200' : 'border-gray-300 focus:border-blue-500' }}">
contains('tax_office')) class="w-full border rounded px-4 py-2.5 text-sm outline-none pl-10 {{ $requiredCorporateFields->contains('tax_office') ? 'border-red-500 bg-red-50 focus:border-red-600 focus:ring-red-200' : 'border-gray-300 focus:border-blue-500' }}">
contains('tax_number')) class="w-full border rounded px-4 py-2.5 text-sm outline-none pl-10 {{ $requiredCorporateFields->contains('tax_number') ? 'border-red-500 bg-red-50 focus:border-red-600 focus:ring-red-200' : 'border-gray-300 focus:border-blue-500' }}">
tc_no)) ? 'autofocus' : '' }}>
@if(isset($needsVerification) && $needsVerification)

Hesap güvenliğiniz için doğrulama yapmanız gerekmektedir. İşlemlere devam edebilmek için lütfen aşağıdaki adımları tamamlayın.

@if(isset($needsSms) && $needsSms)

SMS Doğrulaması

@if(!$user->phone)

Kayıtlı bir telefon numaranız bulunmuyor. Lütfen bir numara ekleyin.

@else

{{ $user->phone }} numaralı telefonunuza doğrulama kodu gönderilecektir.

@endif
@csrf
@if($user->phone)
@csrf
@csrf
@endif
@endif @if(isset($needsEmail) && $needsEmail)

E-posta Doğrulaması

@if(!$user->email)

Kayıtlı bir e-posta adresiniz bulunmuyor. Lütfen bir adres ekleyin.

@else

{{ $user->email }} adresinize doğrulama kodu gönderilecektir.

@endif
@csrf
@if($user->email)
@csrf
@csrf
@endif
@endif
@else

{{ __('account.change_password_title') ?? 'Şifre Değiştir' }}

@csrf

{{ __('account.google_2fa') ?? 'Google İki Adımlı Doğrulama (2FA)' }}

{{ __('account.google_2fa_desc') ?? 'Hesap güvenliğinizi artırmak için Google Authenticator uygulamasını kullanabilirsiniz. Bu özellik sayesinde şifreniz çalınsa bile hesabınıza giriş yapılamaz.' }}

@if(auth()->user()->google2fa_active)
Google 2FA başarıyla aktifleştirildi ve hesabınız güvende!
@csrf
@elseif(session('show_2fa_setup') && session('google2fa_secret_temp')) @php $siteName = \App\Models\Store::getSetting('site_name') ?? config('app.name'); $google2faUrl = app('pragmarx.google2fa')->getQRCodeUrl($siteName, auth()->user()->email, session('google2fa_secret_temp')); @endphp
QR Code

{{ __('account.manual_setup_key') ?? 'Manuel Kurulum Anahtarı:' }}

{{ session('google2fa_secret_temp') }}
@csrf
@error('totp_code') {{ $message }} @enderror
@else @endif
@php $mobileAppModuleActive = $mobileAppModuleActive ?? (file_exists(base_path('Plugins/MobileApp/plugin.json')) && app(\App\Services\PluginManager::class)->isActive('MobileApp')); $passkeyModuleActive = $passkeyModuleActive ?? (file_exists(base_path('Plugins/Passkey/plugin.json')) && app(\App\Services\PluginManager::class)->isActive('Passkey')); $hasMobileVerificationDevice = auth()->user()->mobileDeviceTokens()->where('is_active', true)->where('supports_login_approval', true)->exists(); $mobileVerificationEnabled = (bool) (auth()->user()->mobile_login_approval_enabled ?? true); $footerMobileAppsRaw = \App\Models\Store::getSetting('theme_footer_mobile_app_links'); $footerMobileAppsSaved = is_array($footerMobileAppsRaw) ? $footerMobileAppsRaw : ($footerMobileAppsRaw ? json_decode($footerMobileAppsRaw, true) : []); $googlePlayUrl = \App\Models\Store::getSetting('mobile_app_google_play_url'); $appStoreUrl = \App\Models\Store::getSetting('mobile_app_app_store_url'); $appGalleryUrl = \App\Models\Store::getSetting('mobile_app_app_gallery_url'); $footerMobileAppDefaults = [ 'google_play' => ['label' => 'Google Play', 'eyebrow' => 'GET IT ON', 'url' => $googlePlayUrl ?: '', 'enabled' => !empty($googlePlayUrl)], 'app_store' => ['label' => 'App Store', 'eyebrow' => 'DOWNLOAD ON THE', 'url' => $appStoreUrl ?: '', 'enabled' => !empty($appStoreUrl)], 'app_gallery' => ['label' => 'AppGallery', 'eyebrow' => 'EXPLORE IT ON', 'url' => $appGalleryUrl ?: '', 'enabled' => !empty($appGalleryUrl)], ]; $mobileVerificationApps = collect($footerMobileAppDefaults)->map(function ($default, $platform) use ($footerMobileAppsSaved) { $saved = collect($footerMobileAppsSaved)->firstWhere('platform', $platform) ?: []; $merged = array_merge($default, $saved, ['platform' => $platform]); if (!empty($default['url'])) { $merged['url'] = $default['url']; $merged['enabled'] = true; } return $merged; })->filter(fn ($app) => filter_var($app['enabled'] ?? false, FILTER_VALIDATE_BOOLEAN) && !empty($app['url'])); @endphp @if($mobileAppModuleActive)

Mobil Giriş Doğrulaması

Yeni web girişlerini mobil cihazınızdan onaylayın.

@csrf

Şifreniz doğru girilse bile yeni web girişleri için mobil cihazınızdan onay ister.

@if($hasMobileVerificationDevice)
{{ $mobileVerificationEnabled ? 'Mobil doğrulama aktif. Yeni girişlerde telefonunuza onay bildirimi gönderilecek.' : 'Mobil doğrulama kapalı.' }}
@else
Özellik varsayılan olarak açıktır. Kullanabilmek için uygulamayı indirip hesabınıza en az bir kez giriş yapın.
@if($mobileVerificationApps->isNotEmpty()) @endif @endif
@endif
@if($passkeyModuleActive)

{{ __('security.passkeys') }}

{{ __('security.passkeys_desc') }}

@forelse($passkeys as $passkey)
@php $genericPasskeyNames = ['Bu cihaz', 'This device', 'Dieses Gerät', 'Cet appareil', 'Dit apparaat', 'Это устройство', 'هذا الجهاز', 'Αυτή η συσκευή']; @endphp
{{ !$passkey->name || in_array($passkey->name, $genericPasskeyNames, true) ? $currentPasskeyDeviceName : $passkey->name }}
{{ __('security.added') }} {{ $passkey->created_at?->translatedFormat('d M Y') }} {{ __('security.last_used') }} {{ ($passkey->last_used_at ?? $passkey->created_at)?->translatedFormat('d M Y') }}
@empty

{{ __('security.no_passkeys') }}

{{ \Illuminate\Support\Facades\Lang::has('security.empty_passkeys_description') ? __('security.empty_passkeys_description') : __('security.passkeys_desc') }}

@endforelse
@endif

{{ __('security.active_sessions') }}

@if($activeSessions->where('is_current', false)->isNotEmpty())
@csrf @method('DELETE')
@endif

{{ __('security.sessions_desc') }}

@foreach($activeSessions as $loginSession)
{{ $loginSession->device_name }} @if($loginSession->is_current) {{ __('security.this_device') }} @endif
@if($loginSession->location){{ $loginSession->location }}@endif {{ $loginSession->ip_address }} {{ $loginSession->is_current ? __('security.active_now') : \Carbon\Carbon::createFromTimestamp($loginSession->last_activity)->diffForHumans() }}
@unless($loginSession->is_current)
@csrf @method('DELETE')
@endunless
@endforeach

{{ __('security.trusted_devices') }}

@if($trustedDevices->isNotEmpty())
@csrf @method('DELETE')
@endif

{{ __('security.trusted_devices_desc') }}

@forelse($trustedDevices as $device)
{{ $device->name }}
{{ $device->ip_address }} · {{ __('security.trusted_until') }} {{ $device->expires_at->translatedFormat('d M Y') }}
@csrf @method('DELETE')
@empty

{{ __('security.no_trusted_devices') }}

{{ \Illuminate\Support\Facades\Lang::has('security.empty_trusted_devices_description') ? __('security.empty_trusted_devices_description') : __('security.trusted_devices_desc') }}

@endforelse
@if($mobileAppModuleActive)

{{ __('login_requests.title') }}

{{ __('login_requests.description') }}

@forelse($loginRequests as $loginRequest)
{{ $loginRequest->device_name }}
{{ $loginRequest->ip_address }}{{ $loginRequest->created_at->diffForHumans() }}{{ __('login_requests.expires_in', ['time' => $loginRequest->expires_at->diffForHumans(null, true)]) }}
@csrf
@csrf
@empty

{{ __('login_requests.empty') }}

{{ __('login_requests.empty_description') }}

@endforelse
@endif
@if($passkeyModuleActive) @endif @endif
@if(isset($savedCards) && $savedCards->count() > 0)
@foreach($savedCards as $card) @php $numberFormat = $card->bin_number ? substr($card->bin_number, 0, 4) . ' ' . substr($card->bin_number, 4, 2) . '** **** ' . $card->last_four_digits : '**** **** **** ' . $card->last_four_digits; @endphp
{{ $card->card_alias ?: Auth::user()->name }} - {{ $card->card_family ?: $card->card_association }}
{{ $numberFormat }} @if(str_contains(strtolower($card->card_association), 'master')) @elseif(str_contains(strtolower($card->card_association), 'visa')) @else {{ $card->card_association }} @endif
@endforeach
@else
Kayıtlı kartınız bulunmamaktadır.
@endif

{{ __('account.saved_addresses') ?? 'Tanımlı Adreslerim' }}

Teslimat ve fatura adreslerinizi buradan yönetebilirsiniz.

{{ __('account.new_address_info') ?? 'Yeni Adres Bilgileri' }}

@csrf
🇹🇷
@error('full_address'){{ $message }}@enderror
@php $hasCorporateMembership = in_array($user->membership_type, ['corporate', 'b2b'], true); $corporateInvoiceChecked = old('is_corporate') === '1'; $sameAsDeliveryChecked = old('same_as_delivery', '0') === '1'; @endphp
Önemli Bilgilendirme: Kurumsal fatura tercih edildiğinde, faturanız ve kargo teslimat süreciniz bu kurumsal bilgiler doğrultusunda düzenlenecek olup bu aynı zamanda kargo adresi olarak da geçerli olacaktır.
@if($hasCorporateMembership)

Kurumsal bilgileriniz hesap ayarlarındaki bilgilerinizden otomatik getirildi. Bu adres için gerekirse değiştirebilirsiniz.

@else

Kurumsal fatura oluşturabilmemiz için aşağıdaki firma ve vergi bilgilerini eksiksiz giriniz.

@endif
@error('company_name'){{ $message }}@enderror
@error('tax_office'){{ $message }}@enderror
@error('tax_number'){{ $message }}@enderror

İşaretlendiğinde yukarıdaki teslimat adresi kurumsal fatura adresi olarak kullanılır. İşaretli değilse aşağıdaki ayrı fatura adresi geçerli olur.

Ayrı Kurumsal Fatura Adresi Bilgileri
2. Adres (Fatura)
@error('corporate_city'){{ $message }}@enderror
@error('corporate_district'){{ $message }}@enderror
@error('corporate_zip_code'){{ $message }}@enderror
@error('corporate_address'){{ $message }}@enderror
@forelse($user->addresses->whereIn('type', ['delivery', 'both']) as $address)
@if($address->is_default)
{{ __('account.default_address') ?? 'Varsayılan Adres' }}
@endif

{{ $address->address_title }}

{{ $address->recipient_name }} - {{ $address->phone }}

{{ $address->full_address }}

{{ $address->district }} / {{ $address->city }} @if($address->zip_code) {{ $address->zip_code }} @endif

@if(!$address->is_default)
@csrf
@endif
@empty
{{ __('account.no_delivery_address') ?? 'Kayıtlı teslimat adresiniz bulunmamaktadır.' }}
@endforelse

{{ __('account.my_iban_info') ?? 'IBAN Bilgilerim' }}


{{ __('account.iban_desc_1') ?? 'Sipariş iptali / ürün iadesi nedeniyle hesabınıza geri ödeme yapılabilmesi için yeni IBAN numarası ekleyin veya mevcut IBAN numaralarını görüntüleyin.' }}

{{ __('account.iban_desc_2') ?? 'Girdiğiniz IBAN numarası vadeli bir hesaba ait olmamalıdır.' }}

{{ __('account.iban_desc_3') ?? 'IBAN\'ın size ait olduğu doğrulandıktan sonra geri ödeme süreciniz başlatılır.' }}

@php $hasIban = auth()->user()->ibans && auth()->user()->ibans->count() > 0; @endphp

{{ __('account.new_iban_number') ?? 'Yeni IBAN Numarası' }}

@csrf
@if(auth()->user()->ibans && auth()->user()->ibans->count() > 0) @foreach(auth()->user()->ibans as $iban)

{{ $iban->iban_name }}

{{ $iban->iban_number }}

@csrf @method('DELETE')
@endforeach @else
Kayıtlı IBAN bilginiz bulunmamaktadır.
@endif
@php $siteName = \App\Models\Store::getSetting('site_name') ?? config('app.name'); @endphp

{{ __('account.communication_preferences_title') ?? 'İletişim tercihlerim' }}

{{ __('account.info_text') }} {{ __('account.communication_desc') }}

{{ __('account.sms_channels') ?? 'Anlık/Kısa Mesaj Kanalları' }}

{{ str_replace(['WiseTicaret', 'wiseticaret', 'config(\'app.name\')'], $siteName, __('account.sms_channels_desc') ?? 'Anlık/kısa mesaj kanallarıyla cep telefonunuza ' . $siteName . ' tarafından gönderilecek olan mesajlar') }}

{{ __('account.email') ?? 'E-Posta' }}

{{ str_replace(['WiseTicaret', 'wiseticaret', 'config(\'app.name\')'], $siteName, __('account.email_desc') ?? 'Email ile ' . $siteName . ' tarafından gönderilecek olan bildirimler') }}

{{ __('account.phone_call') ?? 'Telefon araması' }}

{{ str_replace(['WiseTicaret', 'wiseticaret', 'config(\'app.name\')'], $siteName, __('account.phone_desc') ?? 'Arama yöntemiyle cep telefonunuza ' . $siteName . ' tarafından yapılacak olan aramalar.') }}

{{ __('account.mobile_notifications') ?? 'Mobil / Site içi Bildirim' }}

{{ str_replace(['WiseTicaret', 'wiseticaret', 'config(\'app.name\')'], $siteName, __('account.mobile_notifications_desc') ?? $siteName . ' platformu ve mobil uygulaması üzerinden gönderilecek olan anlık bildirimler.') }}

@endsection