@php $viewLeadAgentPermission = user()->permission('view_lead_agents'); $viewLeadCategoryPermission = user()->permission('view_lead_category'); $viewLeadSourcesPermission = user()->permission('view_lead_sources'); $addLeadAgentPermission = user()->permission('add_lead_agent'); $addLeadSourcesPermission = user()->permission('add_lead_sources'); $addLeadCategoryPermission = user()->permission('add_lead_category'); @endphp

@lang('modules.lead.leadDetails')

@foreach ($salutations as $salutation) @endforeach
@if ($viewLeadAgentPermission != 'none')
@if ($addLeadAgentPermission == 'all' || $addLeadAgentPermission == 'added') @endif
@endif @if ($viewLeadSourcesPermission != 'none')
@if ($addLeadSourcesPermission == 'all' || $addLeadSourcesPermission == 'added') @endif
@endif @if ($viewLeadCategoryPermission != 'none')
@if ($addLeadCategoryPermission == 'all' || $addLeadCategoryPermission == 'added') @endif
@endif
{!! $lead->note !!}

@lang('modules.lead.companyDetails')

@foreach ($countries as $item) @endforeach
@if (isset($fields) && count($fields) > 0)
@foreach ($fields as $field)
@if ($field->type == 'text') @elseif($field->type == 'password') @elseif($field->type == 'number') @elseif($field->type == 'textarea') @elseif($field->type == 'radio')
@foreach ($field->values as $key => $value) @endforeach
@elseif($field->type == 'select')
{!! Form::select('custom_fields_data[' . $field->name . '_' . $field->id . ']', $field->values, isset($lead) ? $lead->custom_fields_data['field_' . $field->id] : '', ['class' => 'form-control select-picker']) !!}
@elseif($field->type == 'date') @elseif($field->type == 'checkbox')
@foreach ($field->values as $key => $value) @endforeach
@endif
@endforeach
@endif
@lang('app.save') @lang('app.cancel')