Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
28 | protected function getColumns(): array |
||
29 | { |
||
30 | $link = config('cortex.foundation.route.locale_prefix') |
||
31 | ? '"<a href=\""+routes.route(\'managerarea.testimonials.edit\', {testimonial: full.id, locale: \''.$this->request->segment(1).'\'})+"\">"+data+"</a>"' |
||
32 | : '"<a href=\""+routes.route(\'managerarea.testimonials.edit\', {testimonial: full.id})+"\">"+data+"</a>"'; |
||
33 | |||
34 | return [ |
||
35 | 'body' => ['title' => trans('cortex/testimonials::common.body'), 'render' => $link.'+(full.is_approved ? " <i class=\"text-success fa fa-check\"></i>" : " <i class=\"text-danger fa fa-close\"></i>")', 'responsivePriority' => 0], |
||
36 | 'created_at' => ['title' => trans('cortex/testimonials::common.created_at'), 'render' => "moment(data).format('YYYY-MM-DD, hh:mm:ss A')"], |
||
37 | 'updated_at' => ['title' => trans('cortex/testimonials::common.updated_at'), 'render' => "moment(data).format('YYYY-MM-DD, hh:mm:ss A')"], |
||
38 | ]; |
||
39 | } |
||
40 | } |
||
41 |