79 lines
No EOL
5 KiB
PHP
79 lines
No EOL
5 KiB
PHP
<div class="card mb-2 border-primary">
|
|
<h6 class="card-header bg-primary text-white py-2" data-toggle="collapse" data-target="#collapseLeadInfo" aria-expanded="false" aria-controls="collapseLeadInfo">
|
|
<strong style="line-height: 1.6em">Kunde</strong>
|
|
</h6>
|
|
<div class="collapse" id="collapseLeadInfo">
|
|
<div class="card-body">
|
|
@if($lead->customer->count())
|
|
<div class="form-row">
|
|
<div class="form-group col-sm-6">
|
|
<label class="form-label" for="customer_id">{{ __('Kunden ID') }}</label>
|
|
<div class="input-group">
|
|
<div class="input-group-prepend">
|
|
<span class="input-group-text">
|
|
<a class="text-primary" href="{{route('customer_detail', [$lead->customer->id])}}"><i class="fa fa-edit"></i></a></span>
|
|
</div>
|
|
{{ Form::text('customer[id]', $lead->customer->id, array('placeholder'=>__('Kunden ID'), 'class'=>'form-control', 'id'=>'customer_id', 'readonly')) }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="form-row">
|
|
|
|
<div class="form-group col-sm-3">
|
|
<label for="salutation_id" class="form-label">{{ __('Anrede') }}*</label>
|
|
{{ Form::select('customer[salutation_id]', \App\Models\Customer::$salutationType , $lead->customer->salutation_id, array('class'=>'custom-select', 'required'=>true)) }}
|
|
</div>
|
|
|
|
<div class="form-group col-sm-4">
|
|
<label class="form-label" for="customer_firstname">{{ __('Vorname') }}*</label>
|
|
{{ Form::text('customer[firstname]', $lead->customer->firstname, array('placeholder'=>__('Vorname'), 'class'=>'form-control', 'id'=>'customer_firstname', 'required'=>true)) }}
|
|
</div>
|
|
|
|
<div class="form-group col-sm-5">
|
|
<label class="form-label" for="customer_name">{{ __('Nachname') }}*</label>
|
|
{{ Form::text('customer[name]', $lead->customer->name, array('placeholder'=>__('Nachname'), 'class'=>'form-control', 'id'=>'customer_name', 'required'=>true)) }}
|
|
</div>
|
|
|
|
<div class="form-group col-sm-12">
|
|
<label class="form-label" for="customer_street">{{ __('Straße') }}</label>
|
|
{{ Form::text('customer[street]', $lead->customer->street, array('placeholder'=>__('Straße'), 'class'=>'form-control', 'id'=>'customer_street')) }}
|
|
</div>
|
|
|
|
<div class="form-group col-sm-3">
|
|
<label class="form-label" for="customer_zip">{{ __('PLZ') }}</label>
|
|
{{ Form::text('customer[zip]', $lead->customer->zip, array('placeholder'=>__('PLZ'), 'class'=>'form-control', 'id'=>'customer_zip')) }}
|
|
</div>
|
|
|
|
<div class="form-group col-sm-4">
|
|
<label class="form-label" for="customer_city">{{ __('Stadt') }}</label>
|
|
{{ Form::text('customer[city]', $lead->customer->city, array('placeholder'=>__('Stadt'), 'class'=>'form-control', 'id'=>'customer_city')) }}
|
|
</div>
|
|
|
|
<div class="form-group col-sm-5">
|
|
<label class="form-label" for="customer_country_id">{{ __('Land') }}*</label>
|
|
{{ Form::select('customer[country_id]', \App\Models\Customer::getCustomerCountriesArray() , $lead->customer->country_id, array('class'=>'custom-select', 'required'=>true)) }}
|
|
</div>
|
|
|
|
<div class="form-group col-sm-6">
|
|
<label class="form-label" for="customer_phone">{{ __('Telefon') }}</label>
|
|
{{ Form::text('customer[phone]', $lead->customer->phone, array('placeholder'=>__('Telefon'), 'class'=>'form-control', 'id'=>'customer_phone')) }}
|
|
</div>
|
|
|
|
<div class="form-group col-sm-6">
|
|
<label class="form-label" for="customer_phonemobile">{{ __('Telefon Mobil') }}</label>
|
|
{{ Form::text('customer[phonemobile]', $lead->customer->phonemobile, array('placeholder'=>__('Telefon Mobil'), 'class'=>'form-control', 'id'=>'customer_phonemobile')) }}
|
|
</div>
|
|
|
|
<div class="form-group col-sm-12">
|
|
<label class="form-label" for="customer_email">{{ __('E-Mail') }}*</label>
|
|
{{ Form::text('customer[email]', $lead->customer->email, array('placeholder'=>__('E-Mail'), 'class'=>'form-control', 'id'=>'customer_email', 'required'=>true)) }}
|
|
</div>
|
|
</div>
|
|
@endif
|
|
<div class="text-left mt-3 pl-1">
|
|
<button type="submit" name="action" value="saveCustomer" class="btn btn-sm btn-secondary">Änderungen speichern</button>
|
|
<a href="{{route('leads')}}" class="btn btn-sm btn-default">{{ __('zur Übersicht') }}</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div> |