<?php $attributes ??= new \Illuminate\View\ComponentAttributeBag;

$__newAttributes = [];
$__propNames = \Illuminate\View\ComponentAttributeBag::extractPropNames((['entity', 'policy']));

foreach ($attributes->all() as $__key => $__value) {
    if (in_array($__key, $__propNames)) {
        $$__key = $$__key ?? $__value;
    } else {
        $__newAttributes[$__key] = $__value;
    }
}

$attributes = new \Illuminate\View\ComponentAttributeBag($__newAttributes);

unset($__propNames);
unset($__newAttributes);

foreach (array_filter((['entity', 'policy']), 'is_string', ARRAY_FILTER_USE_KEY) as $__key => $__value) {
    $$__key = $$__key ?? $__value;
}

$__defined_vars = get_defined_vars();

foreach ($attributes->all() as $__key => $__value) {
    if (array_key_exists($__key, $__defined_vars)) unset($$__key);
}

unset($__defined_vars, $__key, $__value); ?>

<form method="POST"
      action="<?php echo e(route('osiguranje.insurance-policies.docs-returned', [$entity, $policy])); ?>"
      class="contents"> 
  <?php echo csrf_field(); ?>
  <?php echo method_field('PATCH'); ?>

  <input type="hidden" name="docs_returned_to_insurer" value="<?php echo e($policy->docs_returned_to_insurer ? '0' : '1'); ?>">

  <?php if($policy->docs_returned_to_insurer): ?>
    <button type="submit"
            class="inline-flex h-6 items-center justify-center rounded-sm px-3 text-sm leading-none bg-success/10 text-success hover:bg-success hover:text-white"
            title="Označi da dokumentacija NIJE vraćena" aria-label="Označi da dokumentacija NIJE vraćena">
      <i class="ti ti-rotate-2 text-[18px]"></i>
    </button>
  <?php else: ?>
    <button type="submit"
            class="inline-flex h-6 items-center justify-center rounded-sm px-3 text-sm leading-none bg-danger/10 text-danger hover:bg-danger hover:text-white"
            title="Potvrdi da je dokumentacija vraćena" aria-label="Potvrdi da je dokumentacija vraćena">
      <i class="ti ti-check text-[18px]"></i>
    </button>
  <?php endif; ?>
</form>
<?php /**PATH C:\laragon\www\policypilot\resources\views/backend/insurance/insurance-policies/forms/docs-returned-form.blade.php ENDPATH**/ ?>