Skip to content

Commit

Permalink
View Update ✨✨
Browse files Browse the repository at this point in the history
  • Loading branch information
end3r-man committed Nov 19, 2023
1 parent 621a686 commit b4d44fe
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 70 deletions.
59 changes: 0 additions & 59 deletions .env

This file was deleted.

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@

.env
.env
.env
15 changes: 10 additions & 5 deletions app/Filament/Resources/PatientViewResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@

namespace App\Filament\Resources;

use App\Enums\BloodType;
use App\Filament\Resources\PatientViewResource\Pages;
use App\Filament\Resources\PatientViewResource\RelationManagers;
use App\Models\PatientView;
use Filament\Forms;
use Filament\Forms\Components\DatePicker;
use Filament\Forms\Components\FileUpload;
use Filament\Forms\Components\Section;
use Filament\Forms\Components\Select;
use Filament\Forms\Components\TextInput;
Expand Down Expand Up @@ -34,19 +36,22 @@ public static function form(Form $form): Form
->schema([
Section::make([
TextInput::make('name')
->required(),
->required()
->columns(1),
DatePicker::make('dob')
->required()
->native(false),
Select::make('blood_type')
->required()
->native(false)
->options([
'AB+' => 'AB+',
'AB-' => 'AB-'
]),
->options(BloodType::class),
TextInput::make('description')
->required(),
FileUpload::make('img')
->image()
->imageEditor()
->directory('/patiet')
->columns(2),
])->columns(2)
]);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,10 @@ public function up(): void
Schema::create('patient_views', function (Blueprint $table) {
$table->id();
$table->string('name')->nullable();
<<<<<<< Updated upstream
$table->string('dob')->nullable();
$table->string('blood_type')->nullable();
$table->text('description')->nullable();
=======
$table->date('dob')->nullable();
$table->string('blood')->nullable();
$table->string('desc')->nullable();
$table->string('img')->nullable();
>>>>>>> Stashed changes
$table->timestamps();
});
}
Expand Down

0 comments on commit b4d44fe

Please sign in to comment.