@if (isset($create_url))
    <a href="{{ $create_url }}">
        <button type="button" class="btn btn-success btn-sm btn-social" title="{{ $create_text ?? 'Tambah' }}" data-testid="btn-tambah">
            <i class="fa fa-plus"></i>{{ $create_text ?? 'Tambah' }}
        </button>
    </a>
@endif

@if (isset($import_url))
    <a href="{{ $import_url }}">
        <button type="button" class="btn btn-warning btn-sm btn-social" title="{{ $import_text ?? 'Impor' }}">
            <i class="fa fa-download"></i>{{ $import_text ?? 'Impor' }}
        </button>
    </a>
@endif

@if (isset($export_url))
    <a href="{{ $export_url }}">
        <button type="button" class="btn btn-primary btn-sm btn-social" title="{{ $export_text ?? 'Ekspor' }}">
            <i class="fa fa-upload"></i>{{ $export_text ?? 'Ekspor' }}
        </button>
    </a>
@endif

@if (isset($desa_url))
    <form action="{{ $desa_url }}" method="POST" class="inline">
        {{ csrf_field() }}
        <button type="submit" class="btn bg-purple btn-sm btn-social" title="Ambil Data Desa Dari TrackSID">
            <i class="fa fa-retweet"></i>{{ $desa_text ?? 'Ambil ' . config('setting.sebutan_desa') }}
        </button>
    </form>
@endif

@if (isset($back_url))
    <a href="{{ $back_url }}">
        <button type="button" class="btn btn-info btn-sm btn-social" title="{{ $back_text ?? 'Kembali' }}">
            <i class="fa fa-arrow-left"></i> {{ $back_text ?? 'Kembali' }}
        </button>
    </a>
@endif

@if (isset($modal_url))
    <button type="button" class="btn btn-success btn-sm btn-social" data-toggle="modal" data-target="{{ $modal_url }}">
        <i class="fa fa-plus"></i>{{ $modal_text ?? 'Tambah' }}
    </button>
@endif

@if (isset($print))
    <a href="{{ $print }}" target="{{ $print_new_tab ?? true ? '_blank' : '_self' }}">
        <button type="button" class="btn bg-purple btn-sm btn-social" title="{{ $print_text ?? 'Cetak' }}">
            <i class="fa fa-print"></i>{{ $print_text ?? 'Cetak' }}
        </button>
    </a>
@endif

@if (isset($goto_table))
    <a href="{{ $goto_table }}">
        <button type="button" class="btn btn-warning btn-sm btn-social" title="{{ $create_text ?? 'Jenis Document' }}">
            <i class="fa fa-plus"></i>{{ $create_text ?? 'Jenis Document' }}
        </button>
    </a>
@endif

@if (isset($download_zip))
    <a href="{{ $download_zip }}">
        <button type="button" class="btn btn-danger btn-sm btn-social" title="{{ $create_text ?? 'Download ZIP' }}">
            <i class="glyphicon glyphicon-hdd"></i>{{ $create_text ?? 'Download ZIP' }}
        </button>
    </a>
@endif
