|
@@ -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),
|