@extends("client.layouts.app") @section("title", __("client.edit_profile")) @section("content")

{{ __('client.profile.edit_profile') }}

{{ __('client.profile.edit_subtitle') }}

@if(($accounts ?? collect())->count() > 1)
{{ __('client.account.accounts') }}

{{ __('client.account.accounts_hint') }}

@foreach($accounts as $account)
@csrf
@endforeach
@endif @if(session('fatura_sonrasi_odeme')) {{-- Musteri siparis verirken buraya dustu; sayfanin neden acildigi ve kaydettikten sonra ne olacagi yazili olmazsa siparisi birakip gidiyor. --}}
{{ __('client.cart.billing_identity_required') }}
@endif
{{ __('client.profile.personal_info') }}
@if($errors->any())
    @foreach($errors->all() as $e)
  • {{ $e }}
  • @endforeach
@endif
@csrf @method("PUT")
first_name) }}" required class="form-control">
last_name) }}" required class="form-control">
email) }}" required class="form-control" data-giris-epostasi="{{ $user->email }}">
{{-- Yalnizca giris e-postasi degistirilirse sorulur. Siparis akisi fatura kimligi icin bu sayfaya dusuyor; oraya gelen musteri hicbir sifre alani gormemeli. --}}
has('current_password')) hidden @endunless>
{{ __('client.account.email_change_needs_password') }}
@error('current_password')
{{ $message }}
@enderror
{{-- Fatura kimligi: sirketse unvan/vergi dairesi/vergi no, sahissa TC kimlik. Siparis verebilmek icin zorunlu. --}}
@error('client_type') {{ $message }} @enderror
@error('national_id') {{ $message }} @enderror
company_name) }}" class="form-control"> @error('company_name') {{ $message }} @enderror
@error('tax_office') {{ $message }} @enderror
billing_email) }}" class="form-control">
{{ __('client.account.billing_email_hint') }}
phone_number) }}" class="form-control" style="flex:1;min-width:0;">
@if(isset($languages) && $languages->isNotEmpty())
@endif
address1) }}" class="form-control" placeholder="{{ __('common.form.street_address_placeholder') }}">
city) }}" class="form-control">
postcode) }}" class="form-control">
{{-- Both are printed on the invoice and both were only editable from the admin side: a company could not correct the tax number their own invoices carry. --}}
state) }}" class="form-control">
tax_id) }}" class="form-control"> {{ __('common.form.tax_id_hint') }}
@if(isset($customFields) && $customFields->isNotEmpty())
{{ __('client.profile.custom_fields') }}
@include('client.partials.custom-fields', ['fields' => $customFields, 'clientId' => $client?->id])
@endif @if($client)
@endif
@endsection {{-- Musteri turu secimi. Alpine yerine duz JS: musteri paneli iskeletinde Alpine yuklu degil ve x-cloak ile gizlenen iki blok bir daha hic acilmazdi. Bu haliyle CDN'e de bagli degil. --}} {{-- Mevcut sifre yalnizca giris e-postasi degistiginde gerekiyor; alan da ancak o zaman aciliyor. Profil sayfasi siparis akisinda fatura kimligi icin de kullaniliyor ve orada sifre alani gormek istemiyoruz. --}} {{-- Keep the browser's password manager out of the password fields. They arrive empty from the server; it is the browser that fills them in. --}}