@extends('layouts.app') @section('page-title')
{{ ucwords($lead->company_name) }}
{{ $lead->website ?? '-'}}
{{ $lead->mobile ?? '-'}}
{{ $lead->office_phone ?? '-'}}
{{ $lead->address ?? '-'}}
{{ $lead->client_name ?? '-'}}
{{ $lead->client_email ?? '-'}}
{{ company()->currency->currency_symbol.$lead->value ?? '-'}}
{{ ucwords($lead->lead_agent->user->name)}}
{{ $lead->lead_source->type ?? '-'}}
{{ $lead->lead_status->type ?? '-'}}
@foreach($categories as $category) @if($lead->category_id == $category->id) {{ ucwords($category->category_name) }} @endif @endforeach
@if($lead->note) {!! $lead->note !!} @else - @endif
@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