team members and invitations
This commit is contained in:
@@ -36,9 +36,10 @@
|
||||
</div>
|
||||
|
||||
{{-- Update Project --}}
|
||||
<div class="bg-white overflow-hidden shadow-sm sm:rounded-lg p-6">
|
||||
<h3 class="text-lg font-medium text-gray-900 mb-4">Project Details</h3>
|
||||
<form method="POST" action="{{ route('projects.update', $project) }}" class="space-y-6">
|
||||
@can('update', $project)
|
||||
<div class="bg-white overflow-hidden shadow-sm sm:rounded-lg p-6">
|
||||
<h3 class="text-lg font-medium text-gray-900 mb-4">Project Details</h3>
|
||||
<form method="POST" action="{{ route('projects.update', $project) }}" class="space-y-6">
|
||||
@csrf
|
||||
@method('PATCH')
|
||||
|
||||
@@ -62,9 +63,11 @@
|
||||
<x-primary-button>Save Changes</x-primary-button>
|
||||
</form>
|
||||
</div>
|
||||
@endcan
|
||||
|
||||
{{-- Delete Project --}}
|
||||
<div class="bg-white overflow-hidden shadow-sm sm:rounded-lg p-6">
|
||||
@can('delete', $project)
|
||||
<div class="bg-white overflow-hidden shadow-sm sm:rounded-lg p-6">
|
||||
<h3 class="text-lg font-medium text-red-600 mb-2">Danger Zone</h3>
|
||||
<p class="text-sm text-gray-500 mb-4">Deleting a project will permanently remove all its issues and events.</p>
|
||||
<form method="POST" action="{{ route('projects.destroy', $project) }}"
|
||||
@@ -74,6 +77,7 @@
|
||||
<x-danger-button>Delete Project</x-danger-button>
|
||||
</form>
|
||||
</div>
|
||||
@endcan
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user