monica/data/framework/views/7317cc582cce89e9e009de90da521a459a888e39.php
2020-10-07 10:38:13 -07:00

144 lines
7.0 KiB
PHP

<div class="ph3 ph5-ns pv2 cf w-100 mt4 mt0-ns">
<?php if($contact->isMe()): ?>
<div class="alert alert-success tc">
<?php echo e(trans('people.me')); ?>
</div>
<?php endif; ?>
<div class="mw9 center tc w-100 avatar-header relative">
<div class="relative center dib z-3">
<div class="relative hide-child">
<div class="image-header top-0 left-0">
<img class="cover br3 bb b--gray-monica"
alt="<?php echo e($contact->initials); ?>"
src="<?php echo e($contact->getAvatarURL()); ?>"
style="height: 115px; width: 115px;"
v-on:error="fixAvatarDisplay"
/>
<div class="hidden br3 dib white tc f1"
style="padding-top: 21px; height: 115px; width: 115px; background-color: <?php echo e($contact->default_avatar_color); ?>"
>
<?php echo e($contact->initials); ?>
</div>
</div>
<div class="child absolute top-0 left-0 h-100 w-100 br3">
<div class="db w-100 h-100 center tc pt5">
<a class="no-underline white" href="<?php echo e(route('people.avatar.edit', $contact)); ?>">
📷 <?php echo e(trans('app.update' )); ?>
</a>
</div>
</div>
</div>
</div>
</div>
<div class="mw9 center dt w-100 box-shadow pa4 relative">
<h1 class="tc mb2 mt4">
<span class="<?php echo e(htmldir() == 'ltr' ? 'mr1' : 'ml1'); ?>"><?php echo e($contact->name); ?></span>
<contact-favorite hash="<?php echo e($contact->hashID()); ?>" :starred="<?php echo e(\Safe\json_encode($contact->is_starred)); ?>"></contact-favorite>
<?php if($contact->job): ?>
<span class="db f5 normal"><?php echo e($contact->job); ?>
<?php if($contact->company): ?>
(<?php echo e($contact->company); ?>)
<?php endif; ?>
</span>
<?php endif; ?>
</h1>
<ul class="tc-ns mb3 <?php echo e(htmldir() == 'ltr' ? 'tl' : 'tr'); ?>">
<li class="mb2 mb0-ns di-ns db tc <?php echo e(htmldir() == 'ltr' ? 'mr3-ns' : 'ml3-ns'); ?>">
<?php if($contact->birthdate && !($contact->is_dead)): ?>
<?php if($contact->getBirthdayState() !== 'unknown'): ?>
<span class="<?php echo e(htmldir() == 'ltr' ? 'mr1' : 'ml1'); ?>"><?php echo $__env->make('partials.icons.header_birthday', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?></span>
<?php if($contact->getBirthdayState() === 'approximate'): ?>
<span><?php echo e(trans('people.age_approximate_in_years', ['age' => $contact->birthdate->getAge()])); ?></span>
<?php elseif($contact->getBirthdayState() === 'almost'): ?>
<span><?php echo e($contact->birthdate->toShortString()); ?></span>
<?php else: ?>
<span><?php echo e($contact->birthdate->toShortString()); ?> (<?php echo e($contact->birthdate->getAge()); ?>)</span>
<?php endif; ?>
<?php endif; ?>
<?php elseif($contact->is_dead): ?>
<?php if(! is_null($contact->deceasedDate)): ?>
<?php echo e(trans('people.deceased_label_with_date', ['date' => $contact->deceasedDate->toShortString()])); ?>
<?php if($contact->deceasedDate->is_year_unknown == 0 && $contact->getBirthdayState() !== 'almost'): ?>
<span>(<?php echo e(trans('people.deceased_age')); ?> <?php echo e($contact->getAgeAtDeath()); ?>)</span>
<?php endif; ?>
<?php else: ?>
<?php echo e(trans('people.deceased_label')); ?>
<?php endif; ?>
<?php endif; ?>
</li>
<?php if(! $contact->isMe()): ?>
<li class="mb2 mb0-ns dn di-ns tc <?php echo e(htmldir() == 'ltr' ? 'mr3-ns' : 'ml3-ns'); ?>">
<span class="<?php echo e(htmldir() == 'ltr' ? 'mr1' : 'ml1'); ?>"><?php echo $__env->make('partials.icons.header_people', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?></span>
<?php if(is_null($contact->getLastActivityDate())): ?>
<?php echo e(trans('people.last_activity_date_empty')); ?>
<?php else: ?>
<?php echo e(trans('people.last_activity_date', ['date' => \App\Helpers\DateHelper::getShortDate($contact->getLastActivityDate())])); ?>
<?php endif; ?>
</li>
<?php endif; ?>
<?php if(! $contact->isMe()): ?>
<li class="mb2 mb0-ns dn di-ns tc <?php echo e(htmldir() == 'ltr' ? 'mr3-ns' : 'ml3-ns'); ?>">
<span class="<?php echo e(htmldir() == 'ltr' ? 'mr1' : 'ml1'); ?>"><?php echo $__env->make('partials.icons.header_call', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?></span>
<?php if(is_null($contact->last_talked_to)): ?>
<?php echo e(trans('people.last_called_empty')); ?>
<?php else: ?>
<?php echo e(trans('people.last_called', ['date' => \App\Helpers\DateHelper::getShortDate($contact->last_talked_to)])); ?>
<?php endif; ?>
</li>
<?php endif; ?>
<?php if($contact->description): ?>
<li class="mb2 mb0-ns di-ns db tc <?php echo e(htmldir() == 'ltr' ? 'mr3-ns' : 'ml3-ns'); ?>">
<?php echo $__env->make('partials.icons.header_description', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php echo e($contact->description); ?>
</li>
<?php endif; ?>
<?php if(!$contact->is_dead && ! $contact->isMe()): ?>
<li class="mb2 mb0-ns di-ns db tc <?php echo e(htmldir() == 'ltr' ? 'mr3-ns' : 'ml3-ns'); ?>">
<?php echo $__env->make('partials.icons.header_stayintouch', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<stay-in-touch :contact="<?php echo e($contact); ?>" hash="<?php echo e($contact->hashID()); ?>" :limited="<?php echo e(\Safe\json_encode($accountHasLimitations)); ?>"></stay-in-touch>
</li>
<?php endif; ?>
</ul>
<tags hash="<?php echo e($contact->hashID()); ?>" class="mb3 mb0-ns"></tags>
<div class="absolute-ns tc profile-edit-contact-button">
<a href="<?php echo e(route('people.edit', $contact)); ?>" class="btn" id="button-edit-contact"><?php echo e(trans('people.edit_contact_information')); ?></a>
</div>
</div>
</div>
<div class="ph3 ph5-ns pv2 cf w-100">
<div class="mw9 center dt w-100">
<?php echo $__env->make('partials.errors', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php echo $__env->make('partials.notification', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
</div>
</div>
<?php /**PATH /var/www/html/resources/views/people/_header.blade.php ENDPATH**/ ?>