diff --git a/app/Filament/Resources/PatientResource.php b/app/Filament/Resources/PatientResource.php index 1e17623..e4c0027 100644 --- a/app/Filament/Resources/PatientResource.php +++ b/app/Filament/Resources/PatientResource.php @@ -213,6 +213,10 @@ public static function form(Schema $schema): Schema ]) ->maxLength(50), + TextInput::make('home_phone') + ->label(__('patients.fields.home_phone')) + ->maxLength(50), + TextInput::make('age') ->label(__('patients.fields.age')) ->numeric() @@ -248,10 +252,6 @@ public static function form(Schema $schema): Schema ->label(__('patients.fields.job')) ->maxLength(50), - TextInput::make('home_phone') - ->label(__('patients.fields.home_phone')) - ->maxLength(50), - TextInput::make('work_phone') ->label(__('patients.fields.work_phone')) ->maxLength(50), @@ -543,6 +543,9 @@ public static function infolist(Schema $schema): Schema TextEntry::make('hand_phone') ->label(__('patients.fields.hand_phone')) ->placeholder('-'), + TextEntry::make('home_phone') + ->label(__('patients.fields.home_phone')) + ->placeholder('-'), TextEntry::make('age') ->label(__('patients.fields.age')) ->placeholder('-'), @@ -571,9 +574,6 @@ public static function infolist(Schema $schema): Schema TextEntry::make('job') ->label(__('patients.fields.job')) ->placeholder('-'), - TextEntry::make('home_phone') - ->label(__('patients.fields.home_phone')) - ->placeholder('-'), TextEntry::make('work_phone') ->label(__('patients.fields.work_phone')) ->placeholder('-'), diff --git a/resources/views/livewire/settings-dropdown.blade.php b/resources/views/livewire/settings-dropdown.blade.php index 715596b..1161187 100644 --- a/resources/views/livewire/settings-dropdown.blade.php +++ b/resources/views/livewire/settings-dropdown.blade.php @@ -1,6 +1,8 @@
@can('View:SyncPage') @@ -27,7 +29,6 @@ class="flex items-center justify-center w-9 h-9 rounded-lg text-gray-500 hover:t - @can('View:SyncPage') - @endcan -
+ \ No newline at end of file diff --git a/routes/web.php b/routes/web.php index 4d899ef..823e68b 100644 --- a/routes/web.php +++ b/routes/web.php @@ -43,7 +43,10 @@ set_time_limit(0); ini_set('memory_limit', '256M'); - $dbPath = database_path('database.sqlite'); + $dbRaw = config('database.connections.sqlite.database', 'database/database.sqlite'); + $dbPath = str_starts_with($dbRaw, '/') || preg_match('/^[A-Za-z]:/', $dbRaw) + ? $dbRaw + : base_path($dbRaw); if (! file_exists($dbPath)) { abort(404, 'Database not found.'); } diff --git a/scripts/nginx/conf/nginx.conf b/scripts/nginx/conf/nginx.conf index e93b42a..dfc9f74 100644 --- a/scripts/nginx/conf/nginx.conf +++ b/scripts/nginx/conf/nginx.conf @@ -65,6 +65,16 @@ http { try_files $uri $uri/ /index.php?$query_string; } + location = /backup/download { + fastcgi_pass php_fpm; + fastcgi_read_timeout 600; + fastcgi_param SCRIPT_FILENAME $document_root/index.php; + fastcgi_param QUERY_STRING $query_string; + include fastcgi_params; + fastcgi_keep_conn on; + fastcgi_buffering off; + } + location ~ \.php$ { fastcgi_pass php_fpm; fastcgi_index index.php; diff --git a/scripts/nginx/conf/nginx.conf.template b/scripts/nginx/conf/nginx.conf.template index ee02032..2a31d68 100644 --- a/scripts/nginx/conf/nginx.conf.template +++ b/scripts/nginx/conf/nginx.conf.template @@ -65,6 +65,16 @@ http { try_files $uri $uri/ /index.php?$query_string; } + location = /backup/download { + fastcgi_pass php_fpm; + fastcgi_read_timeout 600; + fastcgi_param SCRIPT_FILENAME $document_root/index.php; + fastcgi_param QUERY_STRING $query_string; + include fastcgi_params; + fastcgi_keep_conn on; + fastcgi_buffering off; + } + location ~ \.php$ { fastcgi_pass php_fpm; fastcgi_index index.php;