<?php

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

return new class extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::table('companies', function (Blueprint $table) {
            // Pengaturan tampilkan/sembunyikan menu Rekap untuk karyawan di mobile
            // Default: true (tampilkan)
            $table->boolean('show_recap_for_employee')->default(true)->after('show_recap_for_admin');
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::table('companies', function (Blueprint $table) {
            $table->dropColumn('show_recap_for_employee');
        });
    }
};
