14 lines
449 B
PHP
14 lines
449 B
PHP
<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)
|
|
<x-inputs.button isWarning disabled="First delete all resources.">
|
|
Delete
|
|
</x-inputs.button>
|
|
@else
|
|
<x-inputs.button isWarning x-on:click.prevent="deleteProject = true">
|
|
Delete
|
|
</x-inputs.button>
|
|
@endif
|
|
|
|
</div>
|