@php
$currentClient = '';
$i = 0;
@endphp
@foreach ($allProjects as $row)
@if ($login::userHasRole(\Leantime\Domain\Auth\Models\Roles::$manager) && $row['clientId'] !== session('userdata.clientId'))
@continue
@endif
@php
if ($row['clientName'] == '') {
$row['clientName'] = 'Not assigned to client';
}
@endphp
@if ($currentClient != $row['clientName'])
@if ($i > 0)
@endif
@php $currentClient = $row['clientName']; @endphp
@endif
@php $i++; @endphp
@endforeach