diff --git a/src/resources/views/public/_json-ld.blade.php b/src/resources/views/public/_json-ld.blade.php index cbf1b9b..e9c4d60 100644 --- a/src/resources/views/public/_json-ld.blade.php +++ b/src/resources/views/public/_json-ld.blade.php @@ -14,9 +14,9 @@ "image": [ "{{ $event->present()->image() }}" ], - @isset($event->url) + @empty(!$event->url) "url": "{{ $event->url }}", - @endisset + @endempty "mainEntityOfPage": { "@type": "WebPage", "@id": "{{ $event->uri() }}" diff --git a/src/resources/views/public/_list-item.blade.php b/src/resources/views/public/_list-item.blade.php index ad362c0..54f8c67 100644 --- a/src/resources/views/public/_list-item.blade.php +++ b/src/resources/views/public/_list-item.blade.php @@ -10,12 +10,12 @@ {{ $event->venue }}
{!! nl2br($event->address) !!}
- @isset($event->summary) + @empty(!$event->summary)
{{ $event->summary }}
- @endisset - @isset($event->url) + @endempty + @empty(!$event->url)
{{ parse_url($event->url, PHP_URL_HOST) }}
- @endisset + @endempty diff --git a/src/resources/views/public/show.blade.php b/src/resources/views/public/show.blade.php index 2b5a79c..bcd2329 100644 --- a/src/resources/views/public/show.blade.php +++ b/src/resources/views/public/show.blade.php @@ -19,21 +19,21 @@ {{ $model->venue }}
{!! nl2br($model->address) !!}
- @isset($model->summary) + @empty(!$model->summary)

{!! nl2br($model->summary) !!}

- @endisset - @isset($model->url) + @endempty + @empty(!$model->url)
{{ parse_url($model->url, PHP_URL_HOST) }}
- @endisset + @endempty @lang('db.Add to calendar') - @isset($model->body) + @empty(!$model->body)
{!! $model->present()->body !!}
- @endisset - @isset($model->image) + @endempty + @empty(!$model->image) - @endisset + @endempty @include('files::public._documents') @include('files::public._images')