@extends('agent.layouts.app') @section('title', 'Report - Leads By Listings') @section('content')
@if(empty($listings)) @else @endif @if(!empty($listings))
{{-- Graph Section --}}
Total Leads

{{ $totalContacts }}

Listings with Leads

{{ $totalContacts }}/{{ $totalListings }}

Report - Leads By Listing

@foreach ($listings as $listing) @endforeach
LISTING ID LISTING TITLE CITY COUNTY STATE STATUS REP LEAD
{{ $listing->id }} {{ $listing->title }} {{ $listing->city }} {{ $listing->county }} {{ $listing->state }} {{ $listing->status }} {{ $listing->listingRep->full_name ?? 'N/A' }} {{ $listing->contacts_count }}
@else

Please select search filters to see results

@endif
@endsection