From 3bbcd2a20d732caa3240efca4ede6ca22ad45907 Mon Sep 17 00:00:00 2001 From: Nabeel Shahzad Date: Sat, 24 Feb 2018 16:05:00 -0600 Subject: [PATCH] fix pirep ids in sample; rename navs to flight reports --- .../2017_06_28_195426_create_pirep_tables.php | 2 +- app/Database/seeds/sample.yml | 10 +++++----- resources/views/admin/menu.blade.php | 2 +- resources/views/layouts/default/nav.blade.php | 2 +- .../views/layouts/default/pireps/pirep_card.blade.php | 4 +++- 5 files changed, 11 insertions(+), 9 deletions(-) diff --git a/app/Database/migrations/2017_06_28_195426_create_pirep_tables.php b/app/Database/migrations/2017_06_28_195426_create_pirep_tables.php index 957635e6..1662ebf9 100644 --- a/app/Database/migrations/2017_06_28_195426_create_pirep_tables.php +++ b/app/Database/migrations/2017_06_28_195426_create_pirep_tables.php @@ -63,7 +63,7 @@ class CreatePirepTables extends Migration $table->bigIncrements('id'); $table->string('pirep_id', \App\Models\Pirep::ID_MAX_LENGTH); $table->unsignedInteger('fare_id'); - $table->unsignedInteger('count')->nullable(); + $table->unsignedInteger('count')->nullable()->default(0); $table->index('pirep_id'); }); diff --git a/app/Database/seeds/sample.yml b/app/Database/seeds/sample.yml index 0f6fbf67..6489a8c2 100644 --- a/app/Database/seeds/sample.yml +++ b/app/Database/seeds/sample.yml @@ -338,23 +338,23 @@ pireps: pirep_fares: - id: 1 - pirep_id: pirep_id_1 + pirep_id: pirepid_1 fare_id: 1 count: 300 - id: 2 - pirep_id: pirep_id_1 + pirep_id: pirepid_1 fare_id: 2 count: 25 - id: 3 - pirep_id: pirep_id_1 + pirep_id: pirepid_1 fare_id: 3 count: 10 - id: 4 - pirep_id: pirep_id_2 + pirep_id: pirepid_2 fare_id: 1 count: 200 - id: 5 - pirep_id: pirep_id_2 + pirep_id: pirepid_2 fare_id: 3 count: 15 diff --git a/resources/views/admin/menu.blade.php b/resources/views/admin/menu.blade.php index 145a3590..3d334eb8 100644 --- a/resources/views/admin/menu.blade.php +++ b/resources/views/admin/menu.blade.php @@ -10,7 +10,7 @@
-   +

+ edit +