@php $brandSection = $sections->get('brands') ?? null; @endphp @if($brandSection)

{{ $brandSection->title ?? __('Recently Added Cars') }}

{{ $brandSection->name ?? $brandSection->short_desc ?? __('Latest vehicles available for financing') }}

@else

{{ __('Recently Added Cars') }}

{{ __('Latest vehicles available for financing') }}

@endif
@if(isset($parentBrands) && $parentBrands->isNotEmpty()) @endif
@php $locale = app()->getLocale(); // Get all children brands (brands with parent_id) $allChildrenBrands = isset($allBrands) ? $allBrands->whereNotNull('parent_id') : collect(); @endphp @if(isset($parentBrands) && $parentBrands->isNotEmpty()) @foreach($parentBrands as $parentBrand) @endforeach @endif