From 7a6fde55813458a829dc097995b67ed5ef300a7d Mon Sep 17 00:00:00 2001 From: Alyx Batte Date: Mon, 24 Nov 2025 09:51:22 -0500 Subject: [PATCH] feat: Additional specimen functionality --- ...025_11_19_004444_create_specimen_table.php | 50 +++++++++++++++++++ .../herbarium/create-specimen.blade.php | 9 ++++ 2 files changed, 59 insertions(+) create mode 100644 database/migrations/2025_11_19_004444_create_specimen_table.php create mode 100644 resources/views/livewire/herbarium/create-specimen.blade.php diff --git a/database/migrations/2025_11_19_004444_create_specimen_table.php b/database/migrations/2025_11_19_004444_create_specimen_table.php new file mode 100644 index 0000000..26ed25d --- /dev/null +++ b/database/migrations/2025_11_19_004444_create_specimen_table.php @@ -0,0 +1,50 @@ +id()->primary(); + $table->date('date'); + $table->string('family'); + $table->string('genus'); + $table->string('specific_epithet'); + $table->string('collector'); + $table->string('collection_number'); + $table->text('associate_collectors')->nullable(); + $table->string('plant_habit'); + $table->text('population_size'); + $table->text('substrate'); + $table->string('phenology_flowering'); + $table->string('phenology_fruiting'); + $table->string('phenology_fruiting_flowering'); + $table->string('phenology_vegetative'); + $table->text('phenology_notes')->nullable(); + $table->text('vegetation_community'); + $table->text('plant_associates')->nullable(); + $table->string('aspect'); + $table->string('exposure'); + $table->string('elevation'); + $table->text('location'); + $table->string('latitude')->nullable(); + $table->string('longitude')->nullable(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('specimen'); + } +}; diff --git a/resources/views/livewire/herbarium/create-specimen.blade.php b/resources/views/livewire/herbarium/create-specimen.blade.php new file mode 100644 index 0000000..2c1b859 --- /dev/null +++ b/resources/views/livewire/herbarium/create-specimen.blade.php @@ -0,0 +1,9 @@ +
+
+ @csrf + + + + + +