Added photo column in table section #200
@@ -165,6 +165,14 @@ class VisitorEntryResource extends Resource
|
|||||||
|
|
||||||
return ($currentPage - 1) * $perPage + $rowLoop->iteration;
|
return ($currentPage - 1) * $perPage + $rowLoop->iteration;
|
||||||
}),
|
}),
|
||||||
|
Tables\Columns\ImageColumn::make('photo')
|
||||||
|
->label('Photo')
|
||||||
|
->disk('public')
|
||||||
|
->height(50)
|
||||||
|
->width(50)
|
||||||
|
->defaultImageUrl('https://ui-avatars.com/api/?name=Visitor&background=555&color=fff')
|
||||||
|
->alignCenter()
|
||||||
|
->extraImgAttributes(['style' => 'border-radius: 6px; object-fit: cover;']),
|
||||||
Tables\Columns\TextColumn::make('type')
|
Tables\Columns\TextColumn::make('type')
|
||||||
->label('Visitor Type')
|
->label('Visitor Type')
|
||||||
->alignCenter()
|
->alignCenter()
|
||||||
|
|||||||
Reference in New Issue
Block a user