2023-05-09 09:33:50 +00:00
|
|
|
<div x-data="{ deleteProject: false }">
|
|
|
|
<x-naked-modal show="deleteProject" message='Are you sure you would like to delete this project?' />
|
|
|
|
@if ($resource_count > 0)
|
2023-05-25 12:05:44 +00:00
|
|
|
<x-forms.button disabled="First delete all resources.">
|
2023-05-09 09:33:50 +00:00
|
|
|
Delete
|
2023-05-25 12:05:44 +00:00
|
|
|
</x-forms.button>
|
2023-05-09 09:33:50 +00:00
|
|
|
@else
|
2023-05-25 12:05:44 +00:00
|
|
|
<x-forms.button x-on:click.prevent="deleteProject = true">
|
2023-05-09 09:33:50 +00:00
|
|
|
Delete
|
2023-05-25 12:05:44 +00:00
|
|
|
</x-forms.button>
|
2023-05-09 09:33:50 +00:00
|
|
|
@endif
|
|
|
|
</div>
|