@auth
@if(
auth()->user()->type === 'agent'
&& check_subscription(auth()->id())
)
@php
$existingClaim = \App\Models\Claim::where('listing_id', $listing->id)
->where('listing_type', $listing->type)
->where('user_id', auth()->id())
->exists();
@endphp
@if(!$existingClaim)
{{ get_phrase('Claim Listing') }}
@else
@endif
@endif
@else
{{-- ... --}}
@endauth