ranjith-dev #498
@@ -24,7 +24,7 @@ class ConfigurationResource extends Resource
|
|||||||
{
|
{
|
||||||
protected static ?string $model = Configuration::class;
|
protected static ?string $model = Configuration::class;
|
||||||
|
|
||||||
protected static ?string $navigationIcon = 'heroicon-o-rectangle-stack';
|
protected static ?string $navigationIcon = 'heroicon-s-cog';
|
||||||
|
|
||||||
protected static ?string $navigationGroup = 'Master Entries';
|
protected static ?string $navigationGroup = 'Master Entries';
|
||||||
|
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ class MotorTestingMasterResource extends Resource
|
|||||||
}),
|
}),
|
||||||
Forms\Components\TextInput::make('subassembly_code')
|
Forms\Components\TextInput::make('subassembly_code')
|
||||||
->label('Subassembly Code')
|
->label('Subassembly Code')
|
||||||
->required()
|
// ->required()
|
||||||
->placeholder('Scan the valid code')
|
->placeholder('Scan the valid code')
|
||||||
->reactive()
|
->reactive()
|
||||||
->alphaNum()
|
->alphaNum()
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ class TestingTempResource extends Resource
|
|||||||
{
|
{
|
||||||
protected static ?string $model = TestingTemp::class;
|
protected static ?string $model = TestingTemp::class;
|
||||||
|
|
||||||
protected static ?string $navigationIcon = 'heroicon-o-rectangle-stack';
|
protected static ?string $navigationIcon = 'heroicon-c-circle-stack';
|
||||||
|
|
||||||
protected static ?string $navigationGroup = 'IIOT Temp';
|
protected static ?string $navigationGroup = 'IIOT Temp';
|
||||||
|
|
||||||
@@ -36,7 +36,7 @@ class TestingTempResource extends Resource
|
|||||||
->required()
|
->required()
|
||||||
->searchable()
|
->searchable()
|
||||||
// ->preload()
|
// ->preload()
|
||||||
// ->nullable(),
|
->nullable()
|
||||||
->reactive()
|
->reactive()
|
||||||
->columnSpan(1)
|
->columnSpan(1)
|
||||||
->options(function (callable $get) {
|
->options(function (callable $get) {
|
||||||
@@ -151,6 +151,7 @@ class TestingTempResource extends Resource
|
|||||||
Forms\Components\Actions::make([
|
Forms\Components\Actions::make([
|
||||||
Action::make('uploadNow')
|
Action::make('uploadNow')
|
||||||
->label('Upload File')
|
->label('Upload File')
|
||||||
|
->icon('heroicon-c-cloud-arrow-up')
|
||||||
->color('success')
|
->color('success')
|
||||||
->requiresConfirmation(function (callable $get) {
|
->requiresConfirmation(function (callable $get) {
|
||||||
$filePath = $get('attachment');
|
$filePath = $get('attachment');
|
||||||
@@ -231,6 +232,7 @@ class TestingTempResource extends Resource
|
|||||||
|
|
||||||
Action::make('downloadAttachment')
|
Action::make('downloadAttachment')
|
||||||
->label('Download File')
|
->label('Download File')
|
||||||
|
->icon('heroicon-c-cloud-arrow-down')
|
||||||
->color('warning')
|
->color('warning')
|
||||||
->requiresConfirmation(function (callable $get) {
|
->requiresConfirmation(function (callable $get) {
|
||||||
$filePath = $get('selected_file');
|
$filePath = $get('selected_file');
|
||||||
@@ -281,6 +283,7 @@ class TestingTempResource extends Resource
|
|||||||
|
|
||||||
Action::make('deleteAttachment')
|
Action::make('deleteAttachment')
|
||||||
->label('Delete File')
|
->label('Delete File')
|
||||||
|
->icon('heroicon-c-trash')
|
||||||
->color('danger')
|
->color('danger')
|
||||||
->requiresConfirmation(function (callable $get) {
|
->requiresConfirmation(function (callable $get) {
|
||||||
$filePath = $get('selected_file');
|
$filePath = $get('selected_file');
|
||||||
|
|||||||
@@ -3,7 +3,6 @@
|
|||||||
namespace App\Filament\Resources;
|
namespace App\Filament\Resources;
|
||||||
|
|
||||||
use App\Filament\Resources\VehicleEntryResource\Pages;
|
use App\Filament\Resources\VehicleEntryResource\Pages;
|
||||||
use App\Filament\Resources\VehicleEntryResource\RelationManagers;
|
|
||||||
use App\Models\Plant;
|
use App\Models\Plant;
|
||||||
use App\Models\VehicleEntry;
|
use App\Models\VehicleEntry;
|
||||||
use Carbon\Carbon;
|
use Carbon\Carbon;
|
||||||
@@ -20,7 +19,9 @@ class VehicleEntryResource extends Resource
|
|||||||
{
|
{
|
||||||
protected static ?string $model = VehicleEntry::class;
|
protected static ?string $model = VehicleEntry::class;
|
||||||
|
|
||||||
protected static ?string $navigationIcon = 'heroicon-o-rectangle-stack';
|
protected static ?string $navigationIcon = 'heroicon-m-truck'; // heroicon-o-rectangle-stack
|
||||||
|
|
||||||
|
protected static ?string $navigationGroup = 'Vehicle';
|
||||||
|
|
||||||
public static function form(Form $form): Form
|
public static function form(Form $form): Form
|
||||||
{
|
{
|
||||||
@@ -86,7 +87,7 @@ class VehicleEntryResource extends Resource
|
|||||||
{
|
{
|
||||||
return $table
|
return $table
|
||||||
->columns([
|
->columns([
|
||||||
Tables\Columns\TextColumn::make('No.')
|
Tables\Columns\TextColumn::make('No.')
|
||||||
->label('No.')
|
->label('No.')
|
||||||
->alignCenter()
|
->alignCenter()
|
||||||
->getStateUsing(function ($record, $livewire, $column, $rowLoop) {
|
->getStateUsing(function ($record, $livewire, $column, $rowLoop) {
|
||||||
|
|||||||
Reference in New Issue
Block a user