@php
if(isset($preIcon)) {
$preIcon = '';
}
if(isset($postIcon)) {
$postIcon = '';
}
if(!isset($onClick) && isset($modal)) {
if($modal instanceof \KFramework\Components\Visual\Modal) {
$onClick = 'showModal(\'' . $modal->uuid . '\')';
} elseif($modal) {
$onClick = 'showModal(\'' . $modal . '\')';
}
}
if(isset($action)) {
$onClick = 'kfwExecuteAction(this, (this.closest(\'form\') ? new FormData(this.closest(\'form\')) : null), '
. (isset($confirmationMessage) ? \Illuminate\Support\Js::from($confirmationMessage) : null) . ')';
}
$kfwButtonBadgeClass = (isset($prefix) || isset($suffix)) ? ' kfw-has-badge' : '';
@endphp
@if(!$hidden)
@if(isset($preIcon) || isset($postIcon) || isset($label) || isset($name))
@if(isset($modal) && $modal instanceof \KFramework\Components\Visual\Modal)
@php
if(isset($customProperties['kfw_table_record_key'])) {
$modal->setCustomProperty('kfw_table_record_key', $customProperties['kfw_table_record_key']);
}
if(isset($customProperties['kfw_table_record_signature'])) {
$modal->setCustomProperty('kfw_table_record_signature', $customProperties['kfw_table_record_signature']);
}
if(isset($customProperties['kfw_table_uuid'])) {
$modal->setCustomProperty('kfw_table_uuid', $customProperties['kfw_table_uuid']);
}
@endphp
{!! $modal !!}
@endif
@if(isset($url))
@endif
@if(isset($url))
@endif
@endif
@endif