Initial commit - Physiotherapy Clinic Management System
This commit is contained in:
commit
dbb326f2cc
300 files changed
+144285
No files matched your search
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use Illuminate\Database\Seeder;
|
||||
use App\Models\Currency;
|
||||
|
||||
class CurrencySeeder extends Seeder
|
||||
{
|
||||
public function run(): void
|
||||
{
|
||||
$currencies = [
|
||||
['code' => 'BHD', 'name' => 'Bahraini Dinar', 'symbol' => 'BD', 'decimal_places' => 3, 'exchange_rate_to_base' => 1.00, 'is_base' => true],
|
||||
['code' => 'SAR', 'name' => 'Saudi Riyal', 'symbol' => 'SAR', 'decimal_places' => 2, 'exchange_rate_to_base' => 0.10, 'is_base' => false],
|
||||
['code' => 'AED', 'name' => 'UAE Dirham', 'symbol' => 'AED', 'decimal_places' => 2, 'exchange_rate_to_base' => 0.103, 'is_base' => false],
|
||||
['code' => 'QAR', 'name' => 'Qatari Riyal', 'symbol' => 'QAR', 'decimal_places' => 2, 'exchange_rate_to_base' => 0.103, 'is_base' => false],
|
||||
['code' => 'KWD', 'name' => 'Kuwaiti Dinar', 'symbol' => 'KWD', 'decimal_places' => 3, 'exchange_rate_to_base' => 1.235, 'is_base' => false],
|
||||
['code' => 'OMR', 'name' => 'Omani Rial', 'symbol' => 'OMR', 'decimal_places' => 3, 'exchange_rate_to_base' => 0.978, 'is_base' => false],
|
||||
];
|
||||
|
||||
foreach ($currencies as $currency) {
|
||||
Currency::create($currency);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user