@extends('employee.layouts.app') @section('breadcrumb') @endsection @section('content')
@forelse($leads as $lead) @php $priority = strtolower($lead['priority'] ?? 'medium'); $pColor = match ($priority) { 'high', 'urgent' => 'danger', 'medium' => 'warning', 'low' => 'info', default => 'secondary', }; @endphp @empty @endforelse
{{ __('CONTACT INFO') }} {{ __('ASSIGNED TO') }} {{ __('BUSINESS') }} {{ __('REQUIREMENT') }} {{ __('SOURCE/PRIORITY') }} {{ __('STATUS') }} {{ __('CREATED') }} {{ __('FOLLOW-UPS') }} {{ __('ACTION') }}
{{ $lead['name'] ?? 'Unknown' }} {{ $lead['phone'] }} {{ $lead['email'] ?? 'No Email' }}
@if (!empty($lead['assigned_employee'])) {{ $lead['assigned_employee']['name'] }} @else {{ __('Unassigned') }} @endif {{ $lead['business_name'] ?? __('N/A') }}
{{ Str::limit($lead['requirement'] ?? __('No specific requirements'), 50) }}
{{ ucfirst($lead['source'] ?? 'Direct') }} {{ ucfirst($priority) }}
{{ ucfirst($lead['status'] ?? 'New') }} {{ \Carbon\Carbon::parse($lead['created_at'])->format('d M, y') }} {{ __('Follow-ups') }}
{{ __('No leads found.') }}
@endsection