From b4d44fe3c250ba6ba90573cc4ea1406bc9b99166 Mon Sep 17 00:00:00 2001 From: ELG Foundation <138782482+end3r-man@users.noreply.github.com> Date: Sun, 19 Nov 2023 12:15:54 +0530 Subject: [PATCH] =?UTF-8?q?View=20Update=20=E2=9C=A8=E2=9C=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 59 ------------------- .gitignore | 2 + .../Resources/PatientViewResource.php | 15 +++-- ...2023_11_15_172544_create_patient_views.php | 6 -- 4 files changed, 12 insertions(+), 70 deletions(-) delete mode 100644 .env diff --git a/.env b/.env deleted file mode 100644 index 80bcfb1..0000000 --- a/.env +++ /dev/null @@ -1,59 +0,0 @@ -APP_NAME=Laravel -APP_ENV=local -APP_KEY=base64:6cunAdippOCMmYIc4IJgs1GxXmeBizVCcO5WO2e7+Bo= -APP_DEBUG=true -APP_URL=http://localhost:8000 - -LOG_CHANNEL=stack -LOG_DEPRECATIONS_CHANNEL=null -LOG_LEVEL=debugz - -DB_CONNECTION=mysql -DB_HOST=127.0.0.1 -DB_PORT=3306 -DB_DATABASE= -DB_USERNAME= -DB_PASSWORD= - -BROADCAST_DRIVER=log -CACHE_DRIVER=file -FILESYSTEM_DISK=local -QUEUE_CONNECTION=sync -SESSION_DRIVER=file -SESSION_LIFETIME=120 - -MEMCACHED_HOST=127.0.0.1 - -REDIS_HOST=127.0.0.1 -REDIS_PASSWORD=null -REDIS_PORT=6379 - -MAIL_MAILER=smtp -MAIL_HOST=mailpit -MAIL_PORT=1025 -MAIL_USERNAME=null -MAIL_PASSWORD=null -MAIL_ENCRYPTION=null -MAIL_FROM_ADDRESS="hello@example.com" -MAIL_FROM_NAME="${APP_NAME}" - -AWS_ACCESS_KEY_ID= -AWS_SECRET_ACCESS_KEY= -AWS_DEFAULT_REGION=us-east-1 -AWS_BUCKET= -AWS_USE_PATH_STYLE_ENDPOINT=false - -PUSHER_APP_ID= -PUSHER_APP_KEY= -PUSHER_APP_SECRET= -PUSHER_HOST= -PUSHER_PORT=443 -PUSHER_SCHEME=https -PUSHER_APP_CLUSTER=mt1 - -VITE_APP_NAME="${APP_NAME}" -VITE_PUSHER_APP_KEY="${PUSHER_APP_KEY}" -VITE_PUSHER_HOST="${PUSHER_HOST}" -VITE_PUSHER_PORT="${PUSHER_PORT}" -VITE_PUSHER_SCHEME="${PUSHER_SCHEME}" -VITE_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" diff --git a/.gitignore b/.gitignore index 963a057..5644ec9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ .env +.env +.env diff --git a/app/Filament/Resources/PatientViewResource.php b/app/Filament/Resources/PatientViewResource.php index 97f206c..ebedfb9 100644 --- a/app/Filament/Resources/PatientViewResource.php +++ b/app/Filament/Resources/PatientViewResource.php @@ -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; @@ -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) ]); } diff --git a/database/migrations/2023_11_15_172544_create_patient_views.php b/database/migrations/2023_11_15_172544_create_patient_views.php index 876d662..30c41bf 100644 --- a/database/migrations/2023_11_15_172544_create_patient_views.php +++ b/database/migrations/2023_11_15_172544_create_patient_views.php @@ -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(); }); }