@extends('admin.admin_dashboard') @section('admin')

Lead Purchased

{{-- Add Associate --}} {{-- --}} @foreach ($leads as $key => $item) @endforeach
Lead Details Q/A DateAction

Lead ID: {{$item['id']}}

Category: {{$item->category['alt_name'] ?? '-' }}

Sub-Category: {{$item->subcategory['slug'] ?? '-'}}

Name: {{$item['name'] ?? '-'}}

Email: {{$item['email'] ?? '-'}}

Phone: {{$item['mobile'] ?? '-'}}

Location: {{$item->location->name ?? '-'}}

Date Posted: {{date('d M, Y', strtotime($item->created_at)); }}

@if ($item && $item['answers']) @php $answers = json_decode($item->answers, true); @endphp @if ($answers && is_array($answers)) @foreach ($answers as $answer)

{{$loop->iteration}}. {{ $answer['question'] ?? '-' }}

- {{ $answer['answer'] ?? '-' }}

@endforeach @else - @endif @else - @endif
View Purchase History
{{-- --}} {{-- --}} @endsection