Andrew Wallo преди 4 месеца
родител
ревизия
8bba4c220b

+ 2
- 3
app/Filament/Company/Resources/Purchases/BillResource/Pages/ViewBill.php Целия файл

@@ -58,10 +58,10 @@ class ViewBill extends ViewRecord
58 58
                             ->link(),
59 59
                         TextEntry::make('total')
60 60
                             ->label('Total')
61
-                            ->currency(fn (Bill $record) => $record->currency_code),
61
+                            ->currency(static fn (Bill $record) => $record->currency_code),
62 62
                         TextEntry::make('amount_due')
63 63
                             ->label('Amount due')
64
-                            ->currency(fn (Bill $record) => $record->currency_code),
64
+                            ->currency(static fn (Bill $record) => $record->currency_code),
65 65
                         TextEntry::make('date')
66 66
                             ->label('Date')
67 67
                             ->date(),
@@ -70,7 +70,6 @@ class ViewBill extends ViewRecord
70 70
                             ->asRelativeDay(),
71 71
                         TextEntry::make('paid_at')
72 72
                             ->label('Paid at')
73
-                            ->placeholder('Not Paid')
74 73
                             ->date(),
75 74
                     ]),
76 75
             ]);

+ 0
- 3
app/Filament/Company/Resources/Sales/EstimateResource/Pages/ViewEstimate.php Целия файл

@@ -99,15 +99,12 @@ class ViewEstimate extends ViewRecord
99 99
                                     ->asRelativeDay(),
100 100
                                 TextEntry::make('approved_at')
101 101
                                     ->label('Approved at')
102
-                                    ->placeholder('Not Approved')
103 102
                                     ->date(),
104 103
                                 TextEntry::make('last_sent_at')
105 104
                                     ->label('Last sent')
106
-                                    ->placeholder('Never')
107 105
                                     ->date(),
108 106
                                 TextEntry::make('accepted_at')
109 107
                                     ->label('Accepted at')
110
-                                    ->placeholder('Not Accepted')
111 108
                                     ->date(),
112 109
                             ])->columnSpan(1),
113 110
                         DocumentPreview::make()

+ 0
- 3
app/Filament/Company/Resources/Sales/InvoiceResource/Pages/ViewInvoice.php Целия файл

@@ -99,15 +99,12 @@ class ViewInvoice extends ViewRecord
99 99
                                     ->asRelativeDay(),
100 100
                                 TextEntry::make('approved_at')
101 101
                                     ->label('Approved at')
102
-                                    ->placeholder('Not Approved')
103 102
                                     ->date(),
104 103
                                 TextEntry::make('last_sent_at')
105 104
                                     ->label('Last sent')
106
-                                    ->placeholder('Never')
107 105
                                     ->date(),
108 106
                                 TextEntry::make('paid_at')
109 107
                                     ->label('Paid at')
110
-                                    ->placeholder('Not Paid')
111 108
                                     ->date(),
112 109
                             ])->columnSpan(1),
113 110
                         DocumentPreview::make()

+ 5
- 8
app/Filament/Company/Resources/Sales/RecurringInvoiceResource/Pages/ViewRecurringInvoice.php Целия файл

@@ -110,13 +110,14 @@ class ViewRecurringInvoice extends ViewRecord
110 110
                                     ->weight(FontWeight::SemiBold)
111 111
                                     ->url(static fn (RecurringInvoice $record) => $record->client_id ? ClientResource::getUrl('view', ['record' => $record->client_id]) : null)
112 112
                                     ->link(),
113
+                                TextEntry::make('total')
114
+                                    ->label('Total')
115
+                                    ->currency(static fn (RecurringInvoice $record) => $record->currency_code),
113 116
                                 TextEntry::make('last_date')
114 117
                                     ->label('Last invoice')
115
-                                    ->date()
116
-                                    ->placeholder('Not Created'),
118
+                                    ->date(),
117 119
                                 TextEntry::make('next_date')
118 120
                                     ->label('Next invoice')
119
-                                    ->placeholder('Not Scheduled')
120 121
                                     ->date(),
121 122
                                 TextEntry::make('schedule')
122 123
                                     ->label('Schedule')
@@ -141,15 +142,11 @@ class ViewRecurringInvoice extends ViewRecord
141 142
                                     ->visible(fn (RecurringInvoice $record) => $record->end_type?->isOn()),
142 143
                                 TextEntry::make('approved_at')
143 144
                                     ->label('Approved at')
144
-                                    ->placeholder('Not Approved')
145 145
                                     ->date(),
146 146
                                 TextEntry::make('ended_at')
147 147
                                     ->label('Ended at')
148 148
                                     ->date()
149
-                                    ->visible(fn (RecurringInvoice $record) => $record->ended_at),
150
-                                TextEntry::make('total')
151
-                                    ->label('Invoice amount')
152
-                                    ->currency(static fn (RecurringInvoice $record) => $record->currency_code),
149
+                                    ->visible(static fn (RecurringInvoice $record) => $record->ended_at),
153 150
                             ])->columnSpan(1),
154 151
                         DocumentPreview::make()
155 152
                             ->type(DocumentType::RecurringInvoice),

+ 5
- 0
app/Providers/Filament/CompanyPanelProvider.php Целия файл

@@ -50,6 +50,7 @@ use Filament\Forms\Components\Select;
50 50
 use Filament\Http\Middleware\Authenticate;
51 51
 use Filament\Http\Middleware\DisableBladeIconComponents;
52 52
 use Filament\Http\Middleware\DispatchServingFilamentEvent;
53
+use Filament\Infolists\Components\TextEntry;
53 54
 use Filament\Navigation\NavigationBuilder;
54 55
 use Filament\Navigation\NavigationGroup;
55 56
 use Filament\Pages;
@@ -289,6 +290,10 @@ class CompanyPanelProvider extends PanelProvider
289 290
         Tables\Columns\TextColumn::configureUsing(function (Tables\Columns\TextColumn $column): void {
290 291
             $column->placeholder('–');
291 292
         });
293
+
294
+        TextEntry::configureUsing(function (TextEntry $component): void {
295
+            $component->placeholder('–');
296
+        });
292 297
     }
293 298
 
294 299
     /**

Loading…
Отказ
Запис