mirror of
https://github.com/jez500/pricebuddy.git
synced 2026-11-24 19:58:13 +01:00
22 lines
470 B
PHP
Executable File
22 lines
470 B
PHP
Executable File
<?php
|
|
|
|
namespace App\Filament\Resources\ProductResource\Columns;
|
|
|
|
use Filament\Tables\Columns\Column;
|
|
use Illuminate\Contracts\View\View;
|
|
|
|
class ProductCardColumn extends Column
|
|
{
|
|
protected string $view = 'filament.resources.product-resource.columns.product-card';
|
|
|
|
public function render(): View
|
|
{
|
|
$this->viewData([
|
|
'product' => $this->getRecord(),
|
|
'standalone' => true,
|
|
]);
|
|
|
|
return parent::render();
|
|
}
|
|
}
|