├── public ├── favicon.ico ├── robots.txt ├── vendor │ └── binarytorch │ │ └── larecipe │ │ └── assets │ │ └── fonts │ │ ├── fa-brands-400.eot │ │ ├── fa-brands-400.ttf │ │ ├── fa-brands-400.woff │ │ ├── fa-regular-400.eot │ │ ├── fa-regular-400.ttf │ │ ├── fa-solid-900.eot │ │ ├── fa-solid-900.ttf │ │ ├── fa-solid-900.woff │ │ ├── fa-solid-900.woff2 │ │ ├── nucleo-icons.eot │ │ ├── nucleo-icons.ttf │ │ ├── nucleo-icons.woff │ │ ├── nucleo-icons.woff2 │ │ ├── fa-brands-400.woff2 │ │ ├── fa-regular-400.woff │ │ └── fa-regular-400.woff2 ├── .htaccess ├── web.config └── index.php ├── resources ├── sass │ └── app.scss ├── js │ ├── app.js │ └── bootstrap.js ├── views │ ├── vendor │ │ └── larecipe │ │ │ └── partials │ │ │ ├── sidebar.blade.php │ │ │ ├── nav.blade.php │ │ │ └── logo.blade.php │ └── welcome.blade.php ├── docs │ └── 1.0 │ │ ├── index.md │ │ ├── regions.md │ │ ├── overview.md │ │ ├── fatalities.md │ │ ├── cases.md │ │ ├── vaccine-age-groups.md │ │ ├── provinces.md │ │ └── subregions.md └── lang │ └── en │ ├── pagination.php │ ├── auth.php │ └── passwords.php ├── bootstrap ├── cache │ └── .gitignore └── app.php ├── storage ├── logs │ └── .gitignore ├── app │ ├── public │ │ └── .gitignore │ └── .gitignore └── framework │ ├── testing │ └── .gitignore │ ├── views │ └── .gitignore │ ├── cache │ ├── data │ │ └── .gitignore │ └── .gitignore │ ├── sessions │ └── .gitignore │ └── .gitignore ├── database ├── .gitignore ├── seeders │ ├── csv │ │ ├── postal_districts.csv │ │ ├── provinces.csv │ │ └── reports.csv │ ├── DatabaseSeeder.php │ ├── RolesAndPermissionsSeeder.php │ ├── CaseSeeder.php │ ├── ReportSeeder.php │ ├── FatalitySeeder.php │ ├── ProvinceSeeder.php │ ├── SubRegionsSeeder.php │ ├── HealthRegionsSeeder.php │ ├── PostalDistrictSeeder.php │ └── NoteSeeder.php ├── migrations │ ├── 2020_04_08_021044_create_fatalities_table.php │ ├── 2020_04_19_062458_add_notes_to_reports_table.php │ ├── 2020_09_06_165608_add_hr_uid_to_cases_table.php │ ├── 2020_09_06_165616_add_hr_uid_to_fatalities_table.php │ ├── 2021_01_11_222818_add_vaccinated_to_reports_table.php │ ├── 2021_02_07_143924_add_vaccinated_to_hr_reports.php │ ├── 2021_10_19_220929_add_boosters_1_column_to_reports.php │ ├── 2022_01_15_233345_create_postal_districts_table.php │ ├── 2022_02_01_000356_add_boosters_2_column_to_reports.php │ ├── 2020_04_26_182059_create_options_table.php │ ├── 2020_07_23_202600_add_vaccinations_to_reports_table.php │ ├── 2020_05_05_231134_add_geographic_column_to_provinces.php │ ├── 2021_10_19_221217_add_boosters_1_column_to_hr_reports.php │ ├── 2022_02_01_000425_add_boosters_2_column_to_hr_reports.php │ ├── 2020_12_28_161242_add_vaccines_distributed_to_reports_table.php │ ├── 2021_05_10_234507_create_vaccine_groups_table.php │ ├── 2021_01_10_005345_create_process_queue_table.php │ ├── 2020_05_20_223602_add_data_status_column_to_provinces.php │ ├── 2020_04_08_021051_create_locations_table.php │ ├── 2019_08_19_000000_create_failed_jobs_table.php │ ├── 2014_10_12_000000_create_users_table.php │ ├── 2021_08_31_091812_add_boosters1_to_vaccine_reports.php │ ├── 2021_05_01_121104_add_johnson_to_vaccine_distribution.php │ ├── 2021_11_11_112220_create_sub_regions_table.php │ ├── 2022_01_15_140953_create_rt_reports_table.php │ ├── 2021_01_11_222831_add_vaccinated_to_processed_reports_table.php │ ├── 2021_02_07_144009_add_vaccinated_to_processed_hr_reports.php │ ├── 2021_10_19_221127_add_boosters_1_column_to_processed_reports.php │ ├── 2022_02_01_000411_add_boosters_2_column_to_processed_reports.php │ ├── 2021_10_19_221231_add_boosters_1_column_to_processed_hr_reports.php │ ├── 2022_02_01_000440_add_boosters_2_column_to_processed_hr_reports.php │ ├── 2020_09_06_100527_add_vaccinations_to_processed_reports_table.php │ ├── 2020_04_08_021031_create_cases_table.php │ ├── 2020_11_15_213140_create_provinces_users_table.php │ ├── 2020_12_28_162331_add_vaccines_distributed_to_processed_reports_table.php │ ├── 2020_06_08_004516_change_cases_date_to_nullable.php │ ├── 2021_12_03_220411_add_pfizer_biontech_paediatric_to_vaccine_distribution_table.php │ ├── 2020_09_06_142336_create_notes_table.php │ ├── 2020_08_07_203709_create_health_regions_table.php │ ├── 2020_04_12_082548_create_reports_table.php │ ├── 2021_05_29_194015_create_vaccine_reports_table.php │ ├── 2020_07_23_201616_create_hr_reports_table.php │ ├── 2021_04_27_214341_create_vaccine_distribution_table.php │ ├── 2020_04_12_050802_create_provinces_table.php │ ├── 2021_06_13_175534_add_out_of_province_to_vaccine_reports.php │ ├── 2021_11_07_111954_create_sr_vaccine_reports_table.php │ ├── 2020_04_19_003533_create_processed_reports_table.php │ ├── 2021_09_06_194048_drop_adult_and_out_of_province_from_vaccine_reports.php │ └── 2020_09_06_092920_create_processed_hr_reports_table.php └── factories │ └── UserFactory.php ├── .gitattributes ├── app ├── Location.php ├── ProcessedReport.php ├── Fatality.php ├── PostalDistrict.php ├── VaccineAgeGroup.php ├── VaccineDistribution.php ├── Http │ ├── Middleware │ │ ├── EncryptCookies.php │ │ ├── VerifyCsrfToken.php │ │ ├── CheckForMaintenanceMode.php │ │ ├── TrimStrings.php │ │ ├── TrustProxies.php │ │ ├── Authenticate.php │ │ ├── RedirectIfAuthenticated.php │ │ └── Cors.php │ ├── Controllers │ │ ├── Controller.php │ │ ├── HealthRegionController.php │ │ ├── NoteController.php │ │ ├── SubRegionController.php │ │ ├── ProvinceController.php │ │ ├── FatalityController.php │ │ ├── PartnerReportController.php │ │ ├── CaseController.php │ │ ├── AuthController.php │ │ └── UserController.php │ └── Kernel.php ├── Cases.php ├── HealthRegion.php ├── RapidTestReport.php ├── HrReport.php ├── Providers │ ├── BroadcastServiceProvider.php │ ├── AppServiceProvider.php │ ├── EventServiceProvider.php │ ├── AuthServiceProvider.php │ └── RouteServiceProvider.php ├── Province.php ├── Note.php ├── Option.php ├── Report.php ├── SubRegion.php ├── VaccineReport.php ├── SrVaccineReport.php ├── User.php ├── Utilities │ └── ProxyRequest.php ├── Exceptions │ └── Handler.php ├── Console │ ├── Kernel.php │ └── Commands │ │ └── TransferCaseFatality.php ├── RapidTest.php └── ModularReport.php ├── tests ├── TestCase.php ├── Unit │ ├── ExampleTest.php │ └── RapidTestTest.php ├── CreatesApplication.php └── Feature │ ├── PartnerTest.php │ ├── VaccineAgeGroupsTest.php │ ├── RapidTestTest.php │ ├── LocationTest.php │ ├── RapidTestReportTest.php │ └── SrReportTest.php ├── .styleci.yml ├── .editorconfig ├── .gitignore ├── routes ├── web.php ├── channels.php └── console.php ├── webpack.mix.js ├── server.php ├── README-report.md ├── config ├── cors.php ├── view.php ├── services.php ├── hashing.php ├── broadcasting.php ├── filesystems.php ├── queue.php └── logging.php ├── package.json ├── phpunit.xml ├── LICENSE ├── .env.example ├── artisan └── composer.json /public/favicon.ico: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /resources/sass/app.scss: -------------------------------------------------------------------------------- 1 | // 2 | -------------------------------------------------------------------------------- /bootstrap/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /resources/js/app.js: -------------------------------------------------------------------------------- 1 | require('./bootstrap'); 2 | -------------------------------------------------------------------------------- /storage/logs/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /database/.gitignore: -------------------------------------------------------------------------------- 1 | *.sqlite 2 | *.sqlite-journal 3 | -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | User-agent: * 2 | Disallow: 3 | -------------------------------------------------------------------------------- /storage/app/public/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/app/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !public/ 3 | !.gitignore 4 | -------------------------------------------------------------------------------- /storage/framework/testing/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/views/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/cache/data/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/sessions/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !data/ 3 | !.gitignore 4 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto 2 | *.css linguist-vendored 3 | *.scss linguist-vendored 4 | *.js linguist-vendored 5 | CHANGELOG.md export-ignore 6 | -------------------------------------------------------------------------------- /resources/views/vendor/larecipe/partials/sidebar.blade.php: -------------------------------------------------------------------------------- 1 |
-------------------------------------------------------------------------------- /storage/framework/.gitignore: -------------------------------------------------------------------------------- 1 | config.php 2 | routes.php 3 | schedule-* 4 | compiled.php 5 | services.json 6 | events.scanned.php 7 | routes.scanned.php 8 | down 9 | -------------------------------------------------------------------------------- /app/Location.php: -------------------------------------------------------------------------------- 1 | pluck('province', 'letter'); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /app/VaccineAgeGroup.php: -------------------------------------------------------------------------------- 1 | assertTrue(true); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /app/VaccineDistribution.php: -------------------------------------------------------------------------------- 1 | hasMany('App\HrReport', 'hr_uid', 'hr_uid'); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /app/Http/Middleware/CheckForMaintenanceMode.php: -------------------------------------------------------------------------------- 1 | belongsTo('App\HealthRegion', 'hr_uid', 'hr_uid'); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /database/seeders/DatabaseSeeder.php: -------------------------------------------------------------------------------- 1 | call(UsersTableSeeder::class); 17 | 18 | // CSV seeders 19 | $this->call(ProvinceSeeder::class); 20 | 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /tests/CreatesApplication.php: -------------------------------------------------------------------------------- 1 | make(Kernel::class)->bootstrap(); 19 | 20 | return $app; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /app/Providers/BroadcastServiceProvider.php: -------------------------------------------------------------------------------- 1 | area > 0 ) 22 | return $this->population / $this->area; 23 | return null; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /app/Http/Middleware/TrustProxies.php: -------------------------------------------------------------------------------- 1 | expectsJson()) { 18 | return route('login'); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /webpack.mix.js: -------------------------------------------------------------------------------- 1 | const mix = require('laravel-mix'); 2 | 3 | /* 4 | |-------------------------------------------------------------------------- 5 | | Mix Asset Management 6 | |-------------------------------------------------------------------------- 7 | | 8 | | Mix provides a clean, fluent API for defining some Webpack build steps 9 | | for your Laravel application. By default, we are compiling the Sass 10 | | file for the application as well as bundling up all the JS files. 11 | | 12 | */ 13 | 14 | mix.js('resources/js/app.js', 'public/js') 15 | .sass('resources/sass/app.scss', 'public/css'); 16 | -------------------------------------------------------------------------------- /app/Note.php: -------------------------------------------------------------------------------- 1 | ='; 22 | return $query->where( 'expiry_date', $operand, date('Y-m-d') ) 23 | ->orWhereNull( 'expiry_date' ); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /resources/docs/1.0/index.md: -------------------------------------------------------------------------------- 1 | - ## API 2 | - [Overview](/{{route}}/{{version}}/overview) 3 | - [Summary](/{{route}}/{{version}}/summary) 4 | - [Reports](/{{route}}/{{version}}/reports) 5 | - [Vaccination Data](/{{route}}/{{version}}/vaccinations) 6 | - [Vaccine Age Groups](/{{route}}/{{version}}/vaccine-age-groups) 7 | - [Provinces](/{{route}}/{{version}}/provinces) 8 | - [Health Regions](/{{route}}/{{version}}/regions) 9 | - [Subregions](/{{route}}/{{version}}/subregions) 10 | - [*Cases*](/{{route}}/{{version}}/cases) 11 | - [*Fatalities*](/{{route}}/{{version}}/fatalities) 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /resources/lang/en/pagination.php: -------------------------------------------------------------------------------- 1 | '« Previous', 17 | 'next' => 'Next »', 18 | 19 | ]; 20 | -------------------------------------------------------------------------------- /routes/channels.php: -------------------------------------------------------------------------------- 1 | id === (int) $id; 18 | }); 19 | -------------------------------------------------------------------------------- /server.php: -------------------------------------------------------------------------------- 1 | 8 | */ 9 | 10 | $uri = urldecode( 11 | parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH) 12 | ); 13 | 14 | // This file allows us to emulate Apache's "mod_rewrite" functionality from the 15 | // built-in PHP web server. This provides a convenient way to test a Laravel 16 | // application without having installed a "real" web server software here. 17 | if ($uri !== '/' && file_exists(__DIR__.'/public'.$uri)) { 18 | return false; 19 | } 20 | 21 | require_once __DIR__.'/public/index.php'; 22 | -------------------------------------------------------------------------------- /routes/console.php: -------------------------------------------------------------------------------- 1 | comment(Inspiring::quote()); 19 | })->describe('Display an inspiring quote'); 20 | -------------------------------------------------------------------------------- /app/Option.php: -------------------------------------------------------------------------------- 1 | first() ) { 18 | return $option->value; 19 | } 20 | return ''; 21 | } 22 | 23 | static function set( $attribute, $value ) { 24 | return self::updateOrInsert( 25 | ['attribute' => $attribute], 26 | ['value' => $value] 27 | ); 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /public/.htaccess: -------------------------------------------------------------------------------- 1 |