File: D:/HostingSpaces/SBogers95/rentman.io/resources/views/site/components/compareTable.blade.php
<div class="compare-table c-compare-table js-compare-table" id="compareTable">
@include('site.components.heading', ['headingTitle' => ($pricingLabels->compare_table_heading ?? 'Missing: compare_table_heading')])
<table class="c-compare-table__table">
<thead>
<tr>
<th class="c-compare-table__heading">{{ $pricingLabels->compare_options ?? 'Missing: compare_options' }}</th>
@foreach($packages as $package)
<th class="c-compare-table__heading" scope="col">
{{ $package->translation->name }}
</th>
@endforeach
</tr>
</thead>
<tbody class="c-compare-table__body">
@foreach(config('package.table') as $tableGroupKey => $tableGroupValues)
@if($tableGroupKey != 'options')
<tr>
<th class="c-compare-table__divider" scope="row" colspan="{{ $packages->count()+1 }}">
{!! $pricingLabels->{$tableGroupKey} ?? 'Missing: '.$tableGroupKey !!}
</th>
</tr>
@endif
@foreach($tableGroupValues as $tableGroupValue)
<tr class="c-compare-table__data-row">
{{-- <th scope="row" class="c-compare-table__row-heading @if(in_array($tableGroupValue, config('package.dropdownFields'))) hide-description c-compare-table__row-heading--has-dropdown js-toggle-description @endif ">--}}
{{-- {{ isset($pricingLabels->{$tableGroupValue}) ? $pricingLabels->{$tableGroupValue} : 'Missing: '.$tableGroupValue }}--}}
{{-- @if(in_array($tableGroupValue, config('package.dropdownFields')))--}}
{{-- <div class="c-compare-table__description">{{ $pricingLabels->{$tableGroupValue.'_tooltip'} ?? 'Missing: '.$tableGroupValue.'_tooltip' }}</div>--}}
{{-- @endif--}}
{{-- </th>--}}
<th scope="row" class="c-compare-table__row-heading">
@if(in_array($tableGroupValue, config('package.dropdownFields')))
<span class="c-tooltip c-tooltip--text c-tooltip--dark-pop-up js-pricing-prevent-click" data-tooltip="{{ $pricingLabels->{$tableGroupValue.'_tooltip'} ?? 'Missing: '.$tableGroupValue.'_tooltip' }}">{{ isset($pricingLabels->{$tableGroupValue}) ? $pricingLabels->{$tableGroupValue} : 'Missing: '.$tableGroupValue }}</span>
@else
{{ isset($pricingLabels->{$tableGroupValue}) ? $pricingLabels->{$tableGroupValue} : 'Missing: '.$tableGroupValue }}
@endif
</th>
@foreach($packages as $package)
<td>
{{-- Check if value has custom value method --}}
@if(in_array($tableGroupValue, config('package.customFields')))
@switch($tableGroupValue)
@case('user_restriction')
<p class="u-text-align-center">
@if($package->user_restriction)
{{ $pricingLabels->limited_to_one_user ?? 'Missing: limited_to_one_user' }}
@elseif($package->price_additional_user_eu !== 0 && $package->price_additional_user_usd !== 0)
<span class="c-compare-table__price price_additional_user js-pricing-symbol js-pricing-price" data-price-eur="{{ $package->price_additional_user_eu }}" data-price-usd="{{ $package->price_additional_user_usd }}" data-currency-symbol="€">{{ $package->price_additional_user_eu }}</span>@if(app()->getLocale() != 'ru') /@endif {{ $pricingLabels->month_long ?? 'Missing: month_long' }}
@else
-
@endif
</p>
@break
@case('project_restriction')
<p class="u-text-align-center">
@if($package->project_restriction)
100
@elseif($package->price_additional_user_eu !== 0 && $package->price_additional_user_usd !== 0)
{{ $pricingLabels->no_limit ?? 'Missing: no_limit' }}
@else
-
@endif
</p>
@break
@case('restrictions')
<p class="u-text-align-center">
@if(!$package->project_restriction && !$package->user_restriction )
{{ $pricingLabels->no_restriction ?? 'Missing: no_restriction' }}<br>
@else
@if($package->user_restriction){{ $pricingLabels->user_restriction ?? 'Missing: user_restriction' }} <br/><br/>@endif
@if($package->project_restriction){!! $pricingLabels->project_restriction ?? 'Missing: project_restriction' !!}@endif
@endif
</p>
@break
@case('storage')
<p>@if($package->$tableGroupValue !== 0) {{ $package->$tableGroupValue }} {{ app()->getLocale() == 'ru' ? 'ГБ' : 'GB' }} @else - @endif</p>
@break
@case('custom_templates')
<p>@if($package->$tableGroupValue) <span class="c-compare-table__check"></span> @else {{ $pricingLabels->custom_templates_own_paper ?? 'Missing: custom_templates_own_paper' }}@endif</p>
@break
@case('webshop')
<p class="u-text-align-center">
@if($package->$tableGroupValue)
{{ $pricingLabels->addon ?? 'Missing: addon' }}
@else
-
@endif
</p>
@break
@default
<p>{{ $pricingLabels->{$tableGroupValue . '_options' . $package->$tableGroupValue} ?? 'Missing: ' . $tableGroupValue . '_options' . $package->$tableGroupValue }}</p>
@break
@endswitch
@else
<p>@if($package->$tableGroupValue) <span class="c-compare-table__check"></span> @else - @endif</p>
@endif
</td>
@endforeach
</tr>
@endforeach
@endforeach
</tbody>
</table>
</div>