@include('partials/flash_messages') @action('customer.edit.before_form', $customer)
{{ csrf_field() }}
@include('partials/field_error', ['field'=>'mailbox'])
@include('partials/field_error', ['field'=>'first_name'])
@include('partials/field_error', ['field'=>'last_name'])
@foreach (old('emails', $emails) as $i => $email)
@include('partials/field_error', ['field'=>'emails.'.$i])
@endforeach

{{ __('Add an email address') }}

{{-- @include('partials/field_error', ['field'=>'emails.*']) --}}
@foreach ($customer->getPhones(true) as $i => $phone) @if (!empty($phone['type']) && isset($phone['value']))
@include('partials/field_error', ['field'=>'company'])
@include('partials/field_error', ['field'=>'job_title'])
@foreach ($customer->getWebsites(true) as $website)
@endforeach

{{ __('Add a website') }}

@include('partials/field_error', ['field'=>'websites'])
@foreach ($customer->getSocialProfiles(true) as $i => $social_profile) @if (isset($social_profile['type']) && isset($social_profile['value']))
@endif @endforeach

{{ __('Add a social profile') }}

@include('partials/field_error', ['field'=>'social_profiles'])
{{--
@include('partials/field_error', ['field'=>'age'])
@include('partials/field_error', ['field'=>'gender'])
--}}
@include('partials/field_error', ['field'=>'country'])
state)) && empty(old('city', $customer->city)) && empty(old('address', $customer->address)) && empty(old('zip', $customer->zip)))@else class="collapse in" @endif>
@include('partials/field_error', ['field'=>'state'])
@include('partials/field_error', ['field'=>'city'])
@include('partials/field_error', ['field'=>'address'])
@include('partials/field_error', ['field'=>'zip'])

(JPG, GIF, PNG)

@include('partials/field_error', ['field'=>'photo_url'])
@include('partials/field_error', ['field'=>'notes'])
@action('customer.edit.after_fields', $customer, $errors)