| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- @props([
- 'id',
- 'title' => null,
- 'size' => null, // lg, sm, etc.
- 'position' => 'center', // center, sidebar, etc.
- 'labelledby' => null,
- 'backdrop' => true,
- 'keyboard' => true,
- 'form' => false,
- 'focus' => true,
- ])
- <div class="modal fade" id="{{ $id }}" role="dialog" aria-hidden="true" aria-labelledby="{{ $labelledby ?? $id }}" tabindex="-1"
- @if (!$backdrop) data-backdrop="static" @endif @if (!$keyboard) data-keyboard="false" @endif
- @if ($focus) data-focus-on="input:first" @endif>
- <div class="modal-dialog modal-simple @if ($size) modal-{{ $size }} @endif modal-{{ $position }}">
- <div class="modal-content" style="max-height: 80vh; overflow: auto;">
- @if ($title || isset($header))
- <div class="modal-header">
- <button class="close" data-dismiss="modal" type="button" aria-label="{{ trans('common.close') }}">
- <span aria-hidden="true">×</span>
- </button>
- @if (isset($header))
- {{ $header }}
- @elseif ($title)
- <h4 class="modal-title">
- {{ $title }}
- </h4>
- @endif
- </div>
- @endif
- @if ($form)
- {{ $slot }}
- @else
- <div class="modal-body">
- {{ $slot }}
- </div>
- @endif
- @if (isset($footer))
- <div class="modal-footer">
- {{ $footer }}
- </div>
- @elseif(isset($actions))
- <div class="modal-footer">
- <button class="btn btn-default mr-auto" data-dismiss="modal">{{ trans('common.close') }}</button>
- {{ $actions }}
- </div>
- @endif
- </div>
- </div>
- </div>
|