@php $menuItems = [ [ 'show' => auth()->user()->can('project.view'), 'text' => __('lang.view'), 'url' => route('project.view', ['id' => $row->id]), 'icon' => 'mdi:show', ], [ 'show' => auth()->user()->can('project.update'), 'text' => __('lang.edit'), 'icon' => 'mdi:pencil', 'attributes' => 'wire:click="edit(\'' . $row->uuid . '\')"' ], [ 'show' => auth()->user()->can('project.view.measure.residential') && $row->isResidential(), 'text' => __('lang.maps_measure'), 'url' => route('project.view.measure.residential', ['id' => $row->id]), 'icon' => 'mdi:map-marker', ], [ 'show' => auth()->user()->can('project.agreement.index'), 'text' => __('lang.agreements'), 'icon' => 'mdi:handshake', 'attributes' => 'wire:click="openModalSendAgreement(\'' . $row->uuid . '\')"' ], [ 'show' => auth()->user()->can('project.delete'), 'text' => __('lang.delete'), 'icon' => 'mdi:trash', 'attributes' => 'wire:click="delete(\'' . $row->uuid . '\')"' ], ]; @endphp