public function all($entity) { parent::all($entity); $this->filter = \DataFilter::source(\App\Movement::with('person', 'category', 'group')); $this->filter->build(); $this->grid = \DataGrid::source($this->filter); $this->grid->add('fecha', 'Fecha', 'date'); $this->grid->add('tipo', 'Tipo'); $this->grid->add('monto', 'Monto'); $this->grid->add('{{ $category->nombre }}', 'Categoría', 'category_id'); $this->grid->add('{{ $person->nombre }}', 'Persona', 'person_id'); $this->grid->add('{{ $group->nombre }}', 'Grupo', 'group_id'); $this->addStylesToGrid(); return $this->returnView(); }