mirror of
https://github.com/jez500/pricebuddy.git
synced 2026-11-24 19:58:13 +01:00
26 lines
708 B
PHP
26 lines
708 B
PHP
<?php
|
|
|
|
namespace App\Filament\Widgets;
|
|
|
|
use Filament\Widgets\Widget;
|
|
use Illuminate\Database\Eloquent\Collection;
|
|
|
|
class NoProductsFound extends Widget
|
|
{
|
|
protected static string $view = 'filament.widgets.no-products-found';
|
|
|
|
protected static ?int $sort = -10;
|
|
|
|
protected static ?Collection $products = null;
|
|
|
|
protected function getViewData(): array
|
|
{
|
|
return [
|
|
'heading' => 'No products found',
|
|
'description' => 'It looks like you don\'t have any published products yet. Get started by adding a new product.',
|
|
'cta_url' => route('filament.admin.resources.products.create'),
|
|
'cta_text' => 'Add your first product',
|
|
];
|
|
}
|
|
}
|