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

{{ $totalViews }}

Average Views / Listings

{{ number_format($averageViewsPerListing, 2) }}

Total Leads

{{ $totalLeads }}

Average Leads / Listings

{{ number_format($averageLeadsPerListing, 2) }}

Report - Listing By Leads & Views

{{-- Graph Section --}}

Report - Listing By Leads & Views

@foreach ($listings as $listing) @endforeach
LISTING ID LISTING TITLE ACRES COUNTY STATE CREATED EXPIRES PRICE REP VIEWS LEADS
{{ $listing->id }} {{ $listing->title }} {{ $listing->acreage }} {{ $listing->county }} {{ $listing->state }} {{ $listing->created_at ? date('Y-m-d', strtotime($listing->created_at)) : '-' }} {{ $listing->expiration_date ? date('Y-m-d', strtotime($listing->expiration_date)) : '-' }} {{ $listing->price }} {{ $listing->listingRep->full_name ?? 'N/A' }} {{ $listing->views }} {{ $listing->contacts_count }}
@else

Please select search filters to see results

@endif
@endsection