@if (can('u'))
    @if ($modal)
    <a
        @if($noTarget)
            href="{{ $url }}"
        @else
            href="{{ site_url($url) }}"
        @endif
        class="btn btn-social btn-success btn-sm btn-sm visible-xs-block visible-sm-inline-block visible-md-inline-block visible-lg-inline-block"
        title="{{ $judul ?? 'Tambah Data' }}"
        @if(!$noTarget)
            data-target="#{{ $modalTarget ?? 'modalBox' }}"
        @endif
        data-remote="false"
        data-toggle="modal"
        data-backdrop="false"
        data-keyboard="false"
        data-title="{{ $judul ?? 'Tambah Data' }}"><i class="fa fa fa-plus"></i>
        {{ $judul ?? 'Tambah' }}</a>
    @else
        @if($buttonOnly)
        <a href="{{ site_url($url) }}" class="btn btn-success btn-sm" title="{{ $judul ?? 'Tambah Data' }}" @if ($blank) target="_blank" @endif><i class="{{ $icon ?? 'fa fa-plus' }}"></i></a>
        @else   
        <a href="{{ site_url($url) }}" class="btn btn-social btn-success btn-sm visible-xs-block visible-sm-inline-block visible-md-inline-block visible-lg-inline-block" title="{{ $judul ?? 'Tambah Data' }}" @if ($blank) target="_blank" @endif><i
            class="fa fa-plus "></i>{{ $judul ?? 'Tambah' }}</a>
        @endif
    @endif
@endif