@if(isset($issue_by_issue) && $issue_by_issue)
    <h1>Issue By Issue</h1>
    <div class="table-responsive">
        <table class="table table-striped table-bordered table-hover">
            <thead>
            <tr>
                <th>Qualified Non-paid Print ONLY</th>
                <th>Qualified Non-paid Digital ONLY</th>
                <th>Qualified Non-paid Print AND Digital</th>
            </tr>
            </thead>
            <tbody>
            @foreach($issue_by_issue as $item)
                <tr>
                    <td>{{ $item->Qualified_Nonpaid_print }}</td>
                    <td>{{ $item->Qualified_Nonpaid_Digital }}</td>
                    <td>{{ $item->Qualified_Nonpaid_Print_and_Digital }}</td>
                </tr>
            @endforeach
            </tbody>
        </table>
    </div>
@endif

@if(isset($age_of_source_data) && $age_of_source_data)
    <h1>Age of Source Data</h1>
    <div class="table-responsive">
        <table class="table table-striped table-bordered table-hover">
            <thead>
            <tr>
                <th>Type</th>
                <th>Print ONLY</th>
                <th>Digital ONLY</th>
                <th>Print AND Digital</th>
                <th>1 Year</th>
            </tr>
            </thead>
            <tbody>
            @foreach($age_of_source_data as $item)
                <tr>
                    <td>{{ $item->type }}</td>
                    <td>{{ $item->Print_Only }}</td>
                    <td>{{ $item->Digital_Only }}</td>
                    <td>{{ $item->Print_and_Digital }}</td>
                    <td>{{ $item->one_year }}</td>
                </tr>
            @endforeach
            </tbody>
        </table>
    </div>
@endif

@if(isset($mailing_address) && $mailing_address)
    <h1>Mailing Address</h1>
    <div class="table-responsive">
        <table class="table table-striped table-bordered table-hover">
            <thead>
            <tr>
                <th>Type</th>
                <th>Qualified Non-paid Print ONLY</th>
                <th>Qualified Non-paid Digital ONLY</th>
                <th>Qualified Non-paid Print AND Digital</th>
            </tr>
            </thead>
            <tbody>
            @foreach($mailing_address as $item)
                <tr>
                    <td>{{ $item->type }}</td>
                    <td>{{ $item->Qualified_Nonpaid_print }}</td>
                    <td>{{ $item->Qualified_Nonpaid_Digital }}</td>
                    <td>{{ $item->Qualified_Nonpaid_Print_and_Digital }}</td>
                </tr>
            @endforeach
            </tbody>
        </table>
    </div>
@endif

@if(isset($business_and_occupation) && $business_and_occupation)
    <h1>Business AND Occupation</h1>
    <div class="table-responsive">
        <table class="table table-striped table-bordered table-hover">
            <thead>
            <tr>
                <th>Classification By Business and Industry</th>
                <th>Qualified Non-paid Print ONLY</th>
                <th>Qualified Non-paid Digital ONLY</th>
                <th>Qualified Non-paid Print AND Digital</th>
            </tr>
            </thead>
            <tbody>
            @foreach($business_and_occupation as $item)
                <tr>
                    <td>{{ $item->Classification_by_Business_and_Industry }}</td>
                    <td>{{ $item->Qualified_Nonpaid_print }}</td>
                    <td>{{ $item->Qualified_Nonpaid_Digital }}</td>
                    <td>{{ $item->Qualified_Nonpaid_Print_and_Digital }}</td>
                </tr>
            @endforeach
            </tbody>
        </table>
    </div>
@endif

<h1>Geographic</h1>

<h2>U.S. States</h2>
@include('admin.subscribers.audit.partials.geographic_table', ['data' => $geographic_us_states])

<h2>U.S. Alaska and Hawaii</h2>
@include('admin.subscribers.audit.partials.geographic_table', ['data' => $geographic_us_alaska_and_hawaii])

<h2>Poss. and Other Areas</h2>
@include('admin.subscribers.audit.partials.geographic_table', ['data' => $geographic_poss_and_other_areas])

<h2>U.S. Classifieds</h2>
@include('admin.subscribers.audit.partials.geographic_table', ['data' => $geographic_us_classified])

<h2>Canada</h2>
@include('admin.subscribers.audit.partials.geographic_table', ['data' => $geographic_canada])

<h2>International</h2>
@include('admin.subscribers.audit.partials.geographic_table', ['data' => $geographic_international])

<h2>U.S. Military</h2>
@include('admin.subscribers.audit.partials.geographic_table', ['data' => $geographic_us_military])
