
{{ Form::model($client, array('route' => array('clients.update', $client->id), 'method' => 'PUT', 'class'=>'needs-validation', 'novalidate')) }}
<div class="modal-body">
    <div class="row">
        <div class="form-group">
            {{ Form::label('name', __('Name'),['class'=>'form-label']) }}<x-required></x-required>
            {{ Form::text('name', null, array('class' => 'form-control','placeholder'=>__('Enter Customer Contact Name'),'required'=>'required')) }}
        </div>
        <div class="form-group">
            {{ Form::label('customer_id', __('Link Existing Customer (Optional)'),['class'=>'form-label']) }}
            {{ Form::select('customer_id', ['' => __('Select Customer')] + $customers->toArray(), $linkedCustomerId, array('class' => 'form-control')) }}
            <small class="text-muted">{{ __('When selected, the contact email will use the linked customer email.') }}</small>
        </div>
        <div class="form-group">
            {{ Form::label('email', __('E-Mail Address'),['class'=>'form-label']) }}<x-required></x-required>
            {{ Form::email('email', null, array('class' => 'form-control','placeholder'=>__('Enter Customer Contact Email'),'required'=>'required')) }}
        </div>

        @if(!$customFields->isEmpty())
            @include('custom_fields.formBuilder')
        @endif

    </div>
</div>

<div class="modal-footer">
    <input type="button" value="{{__('Cancel')}}" class="btn  btn-secondary" data-bs-dismiss="modal">
    <input type="submit" value="{{__('Update')}}" class="btn  btn-primary">
</div>

{{Form::close()}}


