

<?php $__env->startSection('styles'); ?>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>
	<div class="content">
		<div class="main-content">
			<div class="block justify-between page-header sm:flex">
				<div>
					<h3 class="text-gray-700 hover:text-gray-900 dark:text-white dark:hover:text-white text-2xl font-medium">
						<?php echo e(__('forms.policy')); ?> broj <?php echo e($insurancePolicy->policy_number); ?></h3>
				</div>
				<ol class="flex items-center whitespace-nowrap min-w-0">
					<?php if($entity->entityable_type == 'App\Models\CRM\Company'): ?>
						<a href="<?php echo e(route('crm.companies.edit', $entity->entityable)); ?>"
							class="ti-btn ti-btn-outline ti-btn-outline-secondary py-0 px-1 my-0">Profil klijenta</a>
					<?php else: ?>
						<a href="<?php echo e(route('crm.individuals.edit', $entity->entityable)); ?>"
							class="ti-btn ti-btn-outline ti-btn-outline-secondary py-0 px-1 my-0">Profil klijenta</a>
					<?php endif; ?>
					<a href="<?php echo e(route('osiguranje.insurance-policies.index', $entity)); ?>"
						class="ti-btn ti-btn-outline ti-btn-outline-secondary py-0 px-1 my-0">Polise klijenta</a>
				</ol>
			</div>

			<div class="md:grid space-y-4 md:space-y-0 md:grid-cols-1 grid-cols-2 gap-4">

				<?php echo $__env->make('backend.insurance.insurance-policies.boxes.insurer', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>

				<?php if($entity->entityable_type == 'App\Models\CRM\Company'): ?>
					<?php echo $__env->make('backend.insurance.insurance-policies.boxes.company', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
				<?php else: ?>
					<?php echo $__env->make('backend.insurance.insurance-policies.boxes.individual', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
				<?php endif; ?>

				<div class="sm:col-span-1 col-span-2">
					<?php echo $__env->make('backend.insurance.insurance-policies.forms.insurance-policies-form-edit', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
				</div>
			</div>

		</div>
	</div>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('scripts'); ?>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('backend.layouts.master', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\laragon\www\policypilot\resources\views/backend/insurance/insurance-policies/edit.blade.php ENDPATH**/ ?>