{!! Form::model($customer, ['method' => 'PATCH', 'route' => ['customers.update.ppp', $customer->slug]]) !!}
@if ($customer->internet_service == 'ppp')
{!! Form::select('ppp_type_id', $services, null, [
'placeholder' => 'Select Service',
'class' => 'form-control',
'id' => 'server-dropdown',
]) !!}
@if ($errors->has('ppp_type_id'))
{{ $errors->first('ppp_type_id') }}
@endif
{!! Form::text('username', null, [
'placeholder' => __('customer.placeholder.username'),
'class' => 'form-control',
]) !!}
@if ($errors->has('username'))
{{ $errors->first('username') }}
@endif
{!! Form::text('password_ppp', null, [
'placeholder' => __('customer.placeholder.username'),
'class' => 'form-control',
]) !!}
@if ($errors->has('password_ppp'))
{{ $errors->first('password_ppp') }}
@endif
{!! Form::text('caller_id', null, [
'placeholder' => __('customer.placeholder.caller-id'),
'class' => 'form-control',
]) !!}
@if ($customer->caller_id != $callerID)
@endif
@if ($errors->has('caller_id'))
{{ $errors->first('caller_id') }}
@endif
@if ($customer->caller_id != $callerID)
@endif
@elseif ($customer->internet_service == 'ip_static')
@if ($errors->has('ip_static'))
{{ $errors->first('ip_static') }}
@endif
@if ($errors->has('mac_address'))
{{ $errors->first('mac_address') }}
@endif
{!! Form::select('interface', $interfaces, null, [
'placeholder' => 'Select Interface',
'class' => 'form-control',
'id' => 'interface',
]) !!}
@if ($errors->has('interface'))
{{ $errors->first('interface') }}
@endif
@endif