container.blade.php 494 B

1234567891011121314151617
  1. @props([
  2. 'style' => 'horizontal',
  3. 'route' => null,
  4. 'method' => 'POST',
  5. 'model' => null,
  6. 'handler' => 'Submit()',
  7. 'attribute' => 'enctype="multipart/form-data"',
  8. ])
  9. <form class="form-{{ $style }}" role="form" {{ $route ? "action=$route" : '' }} method="{{ $method === 'GET' ? 'GET' : 'POST' }}"
  10. onsubmit="return {{ $handler }}" {{ $attribute }}>
  11. @if (!in_array($method, ['GET', 'POST']))
  12. @method($method)
  13. @endif
  14. @csrf
  15. {!! $slot !!}
  16. </form>