@props([
'name' => 'action',
'value' => '',
'color' => 'blue',
'id' => 'id_submit_button',
'confirm' => '',
'size' => 'md',
])
@php
$id = $id == 'id_submit_button' ? $id . '_' . $value : $id;
@endphp
<!-- admin-crud::submitbutton -->
<button type="submit" name="{{ $name }}" value="{{ $value }}" id="{{ $id }}"
class="inline-flex justify-center py-1 px-2 mb-0.5 border border-transparent shadow-sm text-{{ $size }} font-medium cursor-pointer
rounded-md text-white bg-{{ $color }}-500 hover:bg-{{ $color }}-600 focus:outline-none
focus:ring-2 focus:ring-offset-2 focus:ring-{{ $color }}-500
dark:bg-{{ $color }}-800 dark:hover:bg-{{ $color }}-600 dark:hover:text-{{ $color }}-200"
@if (strlen($confirm) > 0) onclick="return confirm('{{ $confirm }}')" @endif>
{{ $slot }}
</button>