@extends('admin.layouts.app') @section('title', __('admin.clients.add_client')) @section('content') @if($errors->any())
@foreach($errors->all() as $e)
• {{ $e }}
@endforeach
@endif
@csrf
{{ __('admin.clients.billing_email_hint') }}
{{-- The billing identity. Not enforced here: an admin must be able to open a record with gaps, but should see them now rather than when the invoice is written. Which fields matter depends on the customer type. --}}
@php $clientType = old('client_type') ?: 'individual'; @endphp

{{ __('common.form.password') }}

@if($customFields->isNotEmpty())

{{ __('admin.clients.custom_fields') }}

@foreach($customFields as $field)
field_type === 'textarea') style="grid-column:span 2;" @endif> @if($field->field_type === 'textarea') @elseif($field->field_type === 'select') @elseif($field->field_type === 'checkbox')
@elseif($field->field_type === 'number') id}") }}" class="form-control" @if($field->required) required @endif> @elseif($field->field_type === 'date') id}") }}" class="form-control" @if($field->required) required @endif> @else id}") }}" class="form-control" @if($field->regex) pattern="{{ $field->regex }}" @endif @if($field->required) required @endif> @endif
@endforeach
@endif
{{ __('common.actions.cancel') }}
@endsection