86 lines
3.1 KiB
PHP
86 lines
3.1 KiB
PHP
<div class="col-12 section-title">
|
|
<img src="img/people/reminders.svg" class="icon-section icon-reminders">
|
|
<h3>
|
|
<?php echo e(trans('people.section_personal_reminders')); ?>
|
|
|
|
|
|
<span class="<?php echo e(htmldir() == 'ltr' ? 'fr' : 'fl'); ?>">
|
|
<a href="<?php echo e(route('people.reminders.create', $contact)); ?>" class="btn"><?php echo e(trans('people.reminders_cta')); ?></a>
|
|
</span>
|
|
</h3>
|
|
</div>
|
|
|
|
|
|
<?php if($reminders->count() === 0): ?>
|
|
|
|
<div class="col-12">
|
|
<div class="section-blank">
|
|
<h3><?php echo e(trans('people.reminders_blank_title', ['name' => $contact->first_name])); ?></h3>
|
|
<a href="<?php echo e(route('people.reminders.create', $contact)); ?>"><?php echo e(trans('people.reminders_blank_add_activity')); ?></a>
|
|
</div>
|
|
</div>
|
|
|
|
<?php else: ?>
|
|
|
|
<div class="col-12 reminders-list">
|
|
|
|
<?php if(! $accountHasLimitations): ?>
|
|
<p><?php echo e(trans('people.reminders_description')); ?></p>
|
|
<?php else: ?>
|
|
<p><?php echo e(trans('people.reminders_free_plan_warning')); ?></p>
|
|
<?php endif; ?>
|
|
|
|
<ul class="table">
|
|
<?php $__currentLoopData = $reminders; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $reminder): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
|
<li class="table-row">
|
|
|
|
<div class="table-cell date">
|
|
<?php echo e($reminder->next_expected_date_human_readable); ?>
|
|
|
|
</div>
|
|
|
|
<div class="table-cell frequency-type">
|
|
<?php if($reminder->frequency_type != 'one_time'): ?>
|
|
<?php echo e(trans_choice('people.reminder_frequency_'.$reminder->frequency_type, $reminder->frequency_number, ['number' => $reminder->frequency_number])); ?>
|
|
|
|
<?php else: ?>
|
|
<?php echo e(trans('people.reminders_one_time')); ?>
|
|
|
|
<?php endif; ?>
|
|
</div>
|
|
|
|
<div class="table-cell title">
|
|
<?php echo e($reminder->title); ?>
|
|
|
|
</div>
|
|
|
|
<div class="table-cell comment">
|
|
<?php if(!is_null($reminder->description)): ?>
|
|
<?php echo e($reminder->description); ?>
|
|
|
|
<?php endif; ?>
|
|
</div>
|
|
|
|
<div class="table-cell list-actions">
|
|
|
|
<?php if($reminder->delible): ?>
|
|
<a href="<?php echo e(route('people.reminders.edit', [$contact, $reminder])); ?>" class="edit">
|
|
<i class="fa fa-pencil-square-o" aria-hidden="true"></i>
|
|
</a>
|
|
<form method="POST" action="<?php echo e(route('people.reminders.destroy', [$contact, $reminder])); ?>">
|
|
<?php echo method_field('DELETE'); ?>
|
|
<?php echo csrf_field(); ?>
|
|
<confirm message="<?php echo e(trans('people.reminders_delete_confirmation')); ?>">
|
|
<i class="fa fa-trash-o" aria-hidden="true"></i>
|
|
</confirm>
|
|
</form>
|
|
<?php endif; ?>
|
|
</div>
|
|
|
|
</li>
|
|
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
|
|
</ul>
|
|
</div>
|
|
|
|
<?php endif; ?>
|
|
<?php /**PATH /var/www/html/resources/views/people/reminders/index.blade.php ENDPATH**/ ?>
|