monica/data/framework/views/6c0fd5bc054034bf8b8bb2051c1a2d0c62c4f9a4.php
2020-10-07 10:38:13 -07:00

42 lines
2.4 KiB
PHP

<?php $__currentLoopData = $relationships; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $relationship): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<?php if(! $relationship->ofContact): ?>
<?php continue; ?>
<?php endif; ?>
<div class="sidebar-box-paragraph">
<span class="silver fw3 ba br2 ph1 <?php echo e(htmldir() == 'ltr' ? '' : 'fr'); ?>"><?php echo e($relationship->relationshipType->getLocalizedName(null, false, $relationship->ofContact->gender ? $relationship->ofContact->gender->type : null)); ?></span>
<?php if($relationship->ofContact->is_partial): ?>
<span class="<?php echo e(htmldir() == 'ltr' ? '' : 'fr'); ?>"><?php echo e($relationship->ofContact->name); ?></span>
<?php else: ?>
<a class="<?php echo e(htmldir() == 'ltr' ? '' : 'fr'); ?>" href="<?php echo e(route('people.show', $relationship->ofContact)); ?>"><?php echo e($relationship->ofContact->name); ?></a>
<?php endif; ?>
<?php if($relationship->ofContact->is_dead): ?>
<?php if($relationship->ofContact->deceasedDate): ?>
<span class="<?php echo e(htmldir() == 'ltr' ? '' : 'fr'); ?>">(<?php echo e($relationship->ofContact->getAgeAtDeath()); ?>)</span>
<?php endif; ?>
<?php elseif($relationship->ofContact->birthday_special_date_id): ?>
<?php if($relationship->ofContact->birthdate->getAge()): ?>
<span class="<?php echo e(htmldir() == 'ltr' ? '' : 'fr'); ?>">(<?php echo e($relationship->ofContact->birthdate->getAge()); ?>)</span>
<?php endif; ?>
<?php endif; ?>
<a href="<?php echo e(route('people.relationships.edit', [$contact, $relationship])); ?>" class="action-link <?php echo e($contact->hashID()); ?>-edit-relationship">
<?php echo e(trans('app.edit')); ?>
</a>
<form method="POST" action="<?php echo e(route('people.relationships.destroy', [$contact, $relationship])); ?>">
<?php echo method_field('DELETE'); ?>
<?php echo csrf_field(); ?>
<confirm message="<?php echo e(trans('people.relationship_unlink_confirmation')); ?>" link-class="action-link">
<?php echo e(trans('app.delete')); ?>
</confirm>
</form>
</div>
<div class="cb"></div>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php /**PATH /var/www/html/resources/views/people/relationship/_relationship.blade.php ENDPATH**/ ?>