Components\SpatieMediaLibraryImageEntry::make('designerProfile.media')
->label('Project wykonany przez')
->helperText(fn ($record) => $record->designerProfile->profile_name)
->collection(config('project.designer_media_collections.logo'))
//->conversion('full')
->extraImgAttributes([
'class' => 'rounded-lg',
])
->size('100%')
->checkFileExistence(false)
->url(
fn ($record): string => DesignerProfileResource::getUrl(
'view',
['record' => $record->designer_profile_id]
)
),
Components\SpatieMediaLibraryImageEntry::make('designerProfile.media')
->label('Project wykonany przez')
->helperText(fn ($record) => $record->designerProfile->profile_name)
->collection(config('project.designer_media_collections.logo'))
//->conversion('full')
->extraImgAttributes([
'class' => 'rounded-lg',
])
->size('100%')
->checkFileExistence(false)
->url(
fn ($record): string => DesignerProfileResource::getUrl(
'view',
['record' => $record->designer_profile_id]
)
),