Hi @shawt not sure I understand correctly what you want... If you ned just 1 category, why you use loop?
insted of
@foreach($categories as $category)
...
@endforeach
output the first one
<li class="breadcrumb-item br-item" style="margin-left: -1%;">
<a data-link="{{$categories->first()->id}}" href="{{ url('catalog/main/' . $categories->first()->id) }}"> {{ $categories->first()->name }}</a>
</li>
or in your controller replace
$categories = Categories::where('subcategory', 0)->get();
with
$category = Categories::where('subcategory', 0)->first();
it will give you 1 category instead of collection
Hope it helps. Or try to explain better what you need