Alejandro Visentini
Alejandro Visentini
Laravel
Comparte:

Area de filtros en un listado

Hola a tod@s. Es la primera vez que voy a trabajar con Laravel (estoy usando la version 9) y debo implementar un listado de items el cual contenga un area que permita filtrar los resultados. Los filtros pueden ser dropdown select, texto libre con autocompletado y fechas (desde-hasta). La unica restriccion que tengo es no usar javascript y el sitio debe estar optimizado para SEO.
Quisiera que me orienten sobre como estructurar a grandes rasgos esta implementacion. Muchas gracias
Jorge García
Jorge García (2780 xp)
Hola Alejandro, tienes algo de código que hayas probado para tener una idea más concreta?
Un repositorio de Github sería bastante útil.
1
Alejandro Visentini
Alejandro Visentini (44 xp)
Buen dia Jorge. Te paso la url del respositorio: https://github.com/alevisentini/directory/tree/develop. Si tienes algun inconveniente para descargar el codigo avisame. Saludos y muchas gracias

insert into activities (id, name, created_at, updated_at) values (1, 'Activty 1', null, NULL);

insert into types (id, name, created_at, updated_at) values (1, 'First type', null, NULL);

insert into statuses (id, name, statement_status, reason_for_status, created_at, updated_at) values (1, 'Status 1', 'statemetn', 'reason', null, null);
insert into statuses (id, name, statement_status, reason_for_status, created_at, updated_at) values (2, 'Status 2', 'statemetn', 'reason', null, NULL);

INSERT INTO filings
(initial_date, effective_date, last_evemt, event_date_filed, event_effective_date, created_at, updated_at)
VALUES (NOW(), NOW(), NOW(), NOW(), NOW(), NOW(), NOW());

insert into businesses (id, status_id, activity_id, type_id, filing_id, name, STATE, file_number, foreign_legal_name, fictitious_name, sectionof_law, county, jurisdiction, farm_corp_flag, duration_expiration, formation_date, statement_of_info_due_date, activity, formed_in, standing_sos, effective_sos_registration_date, texas_sos_file_number, rigth_to_transact_business_in_texas, inactive_date, standing_ftb, standing_vcfcf, fein_ein_number, forfeiture_date, texas_taxpayer_number, nfp_category, created_at, updated_at) values (10, 1, 1, 1, 1, 'Alibaba (China) Technology Co., Ltd', 'New York', '1', 'Technology Co. LLC', 'Stanlybaba', 'Company soft', 'USA', 'USA', false, '1y', 'date', '2023-01-18', 'activity', 'formentd', '2', '2023-01-10', '123', '123', '2023-01-11', 'asdadsa', 'asdasd', 'asdads', '2023-01-12', 'qad', 'nft cat', NOW(), NOW());
insert into businesses (id, status_id, activity_id, type_id, filing_id, name, STATE,file_number, foreign_legal_name, fictitious_name, sectionof_law, county, jurisdiction, farm_corp_flag, duration_expiration, formation_date, statement_of_info_due_date, activity, formed_in, standing_sos, effective_sos_registration_date, texas_sos_file_number, rigth_to_transact_business_in_texas, inactive_date, standing_ftb, standing_vcfcf, fein_ein_number, forfeiture_date, texas_taxpayer_number, nfp_category, created_at, updated_at) values (11, 1, 1, 1, 1, 'Berkshire Hathaway Inc.
', 'New York','1', 'Berkshire Hathaway Inc.
', 'Berska', 'Company soft', 'USA', 'USA', false, '1y', 'date', '2023-01-18', 'activity', 'formentd', '2', '2023-01-10', '123', '123', '2023-01-11', 'asdadsa', 'asdasd', 'asdads', '2023-01-12', 'qad', 'nft cat', NOW(), NOW());
insert into businesses (id, status_id, activity_id, type_id, filing_id, name, STATE,file_number, foreign_legal_name, fictitious_name, sectionof_law, county, jurisdiction, farm_corp_flag, duration_expiration, formation_date, statement_of_info_due_date, activity, formed_in, standing_sos, effective_sos_registration_date, texas_sos_file_number, rigth_to_transact_business_in_texas, inactive_date, standing_ftb, standing_vcfcf, fein_ein_number, forfeiture_date, texas_taxpayer_number, nfp_category, created_at, updated_at) values (12, 1, 1, 1, 1, 'Exxon Mobil Corporation', 'Texas','1', 'Exxon Mobil Corporation', 'Exxit', 'Company soft', 'USA', 'USA', false, '1y', 'date', '2023-01-18', 'activity', 'formentd', '2', '2023-01-10', '123', '123', '2023-01-11', 'asdadsa', 'asdasd', 'asdads', '2023-01-12', 'qad', 'nft cat', NOW(), NOW()); 
Jorge García
Jorge García (2780 xp)