Invoice Create and Edit Page mostly done
parent
a12e0b29d3
commit
256cc1f7ed
@ -0,0 +1,64 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Filament\Resources\InvoiceResource\RelationManagers;
|
||||||
|
|
||||||
|
use Filament\Forms;
|
||||||
|
use Filament\Forms\Form;
|
||||||
|
use Filament\Resources\RelationManagers\RelationManager;
|
||||||
|
use Filament\Tables;
|
||||||
|
use Filament\Tables\Table;
|
||||||
|
|
||||||
|
class ProductServicesRelationManager extends RelationManager
|
||||||
|
{
|
||||||
|
protected static string $relationship = 'ProductServices';
|
||||||
|
|
||||||
|
public function form(Form $form): Form
|
||||||
|
{
|
||||||
|
return $form
|
||||||
|
->schema([
|
||||||
|
Forms\Components\TextInput::make('id')
|
||||||
|
->required()
|
||||||
|
->maxLength(255),
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function table(Table $table): Table
|
||||||
|
{
|
||||||
|
return $table
|
||||||
|
->recordTitleAttribute('id')
|
||||||
|
->columns([
|
||||||
|
Tables\Columns\TextColumn::make('order.internal_po')
|
||||||
|
->label('WO')
|
||||||
|
->color('primary')
|
||||||
|
->fontFamily('mono')
|
||||||
|
->sortable(),
|
||||||
|
Tables\Columns\TextColumn::make('order.customer_po')
|
||||||
|
->label('PO')
|
||||||
|
->color('code')
|
||||||
|
->weight('bold')
|
||||||
|
->sortable(),
|
||||||
|
Tables\Columns\TextColumn::make('service_type')
|
||||||
|
->label('Type')
|
||||||
|
->weight('bold')
|
||||||
|
->sortable(),
|
||||||
|
Tables\Columns\TextColumn::make('service_details'),
|
||||||
|
Tables\Columns\TextColumn::make('amount')
|
||||||
|
->label('QTY'),
|
||||||
|
Tables\Columns\TextColumn::make('amount_price')
|
||||||
|
->label('Rate')
|
||||||
|
->prefix('$'),
|
||||||
|
Tables\Columns\TextColumn::make('price')
|
||||||
|
->label('Amount')
|
||||||
|
->prefix('$'),
|
||||||
|
])
|
||||||
|
->filters([
|
||||||
|
])
|
||||||
|
->headerActions([
|
||||||
|
])
|
||||||
|
->actions([
|
||||||
|
])
|
||||||
|
->bulkActions([
|
||||||
|
])
|
||||||
|
->defaultPaginationPageOption('all');
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue