@if (!is_null($editingEducation))
@error('institution') {{ $message }} @enderror
@error('degree') {{ $message }} @enderror
@error('dateObtained') {{ $message }} @enderror
@error('file') {{ $message }} @enderror
@if($filePath)

@lang('site.certificate') ({{ strtoupper(@pathinfo($filePath, PATHINFO_EXTENSION)) }})

@if(isImage($filePath))

@endif
@endif
@endif @if (is_null($editingEducation))
@foreach ($educations as $education)
{{ $education->institution }}

{{ $education->degree }}

{{ dateString($education->date_obtained) }}

@if(!empty($education->file))

@lang('site.certificate') ({{ strtoupper(@pathinfo($education->file, PATHINFO_EXTENSION)) }})

@if(isImage($education->file))

@endif @lang('site.download')
@endif
@endforeach
@endif