feat: initialize Dr-Panel project with patient file number support

This commit is contained in:
SajjadMahmoody
2026-05-06 02:18:23 +03:30
parent f8f174690a
commit 8b84d1780f
460 changed files with 113960 additions and 1 deletions
+42
View File
@@ -0,0 +1,42 @@
<?php
namespace Database\Seeders;
use App\Models\Treatment;
use Illuminate\Database\Seeder;
class TreatmentSeeder extends Seeder
{
public function run(): void
{
$treatments = [
['treatment_type' => 'ویزیت', 'treatment_name' => 'دندان', 'descriptions' => null, 'treatment_cost' => 0],
['treatment_type' => 'ویزیت', 'treatment_name' => 'ویزیت', 'descriptions' => null, 'treatment_cost' => 300000],
['treatment_type' => 'ویزیت', 'treatment_name' => 'بررسی وضعیت بیمار', 'descriptions' => null, 'treatment_cost' => 0],
['treatment_type' => 'ویزیت', 'treatment_name' => 'تزریق ژل', 'descriptions' => null, 'treatment_cost' => null],
['treatment_type' => 'ویزیت', 'treatment_name' => 'تزریق تریامیسنولون', 'descriptions' => null, 'treatment_cost' => null],
['treatment_type' => 'ویزیت', 'treatment_name' => 'خارج کردن اسپلینت ها و بخیه', 'descriptions' => null, 'treatment_cost' => 300000],
['treatment_type' => 'ویزیت', 'treatment_name' => 'تعویض چسب', 'descriptions' => null, 'treatment_cost' => 150000],
['treatment_type' => 'ویزیت', 'treatment_name' => 'مشاوره', 'descriptions' => null, 'treatment_cost' => 300000],
['treatment_type' => 'ویزیت', 'treatment_name' => 'کشیدن تامپون', 'descriptions' => null, 'treatment_cost' => 300000],
['treatment_type' => 'ویزیت', 'treatment_name' => 'ودیعه', 'descriptions' => null, 'treatment_cost' => 1000000],
['treatment_type' => 'ویزیت', 'treatment_name' => 'بوتاکس', 'descriptions' => null, 'treatment_cost' => null],
['treatment_type' => 'ویزیت', 'treatment_name' => 'مزوتراپی', 'descriptions' => null, 'treatment_cost' => null],
['treatment_type' => 'ویزیت', 'treatment_name' => 'چک کردن', 'descriptions' => null, 'treatment_cost' => 150000],
['treatment_type' => 'ویزیت', 'treatment_name' => 'جراحی سرپایی', 'descriptions' => null, 'treatment_cost' => null],
['treatment_type' => 'ویزیت', 'treatment_name' => 'چسب سفید', 'descriptions' => null, 'treatment_cost' => 200000],
['treatment_type' => 'ویزیت', 'treatment_name' => 'چسب کرم', 'descriptions' => null, 'treatment_cost' => 250000],
['treatment_type' => 'ویزیت', 'treatment_name' => 'کشیدن بخیه', 'descriptions' => null, 'treatment_cost' => 150000],
['treatment_type' => 'ویزیت', 'treatment_name' => 'نوزونت تیوبی', 'descriptions' => null, 'treatment_cost' => 500000],
['treatment_type' => 'ویزیت', 'treatment_name' => 'نوستریل ریتینر', 'descriptions' => null, 'treatment_cost' => 1500000],
['treatment_type' => 'ویزیت', 'treatment_name' => 'نوزونت مخروطی', 'descriptions' => null, 'treatment_cost' => 500000],
];
foreach ($treatments as $item) {
Treatment::firstOrCreate(
['treatment_name' => $item['treatment_name']],
$item
);
}
}
}