57 lines
1.8 KiB
PHP
Executable File
57 lines
1.8 KiB
PHP
Executable File
<?php
|
|
|
|
namespace Database\Seeders;
|
|
|
|
use App\Models\ChecklistFineAnnoItem;
|
|
use Illuminate\Database\Seeder;
|
|
|
|
class ChecklistFineAnnoSeeder extends Seeder
|
|
{
|
|
public function run(): void
|
|
{
|
|
$items = [
|
|
[
|
|
'label' => 'Verifica incassi e riconciliazione banca',
|
|
'action_url' => '/admin-filament/contabilita/casse-banche',
|
|
'sort_order' => 10,
|
|
],
|
|
[
|
|
'label' => 'Confronto spese consuntive vs preventivo',
|
|
'action_url' => '/admin-filament/contabilita/preventivi',
|
|
'sort_order' => 20,
|
|
],
|
|
[
|
|
'label' => 'Chiusura gestione ordinaria',
|
|
'action_url' => '/admin-filament/contabilita/chiusure-gestione',
|
|
'sort_order' => 30,
|
|
],
|
|
[
|
|
'label' => 'Preparazione bilancio e riparto',
|
|
'action_url' => '/admin-filament/contabilita/bilanci',
|
|
'sort_order' => 40,
|
|
],
|
|
[
|
|
'label' => 'Predisposizione convocazione assemblea e allegati',
|
|
'action_url' => '/admin-filament/documenti/convocazioni',
|
|
'sort_order' => 50,
|
|
],
|
|
[
|
|
'label' => 'Impostazione nuova gestione e periodi rate',
|
|
'action_url' => '/admin-filament/condomini/stabile?tab=gestioni&gestioni_tab=periodi',
|
|
'sort_order' => 60,
|
|
],
|
|
];
|
|
|
|
foreach ($items as $item) {
|
|
ChecklistFineAnnoItem::query()->updateOrCreate(
|
|
['label' => $item['label']],
|
|
[
|
|
'action_url' => $item['action_url'],
|
|
'sort_order' => $item['sort_order'],
|
|
'is_active' => true,
|
|
]
|
|
);
|
|
}
|
|
}
|
|
}
|