{{-- A POST/PATCH/DELETE action rendered as a button or dropdown item, with an optional SweetAlert confirmation (handled in public/js/admin.js). --}} @props([ 'action', 'method' => 'POST', 'confirm' => null, 'icon' => null, 'dropdown' => false, ])
@csrf @if (strtoupper($method) !== 'POST') @method($method) @endif