<?php

namespace App\View\Components;

use Illuminate\View\Component;

class Card extends Component
{
    public $title;
    public $subtitle;
    public $icon;
    public $padding;
    public $headerActions;

    public function __construct($title = null, $subtitle = null, $icon = null, $padding = true, $headerActions = null)
    {
        $this->title = $title;
        $this->subtitle = $subtitle;
        $this->icon = $icon;
        $this->padding = $padding;
        $this->headerActions = $headerActions;
    }

    public function render()
    {
        return view('components.card');
    }
}
