{{-- list-branchs --}} @php /* * loop->index inicializa en 0 * limit <= loop / limit = 0 para tomar 1 registro */ $limit = $limit_loop ?? 1; @endphp
@foreach($_restaurant->branches as $b) @if ($loop->index <= $limit)
@if($b->show_address) {!! getAddressBranch($b) !!} @endif @if($b->show_phone) {{ phoneBrige($b) }} @endif @if($_branch->search_criteria == 'code')

@include('shared.commons.iconsvg.icon-moto-delivery') @foreach(activeDeliveryAreasCode($b->delivery_areas_code) as $delivery_area) {{ $delivery_area->code }} @endforeach

@endif
@endif @endforeach
@if ( (!isset($limit_loop) && count($_restaurant->branches) >= 3) || (isset($limit_loop) && $limit_loop >= 2 && count($_restaurant->branches) >= 2))
@lang('trans.view_branches')
@endif