@if( empty($export_type) ) @php $i = 1; @endphp @foreach($questions as $q) @php $i++; @endphp @endforeach @php $table_totals = $grand_total_yes + $grand_total_no; $grand_total_yes_percent = ($grand_total_yes * 100) / $table_totals; $grand_total_no_percent = ($grand_total_no * 100) / $table_totals; @endphp
Question Yes No
Question {{ $i }} {{ $question_texts[$q->id] }} {{ $question_count[$q->id]['Yes'] }} {{ $question_count[$q->id]['No'] }}
Totals: {{ $grand_total_yes }} (@php print(number_format($grand_total_yes_percent, 2) )@endphp %) {{ $grand_total_no }} (@php print(number_format($grand_total_no_percent, 2) )@endphp %)


@else
@endif @if( ! empty($export_type) ) @endif @php $i = 1; @endphp @foreach($questions as $q) @php $i++; @endphp @endforeach @if( empty($export_type) ) @endif @foreach ($livecalls as $record) @if( ! empty($export_type) ) @endif @php $i = 1; @endphp @foreach($questions as $q) @php $i++; @endphp @endforeach @php $is_dnc_record = ( ! empty( $record->global_dnc ) || ! empty( $record->dealer_dnc ) )? true : false; @endphp @if( empty($export_type) ) @endif @if( empty($export_type) ) @php $colspan = 8 + $questions->count(); @endphp @endif @endforeach
Name Phone Email Year Make Model VIN Service DateCaller CommentsQuestion {{ $i }}Open
{{ $record->fname }} {{ $record->lname }} {{ $record->phone }} {{ $record->email }} {{ $record->vehicle_year }} {{ $record->vehicle_make }} {{ $record->vehicle_model }} {{ $record->vin }} {{ $record->service_date }} @php print( htmlentities($record->caller_comments)); @endphp{{ $answers[ $record->id ][ $q->id ] }}
@php print($record->caller_comments); @endphp