<?php

namespace App\View\Components;

use Closure;
use Illuminate\View\Component;
use Illuminate\Contracts\View\View;
class AccordionCard extends Component
{
    public ?string $label;
    public ?string $classCardLabel;
    public ?string $class;
    public ?string $toolbar;
    public ?string $footer;
    public ?string $id;
    public bool $header;
    public bool $show;

    public function __construct(
        ?string $label = null,
        ?string $classCardLabel = '',
        ?string $class = '',
        ?string $id = '',
        ?string $toolbar = null,
        ?string $footer = null,
        bool $header = true,
        bool $show = false,
    ) {
        $this->label = $label;
        $this->classCardLabel = $classCardLabel;
        $this->class = $class;
        $this->id = $id;
        $this->toolbar = $toolbar;
        $this->footer = $footer;
        $this->header = $header;
        $this->show = $show;
    }

    public function render(): View|Closure|string
    {
        return view('components.accordion-card');
    }
}
