matab-panel/database/seeders/TreatmentSeeder.php

43 lines
3.5 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?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
);
}
}
}