@php $background_color=$company_details->theme_color; @endphp
@if ($company_details)

@if ($company_details->branch_name) {{$company_details->branch_name}} @endif

@if ($company_details->branch_address)
{{$company_details->branch_address}}
@endif @if ($company_details->branch_mob)
+974 {{$company_details->branch_mob}}
@endif @if ($company_details->branch_email)
{{$company_details->branch_email}}
@endif
@endif

{{$report_heading}}

@if (session('from_date')) @if (session('to_date') && session('from_date') )
From : {{session('from_date')}}
To : {{session('to_date')}}
@else
Date : {{session('from_date')}}
@endif @endif
Created By : {{Auth::user()->name}}
Created Date : {{date('Y-m-d')}}
@if(session('rating_exist')) @endif @php $i=1; $total_count=$total_average_count=0; @endphp @foreach ($report_data as $data) @php $average_count=$data['total_rating']/$data['total_form_count']; $total_count=$total_count+$data['total_form_count']; $total_average_count=$total_average_count+$average_count; @endphp @if(session('rating_exist')) @endif @php $i++ @endphp @endforeach @php if(count($report_data)!=0){ $total_average_count_rating=round($total_average_count/count($report_data)); } else{ $total_average_count_rating=0; } @endphp @if(session('rating_exist')) @endif
# Date Total ReviewsAVG Rating
{{$i}} {{$data['form_date']}} {{$data['total_form_count']}} @if($average_count<2) @elseif($average_count<3) @elseif($average_count<4) @elseif($average_count<5) @elseif($average_count==5) @else @endif
Total {{$total_count}} @if($total_average_count_rating < 2) @elseif($total_average_count_rating < 3) @elseif($total_average_count_rating < 4) @elseif($total_average_count_rating < 5) @elseif($average_count==5) @else @endif
Report was created on a computer and is valid without the signature and seal.