';
echo '| '.$rowNumber++.' | ';
echo ''.$acct->code.' | ';
echo '';
if ($hasChildren) {
echo $indent.'';
} else {
echo $indent.'';
}
echo 'user()->can('account.view')) {
echo ' data-href="'.route('view.account', $acct->id).'" style="cursor:pointer;"';
}
echo '>'.$acct->name.'';
echo ' | ';
echo ''.ucfirst($acct->type).' | ';
echo '
';
if(auth()->user()->can('account.edit')) {
echo '- Edit
';
}
if(auth()->user()->can('account.delete')) {
echo '- Delete
';
}
echo '
| ';
echo '
';
if ($hasChildren) {
renderAccountRows($acct->childrenRecursive, $rowNumber, $level + 1);
}
}
}
renderAccountRows($accounts, $rowNumber);
@endphp