@extends('layouts.app') @section('page-title')

{{ __($pageTitle) }} #{{ $lead->id }} - {{ ucwords($lead->company_name) }}

@lang('modules.lead.edit')
@endsection @push('head-script') @endpush @section('content')

@lang('modules.lead.leadDetail')

@lang('modules.lead.companyName')

{{ ucwords($lead->company_name) }}

@lang('modules.lead.website')

{{ $lead->website ?? '-'}}


@lang('modules.lead.mobile')

{{ $lead->mobile ?? '-'}}

@lang('modules.clients.officePhoneNumber')

{{ $lead->office_phone ?? '-'}}


@lang('modules.lead.address')

{{ $lead->address ?? '-'}}


@lang('modules.lead.clientName')

{{ $lead->client_name ?? '-'}}

@lang('modules.lead.clientEmail')

{{ $lead->client_email ?? '-'}}

@lang('app.lead') @lang('app.value')

{{ company()->currency->currency_symbol.$lead->value ?? '-'}}


@if($lead->agent_id != null)
@lang('modules.lead.leadAgent')

user {{ ucwords($lead->lead_agent->user->name)}}

@endif @if($lead->source_id != null)
@lang('modules.lead.source')

{{ $lead->lead_source->type ?? '-'}}

@endif @if($lead->status_id != null)
@lang('modules.lead.status')

{{ $lead->lead_status->type ?? '-'}}

@endif @if($lead->category_id != null)
@lang('modules.lead.leadCategory')

@foreach($categories as $category) @if($lead->category_id == $category->id) {{ ucwords($category->category_name) }} @endif @endforeach

@endif

@lang('app.note')

@if($lead->note) {!! $lead->note !!} @else - @endif

{{--Custom fields data--}} @if(isset($fields))

@foreach($fields as $field)
{{ ucfirst($field->label) }}

@if( $field->type == 'text') {{$lead->custom_fields_data['field_'.$field->id] ?? ''}} @elseif($field->type == 'password') {{$lead->custom_fields_data['field_'.$field->id] ?? ''}} @elseif($field->type == 'number') {{$lead->custom_fields_data['field_'.$field->id] ?? ''}} @elseif($field->type == 'textarea') {{$lead->custom_fields_data['field_'.$field->id] ?? ''}} @elseif($field->type == 'radio') {{ !is_null($lead->custom_fields_data['field_'.$field->id]) ? $lead->custom_fields_data['field_'.$field->id] : '-' }} @elseif($field->type == 'select') {{ (!is_null($lead->custom_fields_data['field_'.$field->id]) && $lead->custom_fields_data['field_'.$field->id] != '') ? $field->values[$lead->custom_fields_data['field_'.$field->id]] : '-' }} @elseif($field->type == 'checkbox') {{ !is_null($lead->custom_fields_data['field_'.$field->id]) ? $field->values[$lead->custom_fields_data['field_'.$field->id]] : '-' }} @elseif($field->type == 'date') {{ !is_null($lead->custom_fields_data['field_'.$field->id]) ? \Carbon\Carbon::parse($lead->custom_fields_data['field_'.$field->id])->format($global->date_format) : '--'}} @endif

@endforeach
@endif {{--custom fields data end--}}
@endsection @push('footer-script') @endpush