This commit is contained in:
rahulcs0082 2021-05-03 11:36:17 +05:30
parent 60b40fc478
commit aa88f1390d
3 changed files with 12 additions and 3 deletions

View File

@ -15,7 +15,7 @@ class CustomerReviewDataGrid extends DataGrid
{
$queryBuilder = DB::table('product_reviews as pr')
->leftjoin('product_flat as pf', 'pr.product_id', '=', 'pf.product_id')
->select('pr.id as product_review_id', 'pr.title', 'pr.comment', 'pf.name as product_name', 'pr.status as product_review_status', 'pr.rating')
->select('pr.id as product_review_id', 'pr.title', 'pr.comment', 'pf.name as product_name', 'pr.status as product_review_status', 'pr.rating', 'pr.created_at')
->where('channel', core()->getCurrentChannelCode())
->where('locale', app()->getLocale());
@ -92,6 +92,15 @@ class CustomerReviewDataGrid extends DataGrid
}
},
]);
$this->addColumn([
'index' => 'created_at',
'label' => trans('admin::app.datagrid.date'),
'type' => 'datetime',
'sortable' => true,
'searchable' => false,
'filterable' => true,
]);
}
public function prepareActions()

File diff suppressed because one or more lines are too long

View File

@ -1,4 +1,4 @@
{
"/js/ui.js": "/js/ui.js?id=37bd4257e03367bb39c4",
"/js/ui.js": "/js/ui.js?id=5cad8be39456ffe19e34",
"/css/ui.css": "/css/ui.css?id=6d93a4a052e38d6aa795"
}