Customer Survey Average per Week
{!! 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))}}
| 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 |
|---|