45 lines
1.5 KiB
PHP
45 lines
1.5 KiB
PHP
<div class="sidebar-box introductions">
|
|
|
|
<p class="sidebar-box-title">
|
|
<strong><?php echo e(trans('people.introductions_sidebar_title')); ?></strong>
|
|
</p>
|
|
|
|
<?php if(! $contact->hasFirstMetInformation()): ?>
|
|
<p class="sidebar-box-paragraph">
|
|
<a href="<?php echo e(route('people.introductions.edit', $contact)); ?>"><?php echo e(trans('people.introductions_blank_cta', ['name' => $contact->first_name])); ?></a>
|
|
</p>
|
|
<?php else: ?>
|
|
<ul>
|
|
<?php if($introducer = $contact->getIntroducer()): ?>
|
|
<li>
|
|
<i class="fa fa-sign-language"></i>
|
|
<?php echo trans('people.introductions_met_through', ['url' => route('people.show', $introducer), 'name' => $introducer->name]); ?>
|
|
|
|
</li>
|
|
<?php endif; ?>
|
|
|
|
<?php if($contact->firstMetDate): ?>
|
|
<li>
|
|
<i class="fa fa-hourglass-start"></i>
|
|
<?php echo e(trans('people.introductions_met_date', ['date' => $contact->firstMetDate->toShortString()])); ?>
|
|
|
|
</li>
|
|
<?php endif; ?>
|
|
|
|
<?php if($contact->first_met_additional_info): ?>
|
|
<li>
|
|
<i class="fa fa-id-card-o"></i>
|
|
<?php echo e($contact->first_met_additional_info); ?>
|
|
|
|
</li>
|
|
<?php endif; ?>
|
|
</ul>
|
|
|
|
<p class="sidebar-box-paragraph">
|
|
<a href="<?php echo e(route('people.introductions.edit', $contact)); ?>"><?php echo e(trans('app.edit')); ?></a>
|
|
</p>
|
|
|
|
<?php endif; ?>
|
|
|
|
</div>
|
|
<?php /**PATH /var/www/html/resources/views/people/introductions/index.blade.php ENDPATH**/ ?>
|