All textentry have a layout like this
label
entry
But instead is it possible to do it like this
label entry, side by side
I can find tons of information about putting sections side by side and using split, but not the simplest version, just the label and entry itself.
Section::make('Datums')
->columnSpan(1)
->schema([
TextEntry::make('apk_date')
->label('Apk Datum')
->badge()->color(function ($record) {
$carbonApkDate = Carbon::parse($record->apk_date);
if ($carbonApkDate->lt(now())) {
return 'red';
} elseif ($carbonApkDate->lt(now()->addMonth())) {
return 'yellow';
} else {
return 'green';
}
})
->columnSpan(2)
->date('d-m-Y'),
TextEntry::make('end_date')
->label('End Date')
->color('primary'),
// Add more TextEntries as needed
]),
Tried building it from grids or using split
New contributor
Shot on Phone is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.