public function all($entity) { parent::all($entity); $this->filter = \DataFilter::source(new \App\Pessoas()); $this->filter->add('nome', 'Nome', 'text'); $this->filter->add('id_grupo', 'Grupo', 'text'); $this->filter->add('id_programa', 'Programa', 'text'); $this->filter->submit('buscar'); $this->filter->reset('resetar'); $this->filter->build(); $this->grid = \DataGrid::source($this->filter); $this->grid->add('nome', 'Nome'); $this->grid->add('sexo', 'Sexo'); $this->grid->add('nascimento', 'nascimento'); $this->grid->add('responsavel', 'Responsável'); $this->grid->add('email', 'Email'); $this->grid->add('tel-fixo', 'Telefone Fixo'); $this->grid->add('rua', 'Logradouro'); $this->grid->add('numero', 'Numero'); $this->grid->add('bairro', 'bairro'); $this->grid->add('id_grupo', 'Grupo'); $this->grid->add('id_programa', 'Programa'); $this->addStylesToGrid(); return $this->returnView(); }
public function all($entity) { parent::all($entity); $this->filter = \DataFilter::source(new \App\Grupo()); $this->filter->add('nome', 'Name', 'text'); $this->filter->submit('search'); $this->filter->reset('reset'); $this->filter->build(); $this->grid = \DataGrid::source($this->filter); $this->grid->add('nome', 'Name'); $this->addStylesToGrid(); return $this->returnView(); }
public function all($entity) { parent::all($entity); $this->filter = \DataFilter::source(new \App\Area()); $this->filter->add('nombre', 'Nombre', 'text'); $this->filter->submit('Buscar'); $this->filter->reset('Limpiar'); $this->filter->build(); $this->grid = \DataGrid::source($this->filter); $this->grid->add('nombre', 'Nombre'); $this->addStylesToGrid(); return $this->returnView(); }
public function all($entity) { parent::all($entity); $this->filter = \DataFilter::source(new \App\Categoria()); $this->filter->add('name', 'Nome', 'text'); $this->filter->submit('buscar'); $this->filter->reset('resetar'); $this->filter->build(); $this->grid = \DataGrid::source($this->filter); $this->grid->add('id', 'ID'); $this->grid->add('name', 'Nome'); $this->addStylesToGrid(); return $this->returnView(); }
public function all($entity) { parent::all($entity); $this->filter = \DataFilter::source(new \App\Admins()); $this->filter->add('first_name', 'Nome', 'text'); $this->filter->submit('buscar'); $this->filter->reset('resetar'); $this->filter->build(); $this->grid = \DataGrid::source($this->filter); $this->grid->add('first_name', 'Name'); $this->grid->add('email', 'Email'); $this->addStylesToGrid(); return $this->returnView(); }
public function all($entity) { parent::all($entity); $this->filter = \DataFilter::source(new \App\Newsletter()); $this->filter->add('name', 'Nome', 'text'); $this->filter->submit('Buscar'); $this->filter->reset('resetar'); $this->filter->build(); $this->grid = \DataGrid::source($this->filter); $this->grid->add('name', 'Nome'); $this->grid->add('email', 'Email'); $this->grid->add('bairro', 'Bairro'); $this->addStylesToGrid(); return $this->returnView(); }
public function all($entity) { parent::all($entity); $this->filter = \DataFilter::source(new \App\Video()); $this->filter->add('Nome', 'Nome', 'text'); $this->filter->submit('Buscar'); $this->filter->reset('Resetar'); $this->filter->build(); $this->grid = \DataGrid::source($this->filter); $this->grid->add('nome', 'Nome'); $this->grid->add('url', 'url'); $this->grid->add('description', 'Descrição'); $this->addStylesToGrid(); return $this->returnView(); }
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(); }
public function all($entity) { parent::all($entity); $this->filter = \DataFilter::source(new Admin()); $this->filter->add('id', 'ID', 'text'); $this->filter->add('name', 'Name', 'text'); $this->filter->submit('search'); $this->filter->reset('reset'); $this->filter->build(); $this->grid = \DataGrid::source($this->filter); $this->grid->add('id', 'ID', true)->style("width:100px"); $this->grid->add('first_name', 'first name'); $this->addStylesToGrid(); return $this->returnView(); }
public function all($entity) { parent::all($entity); $this->filter = \DataFilter::source(new \App\Posts()); $this->filter->add('name', 'Nome', 'text'); $this->filter->submit('buscar'); $this->filter->reset('limpar'); $this->filter->build(); $this->grid = \DataGrid::source($this->filter); $this->grid->add('id', 'id'); $this->grid->add('name', 'Nome'); $this->grid->add('description', 'Descrição'); $this->grid->add('date_old', 'Data'); $this->addStylesToGrid(); return $this->returnView(); }
public function all($entity) { parent::all($entity); $this->filter = \DataFilter::source(new \App\Mark()); $this->filter->add('name', 'Nome', 'text'); $this->filter->submit('buscar'); $this->filter->reset('reset'); $this->filter->build(); $this->grid = \DataGrid::source($this->filter); $this->grid->add('address', 'Endereço'); $this->grid->add('description', 'Descrição'); $this->grid->add('name', 'Nome'); $this->grid->add('email', 'E-mail'); $this->addStylesToGrid(); return $this->returnView(); }
public function all($entity) { parent::all($entity); $this->filter = \DataFilter::source(new Link()); $this->filter->add('id', 'ID', 'text'); $this->filter->add('name', 'Name', 'text'); $this->filter->submit('search'); $this->filter->reset('reset'); $this->filter->build(); $this->grid = \DataGrid::source($this->filter); $this->grid->add('id', 'ID', true)->style("width:100px"); $this->grid->add('display', 'Disasfasfasfasplay'); $this->grid->add('url', 'Masfasfasfodel'); $this->addStylesToGrid(); return $this->returnView(); }
public function all($entity) { parent::all($entity); $this->filter = \DataFilter::source(new \App\Blog()); $this->filter->add('id', 'ID', 'text'); $this->filter->add('title', 'Title', 'text'); $this->filter->submit('search'); $this->filter->reset('reset'); $this->filter->build(); $this->grid = \DataGrid::source($this->filter); $this->grid->add('id', 'ID', true)->style("width:100px"); $this->grid->add('title', 'title'); $this->grid->add('socialPoint', 'social Point'); $this->addStylesToGrid(); return $this->returnView(); }
public function all($entity) { parent::all($entity); $this->filter = \DataFilter::source(new Permission()); $this->filter->add('id', 'ID', 'text'); $this->filter->add('name', 'Name', 'text'); $this->filter->submit('search'); $this->filter->reset('reset'); $this->filter->build(); $this->grid = \DataGrid::source($this->filter); $this->grid->add('id', 'ID', true)->style("width:100px"); $this->grid->add('name', 'Url')->style('width:100px'); $this->grid->add('label', 'Description'); $this->addStylesToGrid(); return $this->returnView(); }
public function all($entity) { parent::all($entity); $this->filter = \DataFilter::source(new \App\People()); $this->filter->add('name', 'Nombre', 'text'); $this->filter->submit('search'); $this->filter->reset('reset'); $this->filter->build(); $this->grid = \DataGrid::source($this->filter); $this->grid->add('nombre', 'Nombre'); $this->grid->add('{{ $area->nombre }}', 'Area', 'area_id'); $this->grid->add('sueldo', 'Sueldo'); $this->grid->add('aporte', 'Aporte'); $this->grid->add('egresos', 'Gastos'); $this->addStylesToGrid(); return $this->returnView(); }
public function all($entity) { parent::all($entity); $this->filter = \DataFilter::source(Role::with('permissions')); $this->filter->add('id', 'ID', 'text'); $this->filter->add('name', 'Name', 'text'); $this->filter->submit('search'); $this->filter->reset('reset'); $this->filter->build(); $this->grid = \DataGrid::source($this->filter); $this->grid->add('id', 'ID', true)->style("width:100px"); $this->grid->add('name', 'Name')->style('width:100px'); $this->grid->add('label', 'Description'); $this->grid->add('{{ implode(", ", $permissions->lists("name")->all()) }}', 'name'); $this->addStylesToGrid(); return $this->returnView(); }
public function all($entity) { parent::all($entity); $this->filter = \DataFilter::source(new \App\Slider()); $this->filter->add('active', 'Active', 'select')->options(\App\Slider::lists("Active", "active")->all()); $this->filter->add('weight', 'Weight', 'text'); $this->filter->add('img_url', 'Image', 'text'); $this->filter->submit('search'); $this->filter->reset('reset'); $this->filter->build(); $this->grid = \DataGrid::source($this->filter); $this->grid->add('active', 'Active', 'active'); $this->grid->add('weight', 'Weight', 'weight'); $this->grid->add('img_url', 'Image'); $this->addStylesToGrid(); return $this->returnView(); }
public function all($entity) { parent::all($entity); $this->filter = \DataFilter::source(new \App\OpinionFinderSentiments()); $this->filter->add('opinionfinder', 'OpinionFinder', 'text'); $this->filter->submit('search'); $this->filter->reset('reset'); $this->filter->build(); $this->grid = \DataGrid::source($this->filter); $this->grid->add('id', 'ID', true); $this->grid->add('date', 'Date', true); $this->grid->add('symbol_id', 'Symbol ID', true); $this->grid->add('polarity', 'Polarity', true); $this->grid->add('created_at', 'Created At', true); $this->grid->add('updated_at', 'Updated At', true); return $this->returnView(); }
public function all($entity) { parent::all($entity); $this->filter = \DataFilter::source(new \App\Comments()); $this->filter->add('active', 'Active', 'select')->options(\App\Comments::lists("Active", "active")->all()); $this->filter->add('name', 'Name', 'text'); $this->filter->add('created_at', 'Created Date', 'datetime')->format('Y-m-d H:i:s', 'uk'); $this->filter->submit('search'); $this->filter->reset('reset'); $this->filter->build(); $this->grid = \DataGrid::source($this->filter); $this->grid->add('active', 'Active', 'active'); $this->grid->add('name', 'Name'); $this->grid->add('comment', 'Comment'); $this->grid->add('created_at', 'Created Date', 'created_at'); $this->addStylesToGrid(); return $this->returnView(); }
public function all($entity) { parent::all($entity); $this->filter = \DataFilter::source(new \App\Mensagem()); $this->filter->add('nome', 'Nome', 'text'); $this->filter->submit('Buscar'); $this->filter->reset('resetar'); $this->filter->build(); $this->grid = \DataGrid::source($this->filter); $this->grid->add('id', 'ID'); $this->grid->add('nome', 'Nome'); $this->grid->add('email', 'Email'); $this->grid->add('bairro', 'Bairro'); $this->grid->add('telefone', 'Telefone'); $this->grid->add('created_at', 'Data'); $this->addStylesToGrid(); return $this->returnView(); }
public function all($entity) { parent::all($entity); $this->filter = \DataFilter::source(new Link()); $this->filter->add('id', 'ID', 'text'); $this->filter->add('display', 'Display', 'text'); $this->filter->submit('search'); $this->filter->reset('reset'); $this->filter->build(); $this->grid = \DataGrid::source($this->filter); $this->grid->add('id', 'ID', true)->style("width:100px"); $this->grid->add('display', 'Display'); $this->grid->add('url', 'Model'); $this->grid->add('show_menu', 'Show in Menu')->cell(function ($value, $row) { return $value ? "True" : "False"; }); $this->addStylesToGrid(); return $this->returnView(); }
public function all($entity) { parent::all($entity); $this->filter = \DataFilter::source(Admin::with('roles')); $this->filter->add('id', 'ID', 'text'); $this->filter->add('firstname', 'First name', 'text'); $this->filter->add('last_name', 'Last Name', 'text'); $this->filter->add('email', 'Email', 'text'); $this->filter->submit('search'); $this->filter->reset('reset'); $this->filter->build(); $this->grid = \DataGrid::source($this->filter); $this->grid->add('id', 'ID', true)->style("width:100px"); $this->grid->add('{{ $first_name }} {{ $last_name}}', 'first name'); $this->grid->add('email', 'Email'); $this->grid->add('{{ implode(", ", $roles->pluck("name")->all()) }}', 'Role'); $this->addStylesToGrid(); return $this->returnView(); }
public function all($entity) { parent::all($entity); $this->filter = \DataFilter::source(new \App\Posts()); $this->filter->add('nome', 'Nome', 'text'); $this->filter->add('categoria', 'Categoria', 'text'); $this->filter->submit('Buscar'); $this->filter->reset('resetar'); $this->filter->build(); $this->grid = \DataGrid::source($this->filter); $this->grid->add('id', 'ID', 'id'); $this->grid->add('nome', 'Nome'); $this->grid->add('categoria', 'Categoria'); $this->grid->add('resumo', 'Resumo'); $this->grid->add('foto', 'Foto'); $this->grid->add('descricao', 'Descrição'); $this->grid->add('descricao2', 'Descrição 2'); $this->addStylesToGrid(); return $this->returnView(); }
public function all($entity) { parent::all($entity); $this->filter = \DataFilter::source(new \App\IBMWatsonSentiments()); $this->filter->add('ibmwatson', 'IBM Watson', 'text'); $this->filter->submit('search'); $this->filter->reset('reset'); $this->filter->build(); $this->grid = \DataGrid::source($this->filter); $this->grid->add('id', 'ID', true); $this->grid->add('date', 'Date', true); $this->grid->add('symbol_id', 'Symbol ID', true); $this->grid->add('anger', 'Anger', true); $this->grid->add('disgust', 'Disgust', true); $this->grid->add('fear', 'Fear', true); $this->grid->add('joy', 'Joy', true); $this->grid->add('sadness', 'Sadness', true); $this->grid->add('created_at', 'Created At', true); $this->grid->add('updated_at', 'Updated At', true); return $this->returnView(); }
public function all($entity) { parent::all($entity); // Simple code of filter and grid part , List of all fields here : http://laravelpanel.com/docs/master/crud-fields $this->filter = \DataFilter::source(new \App\Tweets()); $this->filter->add('tweets', 'Tweets', 'text'); $this->filter->submit('search'); $this->filter->reset('reset'); $this->filter->build(); $this->grid = \DataGrid::source($this->filter); $this->grid->add('id', 'ID', true); $this->grid->add('message_id', 'Message ID', true); $this->grid->add('username', 'Username', true); $this->grid->add('body', 'Message Body', true); $this->grid->add('symbol_id', 'Symbol ID', true); $this->grid->add('timestamp', 'Message Timestamp', true); $this->grid->add('created_at', 'Created At', true); $this->grid->add('updated_at', 'Updated At', true); $this->addStylesToGrid(); return $this->returnView(); }
public function all($entity) { parent::all($entity); $this->filter = \DataFilter::source(new \App\Posts()); $this->filter->add('nome', 'Nome', 'text'); $this->filter->add('categoria', 'Categoria', 'text'); $this->filter->submit('Buscar'); $this->filter->reset('resetar'); $this->filter->build(); $this->grid = \DataGrid::source($this->filter); $this->grid->add('id', 'ID', 'id'); $this->grid->add('nome', 'Nome'); $this->grid->add('categoria', 'Categoria'); $this->grid->add('grupo', 'grupo'); $this->grid->add('tipo', 'tipo'); $this->grid->add('resumo', 'Resumo'); $this->grid->add('foto', 'Foto '); $this->grid->add('classe', 'classe '); $this->grid->add('link', 'Link da prefeitura'); $this->addStylesToGrid(); return $this->returnView(); }
public function all($entity) { parent::all($entity); $this->filter = \DataFilter::source(new \App\Prices()); $this->filter->add('prices', 'Prices', 'text'); $this->filter->submit('search'); $this->filter->reset('reset'); $this->filter->build(); $this->grid = \DataGrid::source($this->filter); $this->grid->add('id', 'ID', true); $this->grid->add('date', 'Date', true); $this->grid->add('symbol_id', 'Symbol ID', true); $this->grid->add('open', 'Open', true); $this->grid->add('high', 'High', true); $this->grid->add('low', 'Low', true); $this->grid->add('last', 'Last', true); $this->grid->add('settle', 'Settle', true); $this->grid->add('volume', 'Volume', true); $this->grid->add('open_interest', 'Open Interest', true); $this->grid->add('created_at', 'Created At', true); $this->grid->add('updated_at', 'Updated At', true); $this->addStylesToGrid(); return $this->returnView(); }
public function all($entity) { parent::all($entity); // Simple code of filter and grid part. // List of all fields here: http://laravelpanel.com/docs/master/crud-fields $this->filter = \DataFilter::source(new \App\Symbols()); $this->filter->add('symbol', 'Symbols', 'text'); $this->filter->submit('search'); $this->filter->reset('reset'); $this->filter->build(); $this->grid = \DataGrid::source($this->filter); $this->grid->add('id', 'ID', true); $this->grid->add('name', 'Name', true); $this->grid->add('exchange', 'Exchange', true); $this->grid->add('symbol', 'Symbol', true); $this->grid->add('type', 'Type', true); $this->grid->add('cat', 'Category', true); $this->grid->add('expire_month', 'Expire Month', true); $this->grid->add('expire_year', 'Expire Year', true); $this->grid->add('created_at', 'Created At', true); $this->grid->add('updated_at', 'Updated At', true); $this->addStylesToGrid(); return $this->returnView(); }
public function all($entity) { parent::all($entity); $this->filter = \DataFilter::source(new \App\News()); $this->filter->add('active', 'Active', 'select')->options(\App\News::lists("Active", "active")->all()); $this->filter->add('title', 'Title', 'text'); $this->filter->add('title_en', 'Title(EN)', 'text'); $this->filter->add('published_at', 'Pub. Date', 'datetime')->format('Y-m-d H:i:s', 'uk'); $this->filter->add('created_at', 'Created Date', 'datetime')->format('Y-m-d H:i:s', 'uk'); $this->filter->submit('search'); $this->filter->reset('reset'); $this->filter->build(); $this->grid = \DataGrid::source($this->filter); $this->grid->add('active', 'Active', 'active'); $this->grid->add('title', 'Title', 'title'); $this->grid->add('title_en', 'Title(En)', 'title_en'); $this->grid->add('segment', 'Segment'); $this->grid->add('content', 'Content'); $this->grid->add('published_at', 'Pub. Date', 'published_at'); $this->grid->add('created_at', 'Created Date', 'created_at'); $this->grid->add('img_url', 'Image'); $this->addStylesToGrid(); return $this->returnView(); }