@if (count($brands) > 0)
@php
$numberLink = false;
@endphp
@foreach($chars as $char)
@if(is_numeric($char))
@if(!$numberLink)
-
#
@php
$numberLink = true;
@endphp
@endif
@continue
@endif
-
{{$char}}
@endforeach
@php
$currentChar = '';
@endphp
@foreach ($brands as $key => $brand)
@php
$brandStart = \App\Helpers\Helper::strNormalize(strtoupper(mb_substr($brand->name, 0, 1)));
@endphp
@if(is_numeric($brandStart))
@php
$brandStart = '#';
@endphp
@endif
@if($brandStart !== $currentChar)
@php
$currentChar = $brandStart;
@endphp
{{$currentChar}}
@endif
@endforeach
@else
{{ __("No Brands Found.") }}
@endif