<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    public function up(): void
    {
        Schema::table('companies', function (Blueprint $table) {
            // Team Leader untuk tanda tangan laporan
            $table->string('team_leader_name')->nullable()->after('support_email');
            $table->string('team_leader_position')->nullable()->after('team_leader_name');
            // Informasi honorarium/gaji untuk kalkulasi laporan
            $table->decimal('honorarium_per_day', 15, 2)->nullable()->after('team_leader_position');
        });
    }

    public function down(): void
    {
        Schema::table('companies', function (Blueprint $table) {
            $table->dropColumn(['team_leader_name', 'team_leader_position', 'honorarium_per_day']);
        });
    }
};
