- Nuevo modulo de historial de cambios (ServicioHistorial) - Observer para tracking automatico de cambios en servicios - Correccion de variables auxiliar en ServiciosController - Actualizacion de configuraciones y migraciones - Endpoint para consultar historial de cambios Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
69 lines
2.2 KiB
PHP
Executable File
69 lines
2.2 KiB
PHP
Executable File
<?php
|
|
|
|
use Carbon\Carbon;
|
|
use Illuminate\Database\Seeder;
|
|
|
|
class EstatusServiciosTableSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function run()
|
|
{
|
|
DB::table('cat_estatus_servicios')->insert([
|
|
|
|
[
|
|
'nombre' => 'Realizado',
|
|
'color_1' => '#04B404',
|
|
'color_2' => NULL,
|
|
'created_at' => Carbon::now()->toDateTimeString(),
|
|
'updated_at' => Carbon::now()->toDateTimeString(),
|
|
],
|
|
[
|
|
'nombre' => 'Reprogramado',
|
|
'color_1' => '#FF8000',
|
|
'color_2' => NULL,
|
|
'created_at' => Carbon::now()->toDateTimeString(),
|
|
'updated_at' => Carbon::now()->toDateTimeString(),
|
|
],
|
|
[
|
|
'nombre' => 'Cancelado',
|
|
'color_1' => '#B40404',
|
|
'color_2' => NULL,
|
|
'created_at' => Carbon::now()->toDateTimeString(),
|
|
'updated_at' => Carbon::now()->toDateTimeString(),
|
|
],
|
|
[
|
|
'nombre' => 'Pendiente',
|
|
'color_1' => '#FFFF00',
|
|
'color_2' => '#000000',
|
|
'created_at' => Carbon::now()->toDateTimeString(),
|
|
'updated_at' => Carbon::now()->toDateTimeString(),
|
|
],
|
|
[
|
|
'nombre' => 'Negativo',
|
|
'color_1' => '#FE2E2E',
|
|
'color_2' => '#FFFFFF',
|
|
'created_at' => Carbon::now()->toDateTimeString(),
|
|
'updated_at' => Carbon::now()->toDateTimeString(),
|
|
],
|
|
[
|
|
'nombre' => 'Pagado',
|
|
'color_1' => '#0000FF',
|
|
'color_2' => NULL,
|
|
'created_at' => Carbon::now()->toDateTimeString(),
|
|
'updated_at' => Carbon::now()->toDateTimeString(),
|
|
],
|
|
[
|
|
'nombre' => 'Visita/asesoría',
|
|
'color_1' => '#A4A4A4',
|
|
'color_2' => NULL,
|
|
'created_at' => Carbon::now()->toDateTimeString(),
|
|
'updated_at' => Carbon::now()->toDateTimeString(),
|
|
],
|
|
]);
|
|
}
|
|
}
|