Se modifican procesos para pagos en linea a travez de stripe

This commit is contained in:
2026-03-12 12:27:26 -06:00
parent fac20ea52d
commit ed2184827d
32 changed files with 703 additions and 506 deletions
@@ -9,7 +9,7 @@ return new class extends Migration
public function up(): void
{
Schema::create('prospectos', function (Blueprint $table) {
Schema::create('alumnos', function (Blueprint $table) {
$table->id();
$table->unsignedBigInteger('nivel');
$table->unsignedBigInteger('plan_id');
@@ -28,6 +28,6 @@ return new class extends Migration
*/
public function down(): void
{
Schema::dropIfExists('prospectos');
Schema::dropIfExists('alumnos');
}
};
@@ -9,9 +9,9 @@ return new class extends Migration
public function up(): void
{
Schema::create('prospecto_user', function (Blueprint $table) {
$table->unsignedBigInteger('prospecto_id');
$table->foreign('prospecto_id')->references('id')->on('prospectos');
Schema::create('alumno_user', function (Blueprint $table) {
$table->unsignedBigInteger('alumno_id');
$table->foreign('alumno_id')->references('id')->on('alumnos');
$table->unsignedBigInteger('user_id');
$table->foreign('user_id')->references('id')->on('users');
});
@@ -19,6 +19,6 @@ return new class extends Migration
public function down(): void
{
Schema::dropIfExists('prospecto_user');
Schema::dropIfExists('alumno_user');
}
};
@@ -11,7 +11,7 @@ return new class extends Migration
*/
public function up(): void
{
Schema::create('prospecto_status', function (Blueprint $table) {
Schema::create('alumno_status', function (Blueprint $table) {
$table->id();
$table->string('name');
});
@@ -22,6 +22,6 @@ return new class extends Migration
*/
public function down(): void
{
Schema::dropIfExists('prospecto_status');
Schema::dropIfExists('alumno_status');
}
};
@@ -5,24 +5,24 @@ namespace Database\Seeders;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
class prospectoStatusSeeder extends Seeder
class AlumnoStatusSeeder extends Seeder
{
public function run(): void
{
DB::table('prospecto_status')->insert([
DB::table('alumno_status')->insert([
'name' => 'activo'
]);
DB::table('prospecto_status')->insert([
DB::table('alumno_status')->insert([
'name' => 'aspirante'
]);
DB::table('prospecto_status')->insert([
DB::table('alumno_status')->insert([
'name' => 'inscrito'
]);
DB::table('prospecto_status')->insert([
DB::table('alumno_status')->insert([
'name' => 'baja'
]);
}
+1 -1
View File
@@ -74,7 +74,7 @@ class ConceptoSeeder extends Seeder
$concepto=Concepto::create([
'name' => 2,
'fecha_pago' => $year.'-'.$i.'-01',
'monto' => '2000',
'monto' => '20',
'tipo' => $tipo,
'recargo' => $recargo
]);
+1 -1
View File
@@ -18,7 +18,7 @@ class DatabaseSeeder extends Seeder
$this->call(DurationSeeder::class);
$this->call(CarreraSeeder::class);
$this->call(AreaSeeder::class);
$this->call(prospectoStatusSeeder::class);
$this->call(AlumnoStatusSeeder::class);
$this->call(TurnoSeeder::class);
$this->call(MedioSeeder::class);
$this->call(CampanSeeder::class);
+5 -5
View File
@@ -16,7 +16,7 @@ class RoleSeeder extends Seeder
$role1 = Role::create(['name'=>'Admin']);
$role2 = Role::create(['name'=>'Blogger']);
$role3 = Role::create(['name'=>'Promotor']);
$role4 = Role::create(['name'=>'Prospecto']);
$role4 = Role::create(['name'=>'alumno']);
Permission::create(['name'=>'note.index','description'=>'Ver notas'])->syncRoles([$role2]);
Permission::create(['name'=>'note.create','description'=>'Crear notas'])->syncRoles([$role2]);
@@ -68,10 +68,10 @@ class RoleSeeder extends Seeder
Permission::create(['name'=>'plan.edit','description'=>'Editar planes'])->syncRoles([$role1]);
Permission::create(['name'=>'plan.destroy','description'=>'Eliminar planes'])->syncRoles([$role1]);
Permission::create(['name'=>'prospecto.index','description'=>'Ver prospectos'])->syncRoles([$role1,$role3]);
Permission::create(['name'=>'prospecto.create','description'=>'Crear prospectos'])->syncRoles([$role1,$role3]);
Permission::create(['name'=>'prospecto.edit','description'=>'Editar prospectos'])->syncRoles([$role1,$role3]);
Permission::create(['name'=>'prospecto.destroy','description'=>'Eliminar prospectos'])->syncRoles([$role1,$role3]);
Permission::create(['name'=>'alumno.index','description'=>'Ver alumnos'])->syncRoles([$role1,$role3]);
Permission::create(['name'=>'alumno.create','description'=>'Crear alumnos'])->syncRoles([$role1,$role3]);
Permission::create(['name'=>'alumno.edit','description'=>'Editar alumnos'])->syncRoles([$role1,$role3]);
Permission::create(['name'=>'alumno.destroy','description'=>'Eliminar alumnos'])->syncRoles([$role1,$role3]);
Permission::create(['name'=>'area.index','description'=>'Ver areas'])->syncRoles([$role1]);
Permission::create(['name'=>'area.create','description'=>'Crear areas'])->syncRoles([$role1]);