@extends('layouts/client') @section('title', __('client.profile.index')) @section('scripts') @endsection @section('content')
@include('shared/alerts')

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

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

@csrf
@include('shared.input', [ 'name' => 'firstname', 'label' => __('global.firstname'), 'value' => auth('web')->user()->firstname ?? old('firstname'), ])
@include('shared.input', [ 'name' => 'lastname', 'label' => __('global.lastname'), 'value' => auth('web')->user()->lastname ?? old('lastname'), ])
@include('shared/input', [ 'name' => 'company_name', 'label' => __('global.company_name') . ' (' . __('global.optional') . ')', 'value' => auth('web')->user()->company_name ?? old('company_name'), ])
@include('shared.input', [ 'name' => 'address', 'label' => __('global.address'), 'value' => auth('web')->user()->address ?? old('address'), ])
@include('shared.input', [ 'name' => 'address2', 'label' => __('global.address2'), 'value' => auth('web')->user()->address2 ?? old('address2'), ])
@include('shared.input', [ 'name' => 'zipcode', 'label' => __('global.zip'), 'value' => auth('web')->user()->zipcode ?? old('zipcode'), ])
@include('shared.input', [ 'name' => 'email', 'label' => __('global.email'), 'type' => 'email', 'value' => auth('web')->user()->email ?? old('email'), 'disabled' => true, ])
@include('shared.phone-intl', [ 'name' => 'phone', 'label' => __('global.phone'), 'value' => auth('web')->user()->phone ?? old('phone'), 'country' => auth('web')->user()->country ?? old('country', 'FR'), ])
@include('shared.select', [ 'name' => 'country', 'label' => __('global.country'), 'options' => $countries, 'value' => auth('web')->user()->country ?? old('country'), ])
@include('shared.input', [ 'name' => 'city', 'label' => __('global.city'), 'value' => auth('web')->user()->city ?? old('city'), ])
@include('shared.input', [ 'name' => 'region', 'label' => __('global.region'), 'value' => auth('web')->user()->region ?? old('region'), ])
@include('shared/select', [ 'name' => 'locale', 'label' => __('global.locale'), 'options' => $locales, 'value' => auth('web')->user()->locale ?? old('locale'), ])
@include('shared/textarea', [ 'name' => 'billing_details', 'label' => __('global.billing_details'), 'value' => auth('web')->user()->billing_details ?? old('billing_details'), 'help' => __('global.billing_details_help'), ])
@if (isset($providers) && count($providers) > 0) @endif
@endsection