@foreach($companies as $company) @if(!$company->top == 1)
@if($rate <= 1) Отрицательный @elseif($rate <=2) Нейтральный @elseif($rate> 2) Положительный @else Неопознано @endif
@php $first_w = substr($company->company_img, 0, 1); @endphp @if($first_w == '/') img @else img @endif
{{(int)$company->getComments->count()}} img
{{$company->name}} {{--

{{mb_substr(strip_tags($company->description) ,0,370) . '...'}}

--}} @if($company->meta_description)

{{mb_substr($company->meta_description ,0,370)}}

@else

{{mb_substr($comp_dess, 0, 370)}}

@endif
@if(Auth::check())
@if(Auth::user()->status_pay == 1 && !empty($profile) && $profile == 1) @if($check_is_top_company == 0) Поднять в Топ @elseif($check_is_top_company == 1 && $company->top == 0) Поднять в Топ @endif @if($company->top == 1) Убрать з Топ @endif @endif
@endif
@else
img
{{(int)$company->getComments->count()}} img
{{$company->name}} @if($company->meta_description)

{{mb_substr(strip_tags($company->meta_description) ,0,370) . ''}}

@else

{{mb_substr(strip_tags($company->description) ,0,370) . ''}}

@endif
@if(Auth::check())
@if(Auth::user()->status_pay == 1 && !empty($profile) && $profile == 1) @if($check_is_top_company == 0) Поднять в Топ @elseif($check_is_top_company == 1 && $company->top == 0) Поднять в Топ @endif @if($company->top == 1) Убрать з Топ @endif @endif
@endif
@endif @endforeach