Created
June 14, 2023 14:28
-
-
Save cesarockstar1985/352f1ac7a91204a9acf6357b7cc26114 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'contain' => [ | |
'Churches', | |
'Males.Profiles', | |
], | |
'fields' => [ | |
'male.profile.first_name' => [ | |
'actions' => ['index', 'csv'], | |
'url' => [ | |
'action' => 'edit', | |
], | |
'url_field_param' => 'id', | |
], | |
'church.name' => [ | |
'actions' => ['index', 'csv'], | |
'url' => [ | |
'action' => 'edit', | |
], | |
'url_field_param' => 'id', | |
], | |
'wedding_status' => [ | |
'actions' => ['index', 'csv'], | |
'formatter' => function ($value){ | |
if(!$value){ | |
return '-'; | |
} | |
return ucfirst($value); | |
}, | |
], | |
'wedding_date' => [ | |
'actions' => ['index', 'csv'], | |
], | |
'name' => [ | |
'actions' => ['index', 'csv'], | |
'formatter' => function ($entity) { | |
if (!$entity) { | |
return ''; | |
} | |
debug($entity); | |
// return ChurchesTable::getSupportStatuses()[$value] ?? '-'; | |
}, | |
], | |
], |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment