Skip to content

Commit

Permalink
s/$getRecord/$getRecord()
Browse files Browse the repository at this point in the history
  • Loading branch information
thyseus committed Oct 28, 2022
1 parent 78de3e5 commit aed0232
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions resources/views/filament/columns/page-title.blade.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<a href="{{ route('page',$getRecord->slug) }}" target="_blank" class="block">
<div class="filament-tables-text-column text-primary-600 transition hover:underline hover:text-primary-500 focus:underline focus:text-primary-500">
@if($getRecord->password !== null)
<a href="{{ route('page',$getRecord()->slug) }}" target="_blank" class="block">
<div class="filament-tables-text-column text-primary-600 transition hover:underline hover:text-primary-500 focus:underline focus:text-primary-500">
@if($getRecord()->password !== null)
<span x-tooltip.raw="{{ __('Password Protected') }}" title="{{ __('Password Protected') }}">
<x-iconpark-lock class="w-4 h-4 inline-flex text-danger-600"/>
</span>
@endif
{{ $getRecord->title }}
{{ $getRecord()->title }}
</div>
</a>
10 changes: 5 additions & 5 deletions resources/views/filament/columns/post-title.blade.php
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<a href="{{ route('post',$getRecord->slug) }}" target="_blank" class="block">
<a href="{{ route('post',$getRecord()->slug) }}" target="_blank" class="block">
<div class="filament-tables-text-column text-primary-600 transition hover:underline hover:text-primary-500 focus:underline focus:text-primary-500">
@if($getRecord->password !== null)
@if($getRecord()->password !== null)
<span x-tooltip.raw="{{ __('Password Protected') }}" title="{{ __('Password Protected') }}">
<x-iconpark-lock class="w-4 h-4 inline-flex text-danger-600"/>
</span>
@endif

@if($getRecord->sticky_until !== null)
<span x-tooltip.raw="{{ __('Sticky Until') }} {{ $getRecord->sticky_until->diffForHumans() }}" title="{{ __('Sticky Until') }} {{ $getRecord->sticky_until->diffForHumans() }}">
@if($getRecord()->sticky_until !== null)
<span x-tooltip.raw="{{ __('Sticky Until') }} {{ $getRecord()->sticky_until->diffForHumans() }}" title="{{ __('Sticky Until') }} {{ $getRecord()->sticky_until->diffForHumans() }}">
<x-iconpark-pin class="w-4 h-4 inline-flex text-primary-500"/>
</span>
@endif

{{ $getRecord->title }}
{{ $getRecord()->title }}
</div>
</a>
4 changes: 2 additions & 2 deletions resources/views/filament/columns/status-desc.blade.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="filament-tables-text-column text-xs">
{!! $getRecord->statusDesc() !!} ·
<span title="{{ $getRecord->published_at }}">{{ optional($getRecord->published_at)->diffForHumans() }}</span>
{!! $getRecord()->statusDesc() !!} ·
<span title="{{ $getRecord()->published_at }}">{{ optional($getRecord()->published_at)->diffForHumans() }}</span>
</div>

0 comments on commit aed0232

Please sign in to comment.