This commit is contained in:
2026-02-03 15:31:29 +05:00
commit 326c677e8d
2800 changed files with 1489388 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
<?php
namespace App\Nova\Resources\Ecommerce\Channel\Fields;
use Ebess\AdvancedNovaMediaLibrary\Fields\Images;
use Laravel\Nova\Fields\DateTime;
use Laravel\Nova\Fields\ID;
use Laravel\Nova\Fields\Text;
class ChannelFieldsForIndex
{
/**
* Fields for index
*/
public static function make(): array
{
return [
ID::make()->hidden(),
Images::make(__('Image'), 'uploads')
->conversionOnIndexView('thumb200x200'),
Text::make(__('Name'), 'name')
->sortable(),
Text::make(__('User'), fn ($model) => $model->user?->fullname ?? '-'),
DateTime::make(__('Created at'), 'created_at')
->turkmenDate()
->sortable(),
];
}
}