@foreach ($brands as $key => $brand)
@php $brandMetas = $brand->getMetas->where('title', 'brand_logo')->first(); $logoMedia = $brand->media_url; if($brandMetas && $brandMetas->getFirstFile){ if($brandMetas->getFirstFile->hasGeneratedConversion('thumb')){ $logoMedia = $brandMetas->getFirstFile->getUrl('thumb'); }else{ $logoMedia = $brandMetas->getFirstFile->getUrl(); } } @endphp @if(in_array(pathinfo($logoMedia, PATHINFO_EXTENSION), $imgExtensions)) @else @endif
{{ $brand->title ?? '' }}
@php $brandMetas = $brand->getMetas->where('title', 'url')->first(); $urlValue = []; if($brandMetas){ $urlValue = $brandMetas->decoded_value ?? []; } @endphp

@foreach ($urlValue as $key => $url) {{ $url ?? '' }} @endforeach

    @php $colorMeta = $brand->getMetas->where('title', 'color_code')->first(); $colorCodes = []; if($colorMeta){ $colorCodes = $colorMeta->decoded_value ?? []; } @endphp @foreach ($colorCodes as $key => $color)
  • @endforeach
@endforeach