Skip to content

Commit

Permalink
delete button for presets
Browse files Browse the repository at this point in the history
  • Loading branch information
cholladay0816 committed Sep 7, 2023
1 parent 17f4d74 commit c552d05
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions resources/views/commissionpresets/create.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,24 @@ class="shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:t
<a href="{{ redirect()->back()->getTargetUrl() }}" class="bg-white py-2 px-4 border border-gray-300 rounded-md shadow-sm text-sm font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500">
Cancel
</a>
@if(isset($commissionPreset))
<button type="submit" form="deleteform" class="ml-3 inline-flex justify-center py-2 px-4 border border-transparent shadow-sm text-sm font-medium rounded-md text-white bg-red-600 hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500">
Delete
</button>
@endif
<button type="submit" class="ml-3 inline-flex justify-center py-2 px-4 border border-transparent shadow-sm text-sm font-medium rounded-md text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500">
Save
</button>
</div>
</div>
</div>
</form>
@if(isset($commissionPreset))
<form id="deleteform" method="post" action="{{ route('commissionpresets.destroy', $commissionPreset) }}">
@csrf
@method('DELETE')
</form>
@endif
</div>
</div>

Expand Down

0 comments on commit c552d05

Please sign in to comment.