pre service-type modelisation commitation
This commit is contained in:
parent
162c8839e2
commit
fdbc2653d4
57
app/Filament/Resources/ProductServiceReportResource.php
Normal file
57
app/Filament/Resources/ProductServiceReportResource.php
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Filament\Resources;
|
||||||
|
|
||||||
|
use App\Filament\Resources\ProductServiceReportResource\Pages;
|
||||||
|
use App\Models\ProductService;
|
||||||
|
use Filament\Forms\Form;
|
||||||
|
use Filament\Resources\Resource;
|
||||||
|
use Filament\Tables\Table;
|
||||||
|
|
||||||
|
class ProductServiceReportResource extends Resource
|
||||||
|
{
|
||||||
|
protected static ?string $model = ProductService::class;
|
||||||
|
|
||||||
|
protected static ?string $navigationIcon = 'heroicon-o-rectangle-stack';
|
||||||
|
|
||||||
|
protected static ?string $navigationGroup = 'Reports';
|
||||||
|
|
||||||
|
public static function form(Form $form): Form
|
||||||
|
{
|
||||||
|
return $form
|
||||||
|
->schema([
|
||||||
|
//
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static function table(Table $table): Table
|
||||||
|
{
|
||||||
|
return $table
|
||||||
|
->columns([
|
||||||
|
//
|
||||||
|
])
|
||||||
|
->filters([
|
||||||
|
//
|
||||||
|
])
|
||||||
|
->actions([
|
||||||
|
])
|
||||||
|
->bulkActions([
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static function getRelations(): array
|
||||||
|
{
|
||||||
|
return [
|
||||||
|
//
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
public static function getPages(): array
|
||||||
|
{
|
||||||
|
return [
|
||||||
|
'index' => Pages\ListProductServiceReports::route('/'),
|
||||||
|
'create' => Pages\CreateProductServiceReport::route('/create'),
|
||||||
|
'edit' => Pages\EditProductServiceReport::route('/{record}/edit'),
|
||||||
|
];
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,11 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Filament\Resources\ProductServiceReportResource\Pages;
|
||||||
|
|
||||||
|
use App\Filament\Resources\ProductServiceReportResource;
|
||||||
|
use Filament\Resources\Pages\CreateRecord;
|
||||||
|
|
||||||
|
class CreateProductServiceReport extends CreateRecord
|
||||||
|
{
|
||||||
|
protected static string $resource = ProductServiceReportResource::class;
|
||||||
|
}
|
@ -0,0 +1,19 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Filament\Resources\ProductServiceReportResource\Pages;
|
||||||
|
|
||||||
|
use App\Filament\Resources\ProductServiceReportResource;
|
||||||
|
use Filament\Actions;
|
||||||
|
use Filament\Resources\Pages\EditRecord;
|
||||||
|
|
||||||
|
class EditProductServiceReport extends EditRecord
|
||||||
|
{
|
||||||
|
protected static string $resource = ProductServiceReportResource::class;
|
||||||
|
|
||||||
|
protected function getHeaderActions(): array
|
||||||
|
{
|
||||||
|
return [
|
||||||
|
Actions\DeleteAction::make(),
|
||||||
|
];
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,19 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Filament\Resources\ProductServiceReportResource\Pages;
|
||||||
|
|
||||||
|
use App\Filament\Resources\ProductServiceReportResource;
|
||||||
|
use Filament\Actions;
|
||||||
|
use Filament\Resources\Pages\ListRecords;
|
||||||
|
|
||||||
|
class ListProductServiceReports extends ListRecords
|
||||||
|
{
|
||||||
|
protected static string $resource = ProductServiceReportResource::class;
|
||||||
|
|
||||||
|
protected function getHeaderActions(): array
|
||||||
|
{
|
||||||
|
return [
|
||||||
|
Actions\CreateAction::make(),
|
||||||
|
];
|
||||||
|
}
|
||||||
|
}
|
@ -15,7 +15,7 @@ class ReportResource extends Resource
|
|||||||
|
|
||||||
protected static ?string $navigationIcon = 'lucide-text-search';
|
protected static ?string $navigationIcon = 'lucide-text-search';
|
||||||
|
|
||||||
protected static ?string $navigationGroup = 'Management';
|
protected static ?string $navigationGroup = 'Reports';
|
||||||
|
|
||||||
public static function form(Form $form): Form
|
public static function form(Form $form): Form
|
||||||
{
|
{
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
<div class="container-fluid pt-4 font-serif" style="font-size: 0.9rem">
|
<div class="container-fluid pt-4 font-serif" style="font-size: 0.9rem">
|
||||||
<div class="fw-bold">
|
<div class="fw-bold">
|
||||||
TOP NOTCH EMBROIDERY & DIGITIZING LTD
|
TOP NOTCH EMBROIDERY & DIGITIZING LTD.
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
108-618 EAST KENT AVE. SOUTH <br>
|
108-618 EAST KENT AVE. SOUTH <br>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user