class MonthlyReport extends Widget implements HasForms
{
use InteractsWithForms;
protected static string $view = "filament.resources.user-resource.widgets.monthly-report";
public function getMonthlyReports(): array
{
return ActionHistoryHelper::getReport(Carbon::now()->format('Y-m-d'));
}
public function form(Form $form): Form
{
return $form->schema([DatePicker::make('date')]);
}
}
class MonthlyReport extends Widget implements HasForms
{
use InteractsWithForms;
protected static string $view = "filament.resources.user-resource.widgets.monthly-report";
public function getMonthlyReports(): array
{
return ActionHistoryHelper::getReport(Carbon::now()->format('Y-m-d'));
}
public function form(Form $form): Form
{
return $form->schema([DatePicker::make('date')]);
}
}