diff --git a/app/Filament/Customer/Resources/OrderResource.php b/app/Filament/Customer/Resources/OrderResource.php new file mode 100644 index 0000000..c61c6e0 --- /dev/null +++ b/app/Filament/Customer/Resources/OrderResource.php @@ -0,0 +1,67 @@ +schema([ + // + ]); + } + + public static function table(Table $table): Table + { + return \App\Filament\Resources\OrderResource::table($table) + ->modifyQueryUsing(function (Builder $query) { + return $query->where('customer_id', 1); + }) + ->actions([]) + ->bulKActions([]); + // $table + // ->columns([ + // // + // ]) + // ->filters([ + // // + // ]) + // ->actions([ + // Tables\Actions\EditAction::make(), + // ]) + // ->bulkActions([ + // Tables\Actions\BulkActionGroup::make([ + // Tables\Actions\DeleteBulkAction::make(), + // ]), + // ]); + } + + public static function getRelations(): array + { + return [ + // + ]; + } + + public static function getPages(): array + { + return [ + 'index' => Pages\ListOrders::route('/'), + // 'create' => Pages\CreateOrder::route('/create'), + // 'edit' => Pages\EditOrder::route('/{record}/edit'), + ]; + } +} diff --git a/app/Filament/Customer/Resources/OrderResource/Pages/CreateOrder.php b/app/Filament/Customer/Resources/OrderResource/Pages/CreateOrder.php new file mode 100644 index 0000000..b00390d --- /dev/null +++ b/app/Filament/Customer/Resources/OrderResource/Pages/CreateOrder.php @@ -0,0 +1,11 @@ +schema([ + Placeholder::make('digitizingContent') + ->hiddenLabel() + ->content(new HtmlString('
+ Address
+
+
+ Overview
+
+
+ Overview
+
+
+ Welcome to Top-Notch Embroidery and Digitizing Ltd.
+
+
+ Overview
+
+
Date | +Invoice | +Subtotal | +GST | +PST | +Balance | +Status | +
---|---|---|---|---|---|---|
{{Date::make($invoice->created_at)->format('Y-m-d')}} | +{{$invoice->internal_id}} | +${{$invoice->subtotal}} | +${{number_format($invoice->gst_amount, 2)}} | +{{!$invoice->pst_amount ? '-' : '$'.number_format($invoice->pst_amount, 2)}} | +${{$invoice->total}} | +{{$invoice->status->value}} | +
Placement & Service | @@ -227,6 +230,8 @@
---|