@props([ 'id' => 'form_id', 'action' => '', 'method' => 'POST', 'lang' => true, 'buttons' => true, ]) @php $httpMethod = strtoupper($method); $spoof = !in_array($httpMethod, ['GET','POST']); @endphp
@csrf @if($spoof) @method($httpMethod) @endif {{ $slot }} @if($buttons)
@endif
@push('scripts') @endpush