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

185 lines
8.7 KiB
PHP

<?php $__env->startSection('title', $contact->name ); ?>
<?php $__env->startSection('content'); ?>
<div class="people-show">
<?php echo csrf_field(); ?>
<div class="breadcrumb">
<div class="<?php echo e(Auth::user()->getFluidLayout()); ?>">
<div class="row">
<div class="col-12">
<ul class="horizontal">
<li>
<a href="<?php echo e(route('dashboard.index')); ?>"><?php echo e(trans('app.breadcrumb_dashboard')); ?></a>
</li>
<li>
<?php if($contact->is_active): ?>
<a href="<?php echo e(route('people.index')); ?>"><?php echo e(trans('app.breadcrumb_list_contacts')); ?></a>
<?php else: ?>
<a href="<?php echo e(route('people.archived')); ?>"><?php echo e(trans('app.breadcrumb_archived_contacts')); ?></a>
<?php endif; ?>
</li>
<li>
<?php echo e($contact->name); ?>
</li>
</ul>
</div>
</div>
</div>
</div>
<?php echo $__env->make('people._header', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<div class="main-content profile">
<div class="<?php echo e(Auth::user()->getFluidLayout()); ?>">
<div class="row">
<div class="col-12 col-sm-3 profile-sidebar">
<?php if(! is_null($weather)): ?>
<div class="ba b--near-white br2 bg-gray-monica pa3 mb3 f6">
<div class="w-100 dt">
<div class="dtc">
<h3 class="f6 ttu normal"><?php echo e(trans('app.weather_current_title')); ?></h3>
</div>
</div>
<p class="mb0">
<?php echo e($weather->getEmoji()); ?> <?php echo e(trans('app.weather_'.$weather->summary_icon)); ?> / <?php echo e(trans('app.weather_current_temperature_'.auth()->user()->temperature_scale, ['temperature' => $weather->temperature(auth()->user()->temperature_scale)])); ?>
</p>
</div>
<?php endif; ?>
<?php echo $__env->make('people.relationship.index', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php echo $__env->make('people.sidebar', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<ul class="mb2">
<li>
<a href="<?php echo e(route('people.auditlogs', $contact)); ?>"><?php echo e(trans('people.auditlogs_link')); ?></a>
</li>
<li>
<a href="<?php echo e(route('people.vcard', $contact)); ?>"><?php echo e(trans('people.people_export')); ?></a>
</li>
<li>
<contact-archive hash="<?php echo e($contact->hashID()); ?>" :active="<?php echo e(\Safe\json_encode($contact->is_active)); ?>"></contact-archive>
</li>
<li>
<form method="POST" action="<?php echo e(route('people.destroy', $contact)); ?>">
<?php echo method_field('DELETE'); ?>
<?php echo csrf_field(); ?>
<confirm id="link-delete-contact" message="<?php echo e(trans('people.people_delete_confirmation')); ?>">
<?php echo e(trans('people.people_delete_message')); ?>
</confirm>
</form>
</li>
</ul>
</div>
<div class="col-12 col-sm-9">
<div class="flex items-center justify-center flex-column">
<div class='cf dib'>
<?php if(! $contact->isMe()): ?>
<span @click="updateDefaultProfileView('life-events')" :class="[global_profile_default_view == 'life-events' ? 'f6 fl bb bt br bl ph3 pv2 dib b br2 br--left bl mb4 b--gray-monica' : 'f6 fl bb bt br ph3 pv2 dib bg-gray-monica br2 br--left bl pointer mb4 b--gray-monica']">
<?php if(auth()->user()->profile_new_life_event_badge_seen == false): ?>
<span class="bg-light-green f7 mr2 ph2 pv1 br2"><?php echo e(trans('app.new')); ?></span>
<?php endif; ?>
<?php echo e(trans('people.life_event_list_tab_life_events')); ?> (<?php echo e($contact->lifeEvents()->count()); ?>)
</span>
<?php endif; ?>
<span @click="updateDefaultProfileView('notes')" :class="[global_profile_default_view == 'notes' ? 'f6 fl bb bt ph3 pv2 dib b br--right br mb4 b--gray-monica' : 'f6 fl bb bt ph3 pv2 dib bg-gray-monica br--right br pointer mb4 b--gray-monica']"><?php echo e(trans('people.life_event_list_tab_other')); ?></span>
<span @click="updateDefaultProfileView('photos')" :class="[global_profile_default_view == 'photos' ? 'f6 fl bb bt ph3 pv2 dib b br2 br--right br mb4 b--gray-monica' : 'f6 fl bb bt ph3 pv2 dib bg-gray-monica br2 br--right br pointer mb4 b--gray-monica']">Photos</span>
</div>
</div>
<?php if(! $contact->isMe()): ?>
<div v-if="global_profile_default_view == 'life-events'">
<div class="row section">
<?php echo $__env->make('people.life-events.index', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
</div>
</div>
<?php endif; ?>
<div v-if="global_profile_default_view == 'notes'">
<?php if($modules->contains('key', 'notes')): ?>
<div class="row section notes">
<div class="col-12 section-title">
<contact-note hash=<?php echo e($contact->hashID()); ?>></contact-note>
</div>
</div>
<?php endif; ?>
<?php if($modules->contains('key', 'conversations') && ! $contact->isMe()): ?>
<div class="row section">
<?php echo $__env->make('people.conversations.index', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
</div>
<?php endif; ?>
<?php if($modules->contains('key', 'phone_calls') && ! $contact->isMe()): ?>
<div class="row section calls">
<?php echo $__env->make('people.calls.index', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
</div>
<?php endif; ?>
<?php if($modules->contains('key', 'activities') && ! $contact->isMe()): ?>
<div class="row section activities">
<?php echo $__env->make('people.activities.index', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
</div>
<?php endif; ?>
<?php if($modules->contains('key', 'reminders')): ?>
<div class="row section reminders">
<?php echo $__env->make('people.reminders.index', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
</div>
<?php endif; ?>
<?php if($modules->contains('key', 'tasks')): ?>
<div class="row section">
<?php echo $__env->make('people.tasks.index', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
</div>
<?php endif; ?>
<?php if($modules->contains('key', 'gifts') && ! $contact->isMe()): ?>
<div class="row section">
<?php echo $__env->make('people.gifts.index', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
</div>
<?php endif; ?>
<?php if($modules->contains('key', 'debts') && ! $contact->isMe()): ?>
<div class="row section debts">
<?php echo $__env->make('people.debt.index', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
</div>
<?php endif; ?>
<?php if($modules->contains('key', 'documents')): ?>
<div class="row section">
<?php echo $__env->make('people.documents.index', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
</div>
<?php endif; ?>
</div>
<div v-if="global_profile_default_view == 'photos'">
<div class="row section">
<?php echo $__env->make('people.photos.index', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.skeleton', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/html/resources/views/people/profile.blade.php ENDPATH**/ ?>