
@foreach($reportDataAppointments as $reportData)
{!! $loop->first ? '': '<div class="page-break"></div>' !!}
<table class="table table-bordered">
    <thead>
        <tr>
            <th class="no-border" colspan="12">
                <h2>{{$reportData['title']}}</h2>
            </th>
        </tr>
        <tr>
            <th>Name</th>
            <th>Map Code / Address</th>
            <th class="phoneEmailCol" >Phone / Email</th>
            <th>Bal</th>
            <th>CK</th>
            <th>CA</th>
            <th>Bill</th>
            <th>Service Type</th>
            <th>Subscription Specific notes</th>
            <th>Scheduled Time Appointment</th>

            <th>Service Price</th>

            <th>Preferred Start/End</th>
        </tr>
    </thead>
    <tbody>
        @foreach($reportData['appointments'] as $app)
        <tr>
            <td>{{$app['name'] ?? ' -- '}}</td>
            <td>{{$app['mapCode'] ?? ' -- '}} <br /> {{$app['address'] ?? ' -- '}}</td>
            <td class="phoneEmailCol" >{{$app['phone'] ?? ' -- '}} <br /><span class="appointmentEmail">{{$app['email'] ?? ' -- '}}</span></td>
            <td style="text-align: right;">{{$app['accountBalance'] ?? ' -- '}}</td>
            <td></td>
            <td></td>
            <td></td>
            <td>{{$app['serviceType'] ?? ' -- ' }}</td>
            <td>
                @foreach($app['subscriptionSpecificNotes'] as $note)
                {{$note}}
                @endforeach
            </td>
            <td>{{$app['shceduledTimeAppointment'] ?? ' -- '}}</td>
            <td style="text-align: right;">
                {{$app['servicePrice'] ?? ' -- '}}<br />
                <span class="nextBillingDate">{{$app['nextBillingDate'] ?? ' -- '}}</span>
            </td>

            <td>
                {{$app['preferredStart'] ?? ' -- '}}<br />
                {{$app['preferredEnd'] ?? ' -- '}}
            </td>
        </tr>
        @endforeach
    </tbody>
</table>
<span class="numOrders" >{{count($reportData['appointments'])}} Orders</span>
@endforeach