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
+29
View File
@@ -0,0 +1,29 @@
<?php
namespace Database\Seeders;
use App\Models\PaymentType;
use Illuminate\Database\Seeder;
class PaymentTypeSeeder extends Seeder
{
public function run(): void
{
$paymentTypes = [
['payment_type' => 'بانک ملت', 'account_no' => '222', 'pos_no' => null, 'description' => null],
['payment_type' => 'بانک سامان', 'account_no' => '111', 'pos_no' => null, 'description' => null],
['payment_type' => 'پرداخت نقدی', 'account_no' => null, 'pos_no' => null, 'description' => null],
['payment_type' => 'بانک صادرات', 'account_no' => null, 'pos_no' => null, 'description' => null],
['payment_type' => 'کارت به کارت بانکی', 'account_no' => '123', 'pos_no' => '456', 'description' => null],
['payment_type' => 'نقد و کارت', 'account_no' => null, 'pos_no' => null, 'description' => null],
['payment_type' => 'توسعه عصر', 'account_no' => null, 'pos_no' => null, 'description' => null],
];
foreach ($paymentTypes as $item) {
PaymentType::firstOrCreate(
['payment_type' => $item['payment_type']],
$item
);
}
}
}