certificate = $certificate; } public function getStatusProperty() { return $this->certificate->expiryStatus(Auth::user()->reminder_months_before); } public function getFileExtensionProperty(): ?string { if (blank($this->certificate->file_path)) { return null; } return strtolower(pathinfo($this->certificate->file_path, PATHINFO_EXTENSION)); } }; ?>
{{ $certificate->title }} {{ __('Certificate details') }}
{{ $this->status->label() }} {{ __('Edit') }}
@if ($certificate->notes)
@endif
{{ __('Download') }} {{ __('Back to certificates') }}
@if (blank($certificate->file_path))
{{ __('No document was uploaded for this certificate.') }}
@elseif (in_array($this->fileExtension, ['jpg', 'jpeg', 'png'], true)) {{ $certificate->title }} @else @endif