<?php

namespace App\Providers;

use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
use App\Models\Product;
use App\Models\BankAccount;
use App\Models\Transaction;
use App\Models\ExpenseType;
use App\Models\Customer;
use App\Models\Invoice;
use App\Models\DigitalPayment;
use App\Policies\ProductPolicy;
use App\Policies\BankAccountPolicy;
use App\Policies\TransactionPolicy;
use App\Policies\ExpenseTypePolicy;
use App\Policies\CustomerPolicy;
use App\Policies\InvoicePolicy;
use App\Policies\DigitalPaymentPolicy;

class AuthServiceProvider extends ServiceProvider
{
    protected $policies = [
        Product::class => ProductPolicy::class,
        BankAccount::class => BankAccountPolicy::class,
        Transaction::class => TransactionPolicy::class,
        ExpenseType::class => ExpenseTypePolicy::class,
        Customer::class => CustomerPolicy::class,
        Invoice::class => InvoicePolicy::class,
        DigitalPayment::class => DigitalPaymentPolicy::class,
    ];

    public function boot(): void
    {
        $this->registerPolicies();
    }
}
