im trying to display a simple TextColumn but nothing shows up
it didnt even dd(). has_uploaded_receipt is not a column name in db, i just want to create a custom one and format based on user relation with receipt.
original code:
original code:
TextColumn::make('has_uploaded_receipt')
->label('Has uploaded receipt?')
->formatStateUsing( function ($record) {
dd($record);
}), TextColumn::make('has_uploaded_receipt')->label('Has uploaded receipt?')->formatStateUsing(fn(User $record): string => $record->receipt() ? "Yes" : "No"),