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

{{ __($pageTitle) }}

@lang('modules.lead.edit')
@endsection @section('content')
@include('admin.clients.client_header')
@include('admin.clients.tabs')
@lang('modules.employees.fullName')

{{ ucwords($clientDetail->name) }}

@lang('app.email')

{{ $clientDetail->email }}

@lang('app.mobile')

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


@lang('modules.client.companyName')

{{ (!empty($clientDetail) ) ? ucwords($clientDetail->company_name) : '-'}}

@lang('modules.client.website')

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

@lang('app.gstNumber')

{{ $clientDetail->gst_number ?? '-' }}


@lang('app.address')

{!! (!empty($clientDetail)) ? ucwords($clientDetail->address) : '-' !!}

@lang('app.shippingAddress')

{{ $clientDetail->shipping_address ?? '-' }}


@if($clientDetail->category_id != null)
@lang('modules.clients.clientCategory')

{{ $clientDetail->clientCategory->category_name }}

@endif @if($clientDetail->sub_category_id != null)
@lang('modules.clients.clientSubCategory')

{{ $clientDetail->clientSubcategory->category_name }}

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

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

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

@endforeach
@endif {{--custom fields data end--}}
@lang('app.note')

{!! $clientDetail->note !!}

@endsection @push('footer-script') @endpush