Custom Column In Table

I have two models. Estimates & Dockets. Relationships are setup in that an Estimate HasOne Docket.

Both estimate and docket tables have a title field.

I am working on a custom search/table.

I want the docket title to show up instead of the estimate title on the TITLE column only if a docket exists. eg

$docket->exists()) ? $docket->title : $estimate->title


But I cannot work out how to get that into a singular column.

Any help would be appreciated. Thank you
Was this page helpful?