@props([
    'href',
    'label' => null,
    'permission' => null,
    'icon' => 'fe fe-plus',
])

@php
    $label = $label ?? __('ui.create');
@endphp

@if ($permission)
    @can($permission)
        <x-ui.buttons.primary :href="$href" :icon="$icon">{{ $label }}</x-ui.buttons.primary>
    @endcan
@else
    <x-ui.buttons.primary :href="$href" :icon="$icon">{{ $label }}</x-ui.buttons.primary>
@endif
