master.blade.php000064400000004017150250177370007627 0ustar00 {{env('APP_NAME')}} {{-- javascript --}} {{-- css --}} @yield('css') @auth() @include('navbar.sidenav') @endauth
@yield('content')
@yield('javascript') layout.blade.php000064400000036533150250177370007661 0ustar00 {{env('APP_NAME')}} @yield('css')
@if(Auth::user() && Auth::user()->type == "admin") @include('navbar.navbar') @endif
@if(Auth::user() && Auth::user()->type == "admin") @endif @if(Auth::user() && Auth::user()->type == "admin") @yield('content') @endif {{-- --}}
@if(Auth::user() && Auth::user()->type == "admin") @yield('javascript') @endif {{-- --}} footer.blade.php000064400000000027150250177370007627 0ustar00reports/counts.blade.php000064400000015552150250177370011353 0ustar00 Autohub Rating {{--
--}}
autohub

Blk. 15, Ford Global Building., 32nd St., Cor. Rizal Drive, Crescent Park West, BGC, Taguig City
{{\Carbon\Carbon::now()->format('M. d, Y')}}


@foreach($data as $row)
System Name: {{ $system_name }}
Template Name: {{ $template_name }}
Total Respondents: {{$row->total}}
Scale: (Average = 5 : 'Excellent', Average = 4 : 'Very Satisfactory', Average = 3 : 'Satisfactory', Average = 2 : 'Dissatisfactory', Average = 1 : 'Very Dissatisfactory')
@if(!empty($row->total)) list, function($a, $b) { return $b['rating'] - $a['rating']; // sort by average value in descending order }); for($i = 0; $i < $row->total; $i++) { $average = $row->list[$i]['rating']; $category = ''; // initialize variable for category if ($average == 5) { $category = 'Excellent'; } elseif ($average == 4) { $category = 'Very Satisfactory'; } elseif ($average == 3) { $category = 'Satisfactory'; } elseif ($average == 2) { $category = 'Dissatisfied'; } elseif ($average == 1) { $category = 'Very Dissatisfied'; } if(!isset($grouped_data[$category])) { $grouped_data[$category] = []; } $grouped_data[$category][] = $row->list[$i]; $totals[$average - 1]++; // increment count for category } ?> @if(count($grouped_data) > 0) @foreach ($grouped_data as $category => $group)
{{$category}}: {{ $totals[array_search($category, ['Very Dissatisfied', 'Dissatisfied', 'Satisfactory', 'Very Satisfactory', 'Excellent'])] }}
@foreach ($table_headers as $header) @endforeach @foreach($group as $item) @foreach($table_body as $data) @endforeach @endforeach
{{ $header }}
{{$loop->iteration}}{{ $item[$data] }}
@endforeach @else

No data to show.

@endif @else

No data to show.

@endif @endforeach
{{-- --}} reports/questions.blade.php000064400000011100150250177370012053 0ustar00 Autohub Rating {{--
--}}

Blk. 15, Ford Global Building., 32nd St., Cor. Rizal Drive, Crescent Park West, BGC, Taguig City
{{\Carbon\Carbon::now()->format('M. d, Y')}}


@foreach($data as $row)
Total Questions: {{$row->total}}
@if(!empty($row->total)) @foreach ($table_headers as $header) @endforeach @for($i = 0; $i < $row->total; $i++) @foreach($table_body as $data) @endforeach @endfor
{{ $header }}
{{$i+1}}{{$row->list[$i]->$data}}
@else

No data to show.

@endif @endforeach
{{-- --}} reports/average_per_question.blade.php000064400000016335150250177370014247 0ustar00 Autohub Rating
autohub

Blk. 15, Ford Global Building., 32nd St., Cor. Rizal Drive, Crescent Park West, BGC, Taguig City
{{\Carbon\Carbon::now()->format('M. d, Y')}}


@foreach($data as $row) @if(!empty($row->total))
Company Name: {{$company}}
System Name: {{$system_name}}
Template Name: {{$template_name}}
Total: {{$row->total}}

{{-- @for($i = 0; $i < $row->total; $i++) @foreach($row->list[$i]['ratings'] as $rating) @endforeach @endfor
No. Questions
{{$loop->iteration}} {{$rating['questions']}}
--}} {{-- @foreach ($table_headers as $header) @endforeach @php $startIndex = 0; // Start index at 1 @endphp @for($i = 1; $i < $row->total; $i++) @foreach($table_body as $data) @endforeach @endfor
{{ $header }}
{{$startIndex+$i}}{{$row->list[$i][$data]}}
--}} @foreach ($table_headers as $header) @endforeach @php $startIndex = 1; // Start index at 1 @endphp @foreach ($table_body as $row) {{-- @foreach ($row as $cell) @endforeach --}} @endforeach
{{ $header }}
{{ $startIndex++ }} {{$row[0]}} {{$row[1]}} {{$row[2]}} {{$row[3]}}{{ $cell }}
@else

No data to show.

@endif @endforeach {{--

the second page

--}}
{{-- --}} reports/questionnaire.blade.php000064400000011536150250177370012724 0ustar00 Autohub Rating {{--
--}}

Blk. 15, Ford Global Building., 32nd St., Cor. Rizal Drive, Crescent Park West, BGC, Taguig City
{{\Carbon\Carbon::now()->format('M. d, Y')}}


@foreach($data as $row)
@if(!($date_from) || !($date_to)) Date Filter: None
@else Date Filter: {{$date_from}} - {{$date_to}}
@endif Total Survey Form: {{$row->total}}
@if(!empty($row->total)) @foreach ($table_headers as $header) @endforeach @for($i = 0; $i < $row->total; $i++) @foreach($table_body as $data) @endforeach @endfor
{{ $header }}
{{$i+1}}{{$row->list[$i]->$data}}
@else

No data to show.

@endif @endforeach
{{-- --}} reports/comment_summary.blade.php000064400000011433150250177370013251 0ustar00 Autohub Rating {{--
--}}

Blk. 15, Ford Global Building., 32nd St., Cor. Rizal Drive, Crescent Park West, BGC, Taguig City
{{\Carbon\Carbon::now()->format('M. d, Y')}}


@foreach($data as $row)
System Name: {{ $system_name }}
Template Name: {{ $template_name }}
Total Response: {{$row->total}}
@if(!empty($row->total)) @foreach ($table_headers as $header) @endforeach @for($i = 0; $i < $row->total; $i++) @foreach($table_body as $data) {{-- --}} @endforeach @endfor
{{ $header }}
{{$i+1}}{{dd($row->list[$i])}}{{$row->list[$i][$data] }}
@else

No data to show.

@endif @endforeach {{--

the second page

--}}
{{-- --}} reports/templates_questions.blade.php000064400000013423150250177370014143 0ustar00 Autohub Rating Prepared By: {{Auth::user()->f_name . " " . Auth::user()->l_name}}

Blk. 15, Ford Global Building., 32nd St., Cor. Rizal Drive, Crescent Park West, BGC, Taguig City
{{\Carbon\Carbon::now()->format('M. d, Y')}}


{{-- @foreach($data as $row)
Total Questions Template: {{$row->total}}
@if(!empty($row->total)) @foreach ($table_headers as $header) @endforeach @for($i = 0; $i < $row->total; $i++) @foreach($table_body as $data) @endforeach @endfor
{{ $header }}
{{$i+1}}{{$row->list[$i]->$data}}
@else

No data to show.

@endif @endforeach --}} @foreach($data as $row)
{{-- Total Templates: {{$row->total}} --}} Template: {{$template_title}}
@if(!empty($row->total)) @foreach ($table_headers as $header) @endforeach @php $count = 1; @endphp @foreach($row->list as $template) @foreach ($template->questions as $item) {{-- --}} @endforeach @endforeach
{{ $header }}
{{$count++}} {{--
    @foreach($template->questions as $question) --}} {{$item['title']}} {{-- @endforeach --}} {{--
--}}
{{ \Carbon\Carbon::parse($item['created_at'])->format('M. d, Y') }}{{ $item['created_at']->format('Y-m-d') }}
@else

No data to show.

@endif @endforeach
{{-- --}} reports/reviews.blade.php000064400000017166150250177370011527 0ustar00 Autohub Rating
autohub

Blk. 15, Ford Global Building., 32nd St., Cor. Rizal Drive, Crescent Park West, BGC, Taguig City
{{\Carbon\Carbon::now()->format('M. d, Y')}}


@foreach($data as $row) @if(!empty($row->total))
Company Name: {{$company}}
System Name: {{$system_name}}
Template Name: {{$template_name}}
Total Respondents: {{$row->total}}

{{-- @for($i = 0; $i < $row->total; $i++) @foreach($row->list[$i]['ratings'] as $rating) @endforeach @endfor
No. Questions
{{$loop->iteration}} {{$rating['questions']}}
--}} @foreach ($table_headers as $header) @endforeach @for($i = 0; $i < $row->total; $i++) @foreach($table_body as $data) @endforeach @endfor
{{ $header }}
{{$i+1}}{{$row->list[$i][$data]}} @php $ratings = collect($row->list[$i]['ratings']); $avgRating = $ratings->avg('rating'); @endphp @foreach($row->list[$i]['ratings'] as $rating) @endforeach {{-- --}} @foreach($row->list[$i]['ratings'] as $rating) @endforeach
Question No: {{$rating['id']}} Average: Rating
Rating: {{$rating['rating']}}{{number_format($avgRating,1)}}
@else

No data to show.

@endif @endforeach {{--

the second page

--}}
{{-- --}} reports/systems.blade.php000064400000011112150250177370011533 0ustar00 Autohub Rating {{--
--}}

Blk. 15, Ford Global Building., 32nd St., Cor. Rizal Drive, Crescent Park West, BGC, Taguig City
{{\Carbon\Carbon::now()->format('M. d, Y')}}


@foreach($data as $row)
Total Systems: {{$row->total}}
@if(!empty($row->total)) @foreach ($table_headers as $header) @endforeach @for($i = 0; $i < $row->total; $i++) @foreach($table_body as $data) @endforeach @endfor
{{ $header }}
{{$i+1}}{{$row->list[$i]->$data}}
@else

No data to show.

@endif @endforeach {{--

the second page

--}}
{{-- --}} reports/questions_template.blade.php000064400000011046150250177370013757 0ustar00 Autohub Rating {{--
--}}

Blk. 15, Ford Global Building., 32nd St., Cor. Rizal Drive, Crescent Park West, BGC, Taguig City
{{\Carbon\Carbon::now()->format('M. d, Y')}}


@foreach($data as $row)
Total Questions Template: {{$row->total}}
@if(!empty($row->total)) @foreach ($table_headers as $header) @endforeach @for($i = 0; $i < $row->total; $i++) {{-- --}} @foreach($table_body as $data) {{-- @if($data == 'templateTitles') @else --}} {{-- @endif --}} @endforeach @endfor
{{ $header }}
{{$i+1}}{{dd($row)}}{{ implode(', ', $row->list[$i]->$data) }}{{$row->list[$i]->$data}}
@else

No data to show.

@endif @endforeach
{{-- --}} reports/templates.blade.php000064400000011152150250177370012026 0ustar00 Autohub Rating {{--
--}}

Blk. 15, Ford Global Building., 32nd St., Cor. Rizal Drive, Crescent Park West, BGC, Taguig City
{{\Carbon\Carbon::now()->format('M. d, Y')}}


@foreach($data as $row)
Total Templates: {{$row->total}}
@if(!empty($row->total)) @foreach ($table_headers as $header) @endforeach @for($i = 0; $i < $row->total; $i++) @foreach($table_body as $data) @endforeach @endfor
{{ $header }}
{{$i+1}}{{$row->list[$i]->$data}}
@else

No data to show.

@endif @endforeach {{--

the second page

--}}
{{-- --}} layout2.blade.php000064400000025074150250177370007741 0ustar00 {{env('APP_NAME')}} @yield('css')
@yield('content')
@yield('javascript') {{-- --}}