@extends('layout.master') @section('title', 'Lead Details') @section('content') @php $statusColors = [ 'pending' => 'warning', 'done' => 'success', 'need further follow up' => 'info', ]; $leadTypes = \App\Models\Lead::getLeadTypes(); @endphp

Lead Details

@if (session('success'))
{{ session('success') }}
@endif

Lead Code #({{ $lead->lead_number ?? 'N/A' }})

Client: {{ $lead->client->name ?? ($lead->client_name ?? 'N/A') }}

Client Email: {{ $lead->client->email ?? ($lead->client_email ?? 'N/A') }}

Client Phone: {{ $lead->client->phone ?? ($lead->client_phone ?? 'N/A') }}

Company: {{ $lead->company_name ?? 'N/A' }}

{{--

Service: {{ $lead->service->name ?? 'N/A' }}

--}}

Lead Type: {{ $leadTypes[$lead->lead_type] ?? 'N/A' }}

Visa Qty: {{ $lead->visa_qty ?? 'N/A' }}

Assigned To: {{ $lead->user->name ?? 'Unassigned' }}

Source: {{ $lead->source->name ?? 'N/A' }}

Method of Contact: {{ $lead->mediumOfContact->name ?? 'N/A' }}

Status: {{ ucfirst($lead->status ?? 'N/A') }}

Description: {{ $lead->description ?? 'N/A' }}

Created At: {{ $lead->created_at ? \Carbon\Carbon::parse($lead->created_at)->format('d M Y, h:i A') : 'N/A' }}

Back to Lead Go To Edit @if (!$lead->client_id)
@csrf
@else Converted @endif
@endsection