Some checks failed
Build & Push Monica Image to Gitea Registry / build-and-push (push) Failing after 9s
42 lines
1.2 KiB
PHP
42 lines
1.2 KiB
PHP
<div class="sidebar-box introductions">
|
|
|
|
<div class="sidebar-box-title">
|
|
<h3>{{ trans('people.introductions_sidebar_title') }}</h3>
|
|
</div>
|
|
|
|
@if(! $contact->hasFirstMetInformation())
|
|
<p class="sidebar-box-paragraph">
|
|
<a href="{{ route('people.introductions.edit', $contact) }}">{{ trans('people.introductions_blank_cta', ['name' => $contact->first_name]) }}</a>
|
|
</p>
|
|
@else
|
|
<ul>
|
|
@if ($introducer = $contact->getIntroducer())
|
|
<li>
|
|
<i class="fa fa-sign-language"></i>
|
|
{!! trans('people.introductions_met_through', ['url' => route('people.show', $introducer), 'name' => $introducer->name]) !!}
|
|
</li>
|
|
@endif
|
|
|
|
@if ($contact->firstMetDate)
|
|
<li>
|
|
<i class="fa fa-hourglass-start"></i>
|
|
{{ trans('people.introductions_met_date', ['date' => $contact->firstMetDate->toShortString()]) }}
|
|
</li>
|
|
@endif
|
|
|
|
@if ($contact->first_met_additional_info)
|
|
<li>
|
|
<i class="fa fa-id-card-o"></i>
|
|
{{ $contact->first_met_additional_info }}
|
|
</li>
|
|
@endif
|
|
</ul>
|
|
|
|
<p class="sidebar-box-paragraph">
|
|
<a href="{{ route('people.introductions.edit', $contact) }}">{{ trans('app.edit') }}</a>
|
|
</p>
|
|
|
|
@endif
|
|
|
|
</div>
|