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

@lang('modules.leadContact.leadDetails')

@foreach ($salutations as $salutation) @endforeach
@if ($viewLeadSourcesPermission != 'none')
@if ($addLeadSourcesPermission == 'all' || $addLeadSourcesPermission == 'added') @endif
@endif @if ($addPermission == 'all')
@foreach ($employees as $item) @endforeach
@endif
@foreach ($employees as $item) @endforeach
@if (in_array($addDealPermission, ['all', 'added']))
@endif
@foreach ($leadPipelines as $pipeline) @endforeach
{{company()->currency->currency_code }} ({{ company()->currency->currency_symbol }})
@if ($viewLeadCategoryPermission != 'none')
@if ($addLeadCategoryPermission == 'all' || $addLeadCategoryPermission == 'added') @endif
@endif @if ($canAssignDeal) {{-- Admins & managers may pick any agent (loaded per category via ajax) --}} @if ($viewLeadAgentPermission != 'none')
@if ($addLeadAgentPermission == 'all' || $addLeadAgentPermission == 'added') @endif
@elseif(in_array(user()->id, $leadAgentArray)) @endif @else {{-- Regular employees are always the agent of their own deal --}}
@endif @if(in_array('products', user_modules()) || in_array('purchase', user_modules()))
{{-- @if ($addProductPermission == 'all' || $addProductPermission == 'added') @lang('app.add') @endif --}}
@endif
@php($myReportingUser = optional(user()->employeeDetail)->reportingTo) @if ($canAssignDeal) {{-- Admins & managers default to themselves as watcher, but may change it --}} @foreach ($employees as $item) @if ($item->id != user()->id) @endif @endforeach @else {{-- Regular employees watch through their "reporting to" manager --}} @endif

@lang('modules.client.companyDetails')

{{--
--}}
@foreach ($countries as $item) @endforeach
@lang('app.save') @lang('app.saveAddMore') @lang('app.cancel')