@php
if (
auth()
->user()
->can('manage_organizations')
) {
if ($item->id) {
$action = route('organizations.update', $item->id);
} else {
$action = route('organizations.store');
}
} else {
$action = route('settings.organization.save', $item->id);
}
@endphp