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

{{ $stats['totalListings'] }}

Total Value

${{ number_format($stats['totalValue'], 0) }}

Total Acres

{{ number_format($stats['totalAcres']) }}

Average Acres

{{ number_format($stats['averageAcres']) }}

Average Value

${{ number_format($stats['averageValue'], 0) }}

Average PPA

${{ number_format($stats['averagePPA'], 0) }}

Report - Leads By Date

{{-- Graph Section --}}

Report - Leads By Listing

@foreach ($listings as $listing) @endforeach
ID LISTING ACRES COUNTY STATE CREATED EXPIRES DOM PRICE REP
{{ $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->dom ?? '-' }} {{ $listing->price ? '$' . number_format($listing->price) : '-' }} {{ $listing->listingRep->full_name ?? 'N/A' }}
@else

Please select search filters to see results

@endif
@endsection