<?php

namespace Database\Seeders;

use Illuminate\Database\Seeder;
use Spatie\Permission\Models\Role;
use Spatie\Permission\Models\Permission;

class RoleSeeder extends Seeder
{
    public function run(): void
    {
        // 1. Create Roles
        $admin = Role::create(['name' => 'super_admin']);
        $lawyer = Role::create(['name' => 'lawyer']);
        $staff = Role::create(['name' => 'paralegal']);
        $client = Role::create(['name' => 'client']);

        // 2. Define Permissions (Optional but recommended)
        // Permission::create(['name' => 'view_all_cases']);
        // Permission::create(['name' => 'manage_billing']);

        // 3. Assign Permissions to Roles
        // $admin->givePermissionTo(Permission::all());
        // $lawyer->givePermissionTo(['view_all_cases']);
    }
}
