@if ($individual)
	<nav class="flex flex-col space-y-2" aria-label="Navigation Links">
		<a href="{{ route('crm.individuals.edit', $individual) }}"
			class="
            @if (url()->current() == route('crm.individuals.edit', $individual)) bg-primary border-primary text-white dark:bg-primary dark:border-primary dark:text-white 
            @else bg-gray-50 text-gray-500 dark:bg-black/20 dark:border-white/10 dark:text-white/70 hover:text-gray-700 dark:hover:text-gray-300 @endif
            py-3 px-3 inline-flex items-center gap-2 text-sm font-medium text-center border rounded-sm
        ">
			<i class="ri ri-shield-user-line"></i> {{ __('forms.BasicData') }}
		</a>

		<a href="{{ route('osiguranje.insurance-policies.index', $individual->entity) }}"
			class="
            @if (url()->current() == route('osiguranje.insurance-policies.index', $individual->entity)) bg-primary border-primary text-white dark:bg-primary dark:border-primary dark:text-white 
            @else bg-gray-50 text-gray-500 dark:bg-black/20 dark:border-white/10 dark:text-white/70 hover:text-gray-700 dark:hover:text-gray-300 @endif
            py-3 px-3 inline-flex items-center gap-2 text-sm font-medium text-center border rounded-sm
        ">
			<i class="ri ri-shield-user-line"></i> {{ __('forms.policies') }}
		</a>
	</nav>
@else
	<nav class="flex flex-col space-y-2" aria-label="Navigation Links">
		<a href="javascript:void(0)"
			class="
            bg-gray-50 text-gray-500 dark:bg-black/20 dark:border-white/10 dark:text-white/70 hover:text-gray-700 dark:hover:text-gray-300
            py-3 px-3 inline-flex items-center gap-2 text-sm font-medium text-center border rounded-sm text-red-500
        ">
			<i class="ri ri-shield-user-line"></i> {{ __('forms.BasicData') }}
		</a>
	</nav>
@endif
@if ($errors->any())
	<div class="alert alert-danger">
		<ul>
			@foreach ($errors->all() as $error)
				<li>{{ $error }}</li>
			@endforeach
		</ul>
	</div>
@endif
