@include('includes/notifications')

Customer Survey Average per Week

{{Form::open(array('route' => 'survey_report_summary.store', 'class' => 'form-horizontal form-label-left'))}}
{!! Form::select('branch[]', $branches, null, array('id' => 'company', 'class' => 'form-control', 'data-placeholder' => 'SELECT BRANCH')) !!}
{!! Form::text('date',$date,array('class' => 'form-control', 'id' => 'date_from')) !!}

{{Form::close()}}

From {{date('M d Y',strtotime($date))}} to {{date('M d Y',strtotime($date_to))}}

@foreach($surveys as $survey) @endforeach
Rating Respondent Total
{{ $survey->question1 }} {{ $survey->rate }} {{ $survey->total }}
TOTAL {{ $total_respondents }} {{ $total_rating }}
AVERAGE @if($total_rating != 0 && $total_respondents != 0) {{ number_format($total_rating/$total_respondents,3) }} @else 0 @endif