@php $token = $p->serial ?? null; $canSeeHiddenAddress = $p->hide_address; $countryName = $countryNames[$p->country_isocode] ?? $p->country_isocode ?? ''; $searchData = strtolower(trim(implode(' ', array_filter([ $p->name ?? '', $p->address1 ?? '', $p->address2 ?? '', $p->postcode ?? '', $p->city ?? '', $p->country_isocode ?? '', $countryName, ])))); $addressData = trim(($p->address1 ?? '').' '.($p->postcode ?? '').' '.($p->city ?? '')); $is_visible = $p->is_visible ?? false; $is_shared = ($p->user_id == $p->owner->id) && ($p->user_id != $user->id); $is_owner = ($p->user_id == $p->owner->id) && ($p->user_id == $user->id); $is_public = $p->owner->id == 0; $hasPassword = $p->sharings->whereNotNull('password_hash')->isNotEmpty(); $style_opacity = '1.0'; $canShare = auth()->id() === 1 || $p->user_id === auth()->id(); @endphp
  • @if($hasPassword && !$is_owner) {{ __('Protected') }} @endif {{ $p->name }}
    {{ $p->city }}, {{ $countryNames[$p->country_isocode] ?? $p->country_isocode }}
    @php $photo = $p->photos->first(); @endphp @if(isset($photo->path))
    {{ $p->name }}
    @endif